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

Execute Code in RAM for Development

Hello,

I am developing code on a Texas Instruments TM4C123GH6PM (Cortex-M4) microcontroller. During development I would like to run code directly from the onboard SRAM instead of ROM to avoid wear and tear on the FLASH memory.

Using the V5.11 Keil IDE, under "options for Target" menu. I specified the starting address for the "IROM1" section as 0x2000000and size as 0x3000(start of SRAM). In the "IRAM1" section the starting address is 0x20003000 and size is set to 0x1000.

In the ASM tab, I set RAM_MODE, REMAP symbols for the define section. Also, in the linker tab I selected the option "Use Memory Layout from Target Dialog" so it uses the IROM1 and IRAM1 settings I mentioned above.

The debugger is configured to disable programming of the Flash memory.

When I use the debugger, it does not stop executing code at main(), which it did when I used the flash memory. Also, when I manually set the PC to the first instruction in main and begin stepping through code, it's like the instructions are not executing. I confirmed this because I don't see any changes in the registers I write to or changes to global variables for a particular c statement.

Is there any settings I missing to get the code to execute in RAM?

Any help is greatly appreciated.

Thanks,

Brock

0