2024-10-15 10:52 PM
Hi, I would like to know the procedure to execute specific functions from RAM.
I have tried __ramfunc at beginning of the function but it requires all the subsequent functions also to be run from RAM. This would require lot of manual code updates. Is there a way to do it from linker script? I tried placing the functions like below but it would not move the function from ROM to RAM.
place in RAM_region { readwrite,
block CSTACK,
block HEAP,
readonly object function1 // this is my expected function to run from RAM
};
Solved! Go to Solution.
2024-10-21 04:40 AM
Did you test the project I shared as it is and checked how it works?
Are you using an RTOS? if yes start with a simple code (without RTOS), then move on to a complex code.
For the interrupt, I suggested to follow the application note section: 2.2 Execute an interrupt handler from CCM SRAM.