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

Executing Code from RAM

Hi,

I am using some evaluation board from NXP. It uses LPC2138 micro. After loading the software it says to debug I cannot keep more than 2 break points as code is executing from Flash. I would like to know what are the configurations to be done to execute code from RAM.

Thank you

Vijay

  • There are sample projects from Keil that shows how to do it.
    You specify RAM addresses for both code and variables.
    And you use an ini file to set PC to where you place the program in RAM.

  • Thank you for your suggestion. But as Im new to Keil so im bit unfamilair with the things. I tried to look into the example projects but no where its clearly mentioned what are the steps to be done.
    For me at the moment I see the following,

    1) Define : REMAP RAM_MODE
    2)In target: select IRAM1 0x40000000 to 0x8000 Deselect IROM1
    3) In debug I think i shall choose the RAM.INI but I cannot suitable for LPC2138.

    Please let me know if there are any detailed documentation or example project about this.

    Thanks a lot in advance.