I am currently using the SPC5746RMMT5 chip and enter the IVOR1_IRQ interrupt when debugging eTPU set2 with S32 DS for Power.
The TG function is working fine for now, but when I set the Crank capture interrupt, it triggers the IVOR1_IRQ interrupt.
Check that the MCSR is not incorrectly set.
How can I fix it?
Thank you very much. You have solved this problem for me!
If you are using original etpu sets with MPC57xx devices, it is possible it is needed to initilize ECC as follows:
#define eTPU_AB_SPRAM_start 0xFFCC8000
#define eTPU_AB_SPRAM_end 0xFFCCBFFF
/* Clear all ETPU SRAM memories due to ECC */
// eTPU A/B parametric RAM
for (i=eTPU_AB_SPRAM_start; i
(*(uint32_t *) i) = 0;
}
In the past I made example code for this: