seperate load and execution region for LPC24xx project ...

Hi everyone,

I have a need to store my program in the internal flash memory of the LPC24xx but execute the code from RAM. I tried to use scatter-loading. The problem is that I cannot get my complete memory image copied to RAM. The linker puts my provided sections only in one of the required regions.
Could I get a example of how to generate a project that loads the image to flash but at execution time copies the image to RAM and executes from RAM

Thank you,
Frank

Parents
  • Hi,
    so far I did not get any feedback! Here is my new attempt to get some input.

    Is it possible with the current concept of the Keil tools to setup a project to be stored in Flash memory (load region) but exectued from RAM (execution region)?

    Is the standard startup code in conjunction with the C library able to perform all necessary tasks like code copying and branching to the correct execution region or is it necessary to implement the required functionality?

    Is there any example code available?

    Thank you,
    Frank

Reply
  • Hi,
    so far I did not get any feedback! Here is my new attempt to get some input.

    Is it possible with the current concept of the Keil tools to setup a project to be stored in Flash memory (load region) but exectued from RAM (execution region)?

    Is the standard startup code in conjunction with the C library able to perform all necessary tasks like code copying and branching to the correct execution region or is it necessary to implement the required functionality?

    Is there any example code available?

    Thank you,
    Frank

Children
More questions in this forum