2018-12-18 05:17 AM
2018-12-18 06:05 AM
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.
2018-12-18 06:10 AM
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.
2018-12-23 11:57 AM
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.