Re: interrupts +pb0555 +codewarrior

"blogsyndrome" <[email protected]> Thu, 17 May 2007 17:39:32 -0000
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <[email protected]>
I am using CW for mpc5xx.

The initial error was at address 0x0500 
http://people.tamu.edu/~leblanc/forums/interrupts/intialerror.jpg
but once I uncheck exception handling for External interrupts
0x02000000,  I get the machine check error.


I agree that the problem lies in linker command file rom version
(.lcf), eppc_exception.asm, and/or interrupt.c


can anyone provide these 3 files for the pb0555 board.  And a user
defined c interrupt handler? (maybe even using #pragma options for
codewarrior?) 


I've been stuck on this problem for about a month (i'm on my own). 
Any help is much appreciated.  Again my current project can be
downloaded from: http://people.tamu.edu/~leblanc/forums/interrupts/


Thanks,

Leblanc Meneses



--- In [email protected], "Dobbin Allan-r11834"
<Allan.Dobbin@...> wrote:
>
> Something confuses me - "unchecked exception handling for External at
> 0x02000000".  The external interrupt is at 0x0500, so where are you
> getting 0x02000000 from?  Obvious question - you are using CW for MPC5xx
> aren't you?
>  
> If you are getting a machine check exception, it often means you are
> trying to access data or instructions from an incorrect address and
> could be caused by incorrect linker file, ext memory not initialised or
> incorrect exception vectors.
>  
> - Allan
> 
> ________________________________
> 
> From: [email protected] [mailto:[email protected]] On Behalf
> Of leblanc
> Sent: Thursday, May 17, 2007 2:19 AM
> To: [email protected]
> Subject: [MPC500] interrupts +pb0555 +codewarrior
> 
> 
> 
> Hello I am trying to get interrupts working on axiom pb0555 board using
> metrowerks codewarrior.
> 
> The zipped project file located here:
> http://people.tamu.edu/~leblanc/forums/interrupts/
> <http://people.tamu.edu/~leblanc/forums/interrupts/> 
> 
> is the closest thing generating anything that resembles an exception.
> 
> PowerPC Exception: Machine Check Exception 0x0200
> 
> My MAIN goal is to setup a C interrupt handler (catch all) which
> branches to
> specific handlers.
> 
> Again I'm using metrowerks codewarrior on pb0555. 
> 
> Also since i used the project created by codewarrior: which includes the
> following files + more: 
> 
> linker command file rom version (.lcf) note: [??what happened to
> linker for debug??]
> 
> eppc_exception.asm
> 
> interrupt.c
> 
> I would like to get this project properly configured...delete files and
> make
> necessary changes ect.
> 
> Lastly if interrupts do work for me.. is it possible to set breakpoint
> inside interrupts?
> 
> I have a slackware guru on my team so if you have free command line
> tools
> with the command to do this 
> 
> which removes all the crapy template files generated by codewarrior;
> I'll
> accept that solution also.
> 
> References:
> 
> 1) I've already read AN2109 written for (diab compiler) 
> 
> 2) Countless threads complaining of this same problem.
> 
> 3) Inside debug version settings in codewarrior uncheck exception
> handling
> for External 0x02000000
> 
> 4) http://tech.groups.yahoo.com/group/MPC500/message/2749
> <http://tech.groups.yahoo.com/group/MPC500/message/2749>  
> 
> 5) http://www.nabble.com/PIT-interrupts-t287412.html
> <http://www.nabble.com/PIT-interrupts-t287412.html> 
> 
> Leblanc Meneses
> 
> leblanc@... <mailto:leblanc%40tamu.edu> 
> 
> 979-492-6742
> 
> http://people.tamu.edu/~leblanc <http://people.tamu.edu/~leblanc> 
> 
> [Non-text portions of this message have been removed]
> 
> 
> 
>  
> 
> 
> [Non-text portions of this message have been removed]
>