Douglas Pereira

Got a illegal instruction interrupt

Discussion created by Douglas Pereira on Sep 21, 2010
Latest reply on Sep 24, 2010 by Processor Expert



I have been working in this project that uses on DSC 56F8037. Summarizing it does send data to AD, reads some data from DA, process that data and repeats the cicle.


After a few seconds running I got a Cpu_Interrupt5 (ivINT_MisalignedLongWordAccess) that I was not able to find the problem source.


If I continue the execution I get a Cpu_Interrupt2 (ivINT_Illegal_Instruction).


I'm not used debugging this kind of error. By the way, my stack is all messed.


Can anyone give instructions to debug that? I read that CPU return address RA can be found at SP+6. But I don't know what to do with that, and I don't know if it is valid since my stack is not.