AnsweredAssumed Answered

AutoLoad Code in RAM

Question asked by Bruno Paillard on Dec 26, 2014
Latest reply on Dec 29, 2014 by Bruno Paillard

Hi

 

I am working on the MK22FN512VLH12 using Processor Expert. I am trying to run code from RAM. That code is intended to initiate Flash operations (erase, reprogram), without limitation on the Flash block that is being manipulated.

For that I need to have that code automatically loaded into RAM. The JTAG debugger has no difficulty loading code into RAM. But for this to work in real life I need a way for that code to be loaded into RAM, from Flash, at startup.

 

Is there a way to direct the startup __copy_rom_sections_to_ram() function to load code, in addition to the initialized variables into RAM at startup?

 

Thanks

 

Bruno

Outcomes