This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I have a time critical code in CPU timer interrupt which executes in 8us when its in RAM.As end product I need to burn my project into FLASH and while boot I need to copy it to RAM and execute from there.I went through SPRAAU8A application report that insist to copy sections from FLASH to RAM at boot but it's not working.Need help.
Pradeep,
Your requirement seems more like copying one function (CPU timer ISR) from Flash to RAM in the main using memcpy().
Do you really need to copy this ISR to RAM before reaching main()? Even if you copy before reaching main, you will initialize PIE in main() only - correct?
If that is the case, I would suggest you to follow http://www.ti.com/lit/an/spra958l/spra958l.pdf. You simply allocate that ISR to .Ti.ramfunc (which should be mapped to Flash for load and RAM for run) and let memcpy() copy it from Flash to RAM in main(). Checkout the C2000Ware examples - you can select Flash build configuration for an example and step execute to understand how this is done. Let me know if you have any specific questions.
If you want to use SPRAAU8A method, where code is copied to RAM even before reaching c_int00, please provide more details on what you implemented, and what did not work.
Thanks and regards,
Vamsi