RE: Re: PB555 and Codewarrior
"Dobbin Allan-r11834" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <4147ED8B92A864498825C07E53594E4A322A90@az33exm20.fsl.freescale.net> |
This instruction is loading an immediate value into R3, so you wouldn't expect this instruction to cause a machine check since it isn't loading data from another address. Perhaps this instruction isn't actually getting executed - on the bottom of the debug window where it says "Source" - click this and change to "Mixed". Verify the address is within range i.e. 3fa000-3fc000 and also verify the code has not been corrupted i.e. the disassembled instruction should also be of the form "lis r3,xxxxxx". Regards, Allan -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of coles555 Sent: Wednesday, September 28, 2005 3:09 PM To: [email protected] Subject: [MPC500] Re: PB555 and Codewarrior Hey guys, These are my EPPC linker settings: Code Address: 0x003fa000 Data Address: 0x003fc000 RAM Buffer Address: 0x00000000 ROM Image Address: 0x00000000 Heap Address: 0x00000000 Stack Address: 0x003ff000 EPPC Target Settings: Small Data: 8 Small Data2: 8 Heap Size: 4 Stack Size: 4 With these settings established, the program exception for the init_registers went away. However I got another Machine Check Exception at: /* * branch to main program */ #if defined(USE_FAR_ADDRESSING_TO_TEXT_SECTION) lis r3,main@ha //Machine Check Exception occurs addi r3,r3,main@l mtlr r3 blrl Now I believe I have setup all the memory initialization within the chip, but I'm not sure why there is yet more of these exceptions. Anyone can help? Thanks in advance, Lei --- In [email protected], Dees Randy-rsaf30 <randy.dees@f...> wrote: > you only have to worry about the SRAM area that the monitor uses, if you are actually using the monitor to download code, program flash, etc. > > If you use BDM, then it doesn't matter. or if you never go back to the monitor after you run your program from internal memory (or don't care if the SRAM gets blown away when you return to the monitor. > > randy > > > -----Original Message----- > > From: [email protected] [mailto:[email protected]] > > On Behalf Of murphynetuk > > > > > > Just to let you know that it's possible I routinely build PB-0555 > > projects that operate entirely out of the internal SRAM, including > > the area 0x3f9800 -> 0x3fa000, even though the Axiom documentation > > claims that area for their monitor. > > Ian ----------------------------------------------------------- To learn more about Freescale Microcontrollers, please visit http://www.freescale.com/mcu Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/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/