RE: Software emulation exception in mpc555(using code wa rrior IDE)
Dees Randy-rsaf30 <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <3FADD461F8FBD8118BB0000F20D7A55F0BE6F8EF@az33exm43.am.freescale.net> |
basic debug 101: when you get an exception, look at what the MCU is trying to do. in this case, the MCU is trying to branch to the address in the link register. 1. What is the address in the link register at this time (clue it should also be in R3 since it was loaded into R3 and then moved to the LR). 2. is that address a legal address in a valid memory space? if not, then you have a major problem with your linker file. 3. if the address is a legal address for a valid memory, then what instruction is at that address? The Software Emulation exception indicates that the RCPU tried to execute an illegal instruction. randy -----Original Message----- From: [email protected] [mailto:[email protected]] I tried to program the PIT interrupt example in AN2109. After I downloaded my code I tried to run the code, but I am getting this exception " PowerPC exception Software Emulation Exception 0x1000 " After the IDE shows this exception the cursor stops at #if defined(USE_FAR_ADDRESSING_TO_TEXT_SECTION) lis r3,__init_user@ha addi r3,r3,__init_user@l mtlr r3 *the cursor stops at blrl*** blrl #else How can we fix this problem? I am using a code warrior IDE and the board is Axiom mpc555. In my EPPC liker settings the entry point is "__start" I appreciate your help in this regard. [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/dN_tlB/TM --------------------------------------------------------------------~-> ----------------------------------------------------------- To learn more about Freescale Microcontrollers, please visit http://www.freescale.com/mcu Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/MPC500/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/