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.
Hi,
i'm using the TMS570 in combination with an autosar stack from arccore.
I've configured the ESM and installed an ISR in the OS for the low priority channel 20.
Now when I enter the ISR I got an infinite loop and I think I have to clear the interrupt flag in the VIM Register manually.
How can I do it?
Best regards,
Christopher
Hi Christopher,
You need to clear the interrupt flag at its source as well as in the VIM. An ESM interrupt flag can be cleared by writing a '1' to the bit that is set. This would be a flag in the ESMSRx registers.
The flag in the VIM can be cleared depending on the method you are using to handle interrupts.
If you use the CPU's hardware vectored mode for interrupts (default mode generated by HALCoGen source code), the VIM flag is cleared automatically for you. This flag will get set again causing a repeated interrupt request (your observation) if the flag is not cleared at the interrupt source (ESM).
Regards, Sunil