can any one send me or help me in interrupt vector table for the MPC5534 using codewarrior in c

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

can any one send me or help me in interrupt vector table for the MPC5534 using codewarrior in c

2,947 Views
saurav99
Contributor I
Hello-
 
I am using CW to create a program in C for the MPC5534.  This program uses interrupts, but I have not been able to figure out how to build the vector table. 
I know there are 212 interrupt sources and their offsets but still i am not able to figure out what is the base address of the interrupt vector table and how to set the base address and what is the base address for the interrupt vector table how that will get added to offsets of those 212 vectors which are mentioned in the reference manual.can any one please help me in this aspect.
please send me any sample c file which has interrupt vecotr table for MPC5534 for codewarrior.
 
Thanks in advance your suggestion or help will solve my problem
 
Thanks
saurav99.
 
Labels (1)
0 Kudos
Reply
3 Replies

697 Views
J2MEJediMaster
Specialist I
Have you tried looking at the example code that came with the CW installation? Usually there's a simple example that demonstrates the use of an interrupt. From that, you should be able to pick up the trick to installing the vector table.

---Tom

0 Kudos
Reply

697 Views
saurav99
Contributor I
hi boss,
 
Thanks for your reply i have seen the example already but it contians only in assembly language and it is not possible to understand and it is very difficult and it if it is in c language it will be of great help and if you can provide me it in c it will be of great help and if you can explain me in detail it will solve my problem and it will be of great help.
 
 
Thanks in advance,
 
Thanks, regards
saurav99.
0 Kudos
Reply

697 Views
J2MEJediMaster
Specialist I
I've attached an archive that has some files from the Power Architecture U-boot code. In particular, the file extable.c shows how to build the exception vector table in C. If you want to examine more source than this, go to http://sourceforge.net.

---Tom



Message Edited by J2MEJediMaster on 2008-04-25 11:22 AM

Message Edited by J2MEJediMaster on 2008-04-25 11:22 AM
0 Kudos
Reply