Tool/software: TI C/C++ Compiler
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.
Tool/software: TI C/C++ Compiler
You have to save and restore the FPU registers. See this thread for an example:
https://e2e.ti.com/support/microcontrollers/hercules/f/312/t/700651
Regards,
Sunil
That is correct. A function required to be an interrupt service routine must be assigned a pragma that indicates that it is an IRQ handler. For example, for an rtiCompare0Interrupt() handler:
#pragma CODE_STATE(rtiCompare0Interrupt, 32)
#pragma INTERRUPT(rtiCompare0Interrupt, IRQ)
In that case if the compilation options include support for the FPU, then the floating point unit registers will be saved and restored automatically by the callee function code generated by the compiler.
Regards,
Sunil