RE: Interrupts in Codewarrior v8
Dobbin Allan-r11834 <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <45E41B46B1F8D81183E4000F20D7C40B0B5682CF@az33exm40-bu.am.freescale.net> |
Your interrupt vectors have to be at one of two positions i.e 0x0 or 0xfff00000, depending on MSR[IP] bit. Typically 0 is used for FLASH and the fff00000 may be used for debugging from external RAM. So depending on the IP bit, you have to move your interrupt routine to one of the locations and so you have to provide a secion for that in your linker file. It sounds like the ext_isr is the section that has been used in setup_ext_int and the error indicates it as not been defined in your linker file. Open the linker file and copy the existing syntax to add the ext_isr section into the 'rom' or equivalent GROUP. There are several archived mails on seting up interrupts. Refer to app note AN2109 for everything you wanted to know about MPC500 interrupts. Allan -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of csuozzo Sent: Saturday, April 30, 2005 5:42 PM To: [email protected] Subject: [MPC500] Interrupts in Codewarrior v8 I'm trying to figure out how to get Codewarrior and my program to allow my interrupt handler to process an interrupt generated by one of the TPU channels (PTA). The "EPPC Exceptions" panel has been changed so that program, external and trace exceptions should not trigger debug mode. I've based all my interrupt related code on the programmable time accumulator example in AN2365 (setup_ext_int.c). While the program is running, an interrupt is generated by the TPU, and the program stops execution at this point (0x0000050c) for debugging. I do get a linker warning upon compiling: "No linker command file input for section '.ext_isr' of type 'CODE' in file 'C:\...\setup_ext_int.o'. '.ext_isr' will be input for the output section '.init'." Any suggestions on how to handle this? I greatly appreciate any advice anyone could give. Thanks! Chris ----------------------------------------------------------- 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/