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

How can i debug program in external ram?

I use Keil version 5.10 or 5.11 with a probe ULINK and the target is a cortex M3.

I have only 256K of Flash and i have more 1M in a external RAM.

How i can load and debug my program in the external RAM?

Have you some idea?

Actually, i can't find a menu/procedure to load program in my external RAM

Parents
  • You have to use the debugger script or Initialization File (.INI) in Debug Tab to configure the memory, it's interface, and load the code. You can't use the flash/download mechanism.

    For Keil uv4 I'd suggest reviewing some of the board examples with external memory, SDRAM, etc. You could review the directory tree, some of the ATMEL AT91SAM9xxxx series parts might be worth looking at, or perhaps some NXP or FREESCALE parts using CORTEX and external SRAM/SDRAM

Reply
  • You have to use the debugger script or Initialization File (.INI) in Debug Tab to configure the memory, it's interface, and load the code. You can't use the flash/download mechanism.

    For Keil uv4 I'd suggest reviewing some of the board examples with external memory, SDRAM, etc. You could review the directory tree, some of the ATMEL AT91SAM9xxxx series parts might be worth looking at, or perhaps some NXP or FREESCALE parts using CORTEX and external SRAM/SDRAM

Children
  • The flash download mechanism is basically the JTAG interface downloading a small program into RAM. And then sending the actual flash code to the little program in RAM, which will then perform In Application Programming (IAP) to write it into the flash.

    That complicated mechanism isn't required when sending code directly to RAM.