AnsweredAssumed Answered

Machine exception

Question asked by kaarthi chandrasekaran on Jul 31, 2018
Latest reply on Aug 14, 2018 by kaarthi chandrasekaran

I am using s12zvml31 controller. When i tried to debug my software the machine exception occurs and i saw the datasheets and checked the registers mmcec and mmccc,

 

Error code register

Bit Field Values:
ITR bits[ 15:12 ] = 1 S12ZCPU
TGT bits[ 11:8 ] = 1
ACC bits[ 7:4 ] = 1 Opcode fetch
ERR bits[ 3:0 ] = 1 Access to an ilegal address range

 

Captured S12ZCPU Condition Code Register

Bit Field Values:
CPUU bits[ 15:15 ] = 0
bits[ 14:14 ] = 0
bits[ 13:13 ] = 0
bits[ 12:12 ] = 0
bits[ 11:11 ] = 0
bits[ 10:10 ] = 0
bits[ 9:9 ] = 0
bits[ 8:8 ] = 0
bits[ 7:7 ] = 0
CPUX bits[ 6:6 ] = 1
bits[ 5:5 ] = 0
CPUI bits[ 4:4 ] = 1
bits[ 3:3 ] = 0
bits[ 2:2 ] = 0
bits[ 1:1 ] = 0
bits[ 0:0 ] = 0

 

I have tried the exception handler by writing CPMUARMCOP register to reset the controller and Im not writing any instruction at last 8 bytes of RAM, ROM. Am I missing anything?

Please help me to found out.

 

Regards

kaarthi

Outcomes