problem with LPC1788 interrupts

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

problem with LPC1788 interrupts

792 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by padmaja on Thu Jul 16 01:38:33 MST 2015

hi,

i am working with uezgui-1788-70wvm. For development purpose i downloaded open source code,which is uEZ_v2.06c_SourceForge. In this folder i have a doubt in LPC17xx_40xx_Interrupt.c file.
                                     #define DEFAULT_IRQ_HANDLER(func, channel)  \
                                                                             void func(void) { (*G_isrArray[channel].iISR)(); } 
in this statement if any interrupt is generated compiler  goes to this statement and excutes specified interrupt right? But where is the vector base address initialization?? . what is the exact meaning of  (G_isrArray[channel].iISR)()) this thing.   i saw that structure is also defined there. And also i want to know the how to assign specified memory location to specified function in IAR workbench??

1. how to assign base address to vector table?
2. how to assign a specified memory location to specified function?

i have just tried one uart interrupt generation code, if i wrote a Irqhandler function in same file, which contains DEFAULT IRQHANDLERS                                                                  void UART0_IrqHandler(void){  // done receive process}

At the time of compile it gives me error "UART0_IrqHandler" has already been defined. IF i put  UART0_IrqHandler function in another file compiler gives duplicate definition for "UART0_IrqHandler" . any simple example is available for interrupts with covering all declarations, means address assigning to specified interrupt, etc??
thanks in advance


BestRegards,
padmaja m
0 Kudos
Reply
1 Reply

730 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Jul 16 02:14:09 MST 2015
I can't comment on uEZ sourceforge code or on how to do things in IAR workbench, but as you posted this in the LPCXpresso forum, you might find some useful background information in the following FAQ ...

https://www.lpcware.com/content/faq/lpcxpresso/startup-code-interrupt-handlers

Regards,
LPCXpresso Support
0 Kudos
Reply