I use the PE tools chosen the download debug session to download the SW, When first download sw successful, the sw run normal ,next step I stop the debug session, power off the mcu and power on mcu, chosen the attach debug session, it stop exception IVOR6.
My mcu is MPC5646B
According to AN5200.pdf and e200z4RM.pdf to analysis.
MCSR register is EXCP_ERR :1
MAV:1
MEA:1
IF:1
BUS_IRERR:1
MCAR register is 0x000400d0
MCSRR0 is 0
FEAR register is 0xdfecdb57.
So according to the AN5200.pdf 5.1.1 Machine Check Syndrome Register (MCSR)
it belong to the error"Error caused by attempt to execute of instruction affected by ECC multibit error sets
MCSR[MAV, IF, BUS_IRERR]."
as show below:
Can you help how to analysis the issue and find out the reason?
probably the PE attach tools cause or in actual my source code is high risk ?
thanks very much!
Hi, if you get IVOR6
then you are supposed to investigate ESR and SRR0/1 registers, not the ones related to machine check.
yes,I catch the exception IVOR6
e200z4 ESR register value is 0x08000000,means that PIL Illegal Instruction exception
SRR0 register value is 0x00047d90 which locate in the Cflash array 0, search in the map file " 00006d20 0000f2 00047d20 00008d20 16 Rte_Switch_EcuM_ecuM_currentMode_currentMode Rte_Internal_EcuM.o "
SRR1 register value is 0x00008000 EE bit is 1
Do you think use PE attach debug mode can cause the llegal Instruction exception? or other maybe code running the write the Dflash when PE micro attach debug session casue this IVOR6?