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
  • I can configuring the memory controller (as similar to the steps that the startup code).
    But after, how i must configure the uVision to load in the RAM.

    I have the message bellow:

    Load "\\keil\\out\\Degbug ram externe\\Debug.axf"
    No Algorithm found for: A0000000H - A000FFFFH
    No Algorithm found for: A0010000H - A001FFFFH
    No Algorithm found for: A0020000H - A002542BH
    Erase skipped!
    Error: Flash Download failed - "Cortex-M3"

Reply
  • I can configuring the memory controller (as similar to the steps that the startup code).
    But after, how i must configure the uVision to load in the RAM.

    I have the message bellow:

    Load "\\keil\\out\\Degbug ram externe\\Debug.axf"
    No Algorithm found for: A0000000H - A000FFFFH
    No Algorithm found for: A0010000H - A001FFFFH
    No Algorithm found for: A0020000H - A002542BH
    Erase skipped!
    Error: Flash Download failed - "Cortex-M3"

Children
  • 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

  • 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.