RE: help regarding exceptions
"G.V.Sasanka" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
Hi Randy,
I went thru AN2109 and i have tried out with the files given out there but they didnot solve my problem..actually i had problem with linker file...can you suggest me whether that linker file is compatible for MPC555 and is it intended to run ISR from ram....nextly should i have to make any changes in DER register to enable debugging while external exception occurs....Kindly reply me
regards,
Sasanka.G.V
Dees Randy-rsaf30 <[email protected]> wrote:
on the MPC555, the exception handlers must start at either 0x0 (basically internal flash unless you use ISB) or at 0xFFF0_0000. to use 0xFFF0_0000 you must set the IP bit in the MSR and usually in the reset configuration word.
if you are only using external flash, then you need to move the base of the external flash from 0xC000_0000 to a base address that includes the region 0xFFF0_0000 - this depends on the size of the external memory.
Your linker file, however says you are using a MPC565. The MPC565 has more options.for locations of the exception table - see the Freescale application notes and reference manuals.
you should definitely read AN2109 (MPC555 Interrupts/Exceptions) and AN2472 (MPC56x Enhanced Interrupts).
your linker file does not look like it puts your exceptions at the proper addresses in memory.
randy
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of G.V.Sasanka
Sent: Monday, June 06, 2005 11:12 AM
To: MPC GRP
Subject: [MPC500] help regarding exceptions
Hi,
I am using Phytec MPC555 board and codewarrior compiler..I have been facing problems in executing exceptions. i went thru the available literature but still facing problems.I am pasting my linker as well as asm file plz suggest me..i am trying to execute exceptions from and not from flash.so
Do i need to reallocate the vector table to 0xfff00000
Does the routine depend on debugging connection I use..I am using MSI wiggler
[Non-text portions of this message have been removed]
-----------------------------------------------------------
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 the Yahoo! Terms of Service.
Send instant messages to your online friends http://uk.messenger.yahoo.com
[Non-text portions of this message have been removed]
-----------------------------------------------------------
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/