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
Why did you feel it necessary to write your entire post in Bold?
"My requirement is..."
No, that's not your requirement - that's your proposed solution!
Rather than discuss what may be a flawed solution, why not explain what the actual requirement is; ie, why do (you think) you need to do this?
As an illustration, see this blog post by Dave Van Ess:
"When I am out showing off [my product] I will have customers draw out a schematic and ask if [my product] can do that. A schematic is a solution, not a definition. I end up asking just what are they trying to do. When they tell us We then figure out how to do it the [my product] way."
See: www.cypress.com/ - last paragraph
In this thread, you have effectively sketched a schematic...
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.