I’m trying to figure out when MCU loads sram functions from flash.
I’m trying with S32K324.
I have defined a function in sram.
void __attribute__((section(".test_sram_section"))) MyFunction(void);
vscode can show the address of it, and it’s in sram as expect.
However, even I put a breakpoint just after a line of ENTRY POINT and triggered there, I can still find the function in sram.
by the way, the ENTRY POINT is right where the code start I think.
//
so…when does MCU loads functions into sram from flash?
Plus C Primer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.