Hi NXP,
This is the second post I am making on this topic, my previous post seems to be getting ignored so I am asking again.
First the setup: Two Link2 boards working as a target/debugger for the LPC4370 chip.
Issue: Speed of execution of code (functions) from flash (too slow) compared with executing my code entirely from RAM.
I am trying to configure my MCUXpresso project to relocate all of my code from flash to RAM on startup, and execute it from RAM. I have followed the steps on page 213 of the MCUXpresso user guide "Relocating majority of an application into RAM." However, when I debug my code I see that the functions are still running from flash memory locations, even though my RAM is showing a large percentage of its memory filled after building my project.
I have also tried using the macro __RAMFUNC(RAM) on my time critical functions, which does put those functions into RAM and speeds up my execution time during debug. However, when I reset the micro after debugging, those functions must once again get executed from flash as the execution speed slows down again.
I really need to work out why the steps in the MCUXpresso user guide are not working for me, or if I have some misconception about what I am trying to do. Can someone please help me with this problem. I have been trying to solve it for weeks now without any result.
Thanks,
Regards,
Quinn
Hello,
"However, when I reset the micro after debugging, those functions must once again get executed from flash"
->> How do you know this?
BR
Alice
I don't know this for sure, but I don't have any other explanation for the speed difference of my program when I debug and after I reset. And the slower execution speed is the same speed as when I don't use those macros on my functions (when debugging and after reset).
Regards,
Quinn