cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to copy the code stored in the internal or external flash to the internal SRAM and execute it from SRAM ?

YROSS
Associate II
 
3 REPLIES 3
adrian
Associate III

You’d need to check out how you declare functions/files to run from the ram with your compiler. It will be linked to a specific RAM address and the startup code will copy it to the correct place in ram from the flash.

One would need to be aware of whether the code is free standing or has dependencies outside itself. But in the general sense I can copy code to RAM and run it there.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
S.Ma
Principal

The linker should generate the code where it would ultimately be placed.

This would bring best performance benefits when having both interrupt vectors and ISR functions in SRAM to prevent ART accelerator jumps in Flash.

When the core has code cache memory, external serial memories performance is much improved.