Other Parts Discussed in Thread: HALCOGEN
Hello,
I posted a question earlier about the RX IRQ of the EMAC that stopped being called.
By doing more analysis and by testing other peripherals of the CPU, we got to the point where the IRQ of the eQEP is not being called anymore. This seems to be linked to the usage of the maskable IRQ RTI CMP3. We follow the guidelines listed by the application report SPNA219 and reviewed it many times to make sure we didn't miss something.
We created a simple project using the Launchpad of the TMS570LC4357
In the attached project, we need to apply a 1khz signal on the input J1_7 of the launchpad. After 10 minutes (can sometimes be longer), the IRQs are not called anymore. By using the buttons, it is possible to force a clear of the IRQ and then it starts working again.
Here are the traces on the serial interface that we can see:
------------------------------------------------------------------------------------------------------
Welcome to the Hercules Launchpad demo
------------------------------------------------------------------------------------------------------
1> USER LED B (LED3) blinking frequency is controlled by the ambient light sensor.
2> USER LED A (LED2) is blinking every 250ms.
Vary the intensity of the light on the sensor to observe the response.
3> Press USER SWITCH A button to clear QEP1 pending IRQs.
4> Press USER SWITCH B button to clear QEP2 pending IRQs.
------------------------------------------------------------------------------------------------------
PLEASE DO POWER ON RESET(PORRST) WHENEVER YOU SEE ERR LED ON
------------------------------------------------------------------------------------------------------
…
Potentiometer Reading: 3
QEP1 Period: 1001us
QEP2 Period: 1001us
…
Potentiometer Reading: 3
QEP1 Period: 0us <== IRQ not called anymore, so period seen is 0
QEP2 Period: 1000us
…
Clear QEP1 pending IRQs <= press the button
Clear QEP1 pending IRQs
Clear QEP1 pending IRQs
…
Potentiometer Reading: 3
QEP1 Period: 1001us <= starts working again
QEP2 Period: 1001us
Do you have any clues about the cause of this issue?
Please let me know if you need more details.
Kind regards,
Frederic.