We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
My requirement is, I need the code itself should copy into RAM from Internal Flash and execute from RAM.
please post your suggestions for this implementation.
Thanks & Regards,
Saneesh
Hi Saneesh,
Assuming you're using uVision you can right-click on a file in your project, select "Options for file..." and select the RAM region configured for your project in the "Code/const" dropdown. The scatter load mechanism should take care of everything for you.
You can also hand-edit the scatter load (*.sct) file to achieve the same thing. Read up on scatter loading in the ARM documentation.
Keil has an example for this approach here, assuming you have Keil installed in C:\Keil:
C:\Keil\ARM\Examples\RAM_Function
Andrew
See the ExtRAM Example in c:\keil\ARM\Boards\Keil\MCBSTM.... Folders.
BR, /th.
hhey i didnt find any "Code/const" dropdown...i'm programming lpc915 on keil uvision...
Probably doesn't apply to 8051 - the original question was for ARM.
so what is to be done if its 8051???
You already have a thread on that: http://www.keil.com/forum/19106
The 8051 is an entirely different architecture - so don't hijack this STM32 (ARM Cortex-M3) thread with unrelated questions.