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.

TMS570LC4357: How to detect lost interrupts or interrupt overload

Part Number: TMS570LC4357


Hi,

is there any recommended way to detect interrupt overrun?
If a new interrupt occurs while an interrupt from same source is already pending, one of the interrupts might be lost.
I remember other/older CPU which were able set a OVR bit in a hardware register and to generate an overrun interrupt.
For safety reasons we want to detect unexpected timing violations.

Best Regards

Olaf

  • Hi Olaf,

    We don't typically consider interrupt overruns as an 'error' because many peripherals funnel multiple interrupts into a single
    channel or just two channels in the VIM. ISRs should really check all the flags in a peripheral and handle the case where multiple flags are set.

    Generally if there is an actual overrun in the peripheral, like a buffer overrun, then the peripheral will detect this and set an error interrupt flag.

    But again these functions are peripheral specific they are not detected by VIM.

    -Anthony