This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32F4 Debug_RAM.ini for external ram setup

Hi

Does anyone have a debug-ram.ini file they are successfully using to allow debug from ext_ram on an STM32F4? Could you post it? Init/debug in SRAM or SDRAM is fine and I can change registers to suit my memory, using yours as a (great) template.

I am NOT asking for the standard internal ram debug ini.

Thanks
Mark

Parents
  • /******************************************************************************/
    /* FLASH_NOR.ini: NOR Initialization File                                     */
    /******************************************************************************/
    // <<< Use Configuration Wizard in Context Menu >>>                           //
    /******************************************************************************/
    /* This file is part of the uVision/ARM development tools.                    */
    /* Copyright (c) 2005-2006 Keil Software. All rights reserved.                */
    /* This software may only be used under the terms of a valid, current,        */
    /* end user licence from KEIL for a compatible version of KEIL software       */
    /* development tools. Nothing else gives you the right to use this software.  */
    /******************************************************************************/
    
    FUNC void Setup(void) {
    
      _WDWORD(0x40021014, 0x00000114);   // FSMC clock enable
      _WDWORD(0x40021018, 0x000001FD);   // GPIOD~G clock enable
    
      _WDWORD(0x40011400, 0x44BB44BB);   // GPIOD config
      _WDWORD(0x40011404, 0xBBBBBBBB);   // GPIOD config
    
      _WDWORD(0x40011800, 0xBBBBB444);   // GPIOE config
      _WDWORD(0x40011804, 0xBBBBBBBB);   // GPIOE config
    
      _WDWORD(0x40011C00, 0x44BBBBBB);   // GPIOF config
      _WDWORD(0x40011C04, 0xBBBB4444);   // GPIOF config
    
      _WDWORD(0x40012000, 0x44BBBBBB);   // GPIOG config
      _WDWORD(0x40012004, 0x444444B4);   // GPIOG config
    
      _WDWORD(0xA0000000, 0x000030DB);   // FSMC config
      _WDWORD(0xA0000008, 0x00001059);   // FSMC config
      _WDWORD(0xA000000C, 0x10000705);   // FSMC config
      _WDWORD(0xA0000104, 0x0FFFFFFF);   // FSMC config
    }
    
    Setup();
    

Reply
  • /******************************************************************************/
    /* FLASH_NOR.ini: NOR Initialization File                                     */
    /******************************************************************************/
    // <<< Use Configuration Wizard in Context Menu >>>                           //
    /******************************************************************************/
    /* This file is part of the uVision/ARM development tools.                    */
    /* Copyright (c) 2005-2006 Keil Software. All rights reserved.                */
    /* This software may only be used under the terms of a valid, current,        */
    /* end user licence from KEIL for a compatible version of KEIL software       */
    /* development tools. Nothing else gives you the right to use this software.  */
    /******************************************************************************/
    
    FUNC void Setup(void) {
    
      _WDWORD(0x40021014, 0x00000114);   // FSMC clock enable
      _WDWORD(0x40021018, 0x000001FD);   // GPIOD~G clock enable
    
      _WDWORD(0x40011400, 0x44BB44BB);   // GPIOD config
      _WDWORD(0x40011404, 0xBBBBBBBB);   // GPIOD config
    
      _WDWORD(0x40011800, 0xBBBBB444);   // GPIOE config
      _WDWORD(0x40011804, 0xBBBBBBBB);   // GPIOE config
    
      _WDWORD(0x40011C00, 0x44BBBBBB);   // GPIOF config
      _WDWORD(0x40011C04, 0xBBBB4444);   // GPIOF config
    
      _WDWORD(0x40012000, 0x44BBBBBB);   // GPIOG config
      _WDWORD(0x40012004, 0x444444B4);   // GPIOG config
    
      _WDWORD(0xA0000000, 0x000030DB);   // FSMC config
      _WDWORD(0xA0000008, 0x00001059);   // FSMC config
      _WDWORD(0xA000000C, 0x10000705);   // FSMC config
      _WDWORD(0xA0000104, 0x0FFFFFFF);   // FSMC config
    }
    
    Setup();
    

Children
No data