Part Number: TMS570LS1114
Other Parts Discussed in Thread: HALCOGEN
Hi:
The mcu is TMS570LS1114, the current design
vimREG->FIRQPR0 = 0x00000003;vimREG->FIRQPR1 = 0x00000000;vimREG->FIRQPR2 = 0x00000000;vimREG->FIRQPR3 = 0x00000000;
vimREG->REQMASKSET0 = 0x03;vimREG->REQMASKSET1 = 0x00;vimREG->REQMASKSET2 = 0x00;
vimREG->REQMASKSET3 = (1u<<11u); /*ECAP4 interrupt*/
In fact system, ECAP4 has real pulse input, then ECAP4 interrupt is ok. At the same time ,the mcu_self_test is working . After a few hours running, the system report VIM_PRTY , VIM_CRC64 error,
after the error, the system cannot go into ECAP4 interrupt. Then I check core register CPSR I=0(IRQ is allowed) F=0(FIQ is allowed), and i check eCAP4 register , ECFLG=0x0003(Interrupt flag is ok), ECEINT=0x0002(Interrupt enable is ok), TSCTR is running, CAP1 is running.
but the system cannot enter ecap4 interrupt again. Why? How can i debug? How can i avoid this happen? I think the condition is interrupt conflict.