@petervlna Thanks for your reply. I configured the CAN using expert processor in S32DS for flexCan2 and I get the exception when I receive the CAN message that too after few reception (not fixed).
I have debugged the code and found it happen when try to return from
void CAN2_BUF0_IRQHandler(void)
{
FLEXCAN_IRQHandler(2U);
}
latheef_3-1666009439006.png
After execution of the FLEXCAN_IRQHandler(2), the execution of the prologue has to happen but the lr now points to address 0x0000002 and it give IVOR6 exception.
latheef_2-1666009375449.png
I stepped through the below assembly instruction
008177be: se_lwz r0,12(r1)
008177c0: se_mtlr r0
008177c2: se_addi r1,8
008177c4: se_blr
After lwz R1 has the RAM address as below:
R1 = 1073751424 (0x40002580)
se_lwz r0,12(r1) updates the R0 to 2 because of the RAM values as below
latheef_5-1666009893596.png
se_blr then branches to address 2.
Appreciate your help!
Thanks