assembler in C (LPC1114)

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

assembler in C (LPC1114)

594 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Roman on Mon Jun 13 00:34:01 MST 2011
Hi,

I have application with bootloader and main application itself (HW is LPC1114). From what I have read from some
application notes the interrupt handling should be redirected to the main application handling e.g. :

void SysTick_Handler(void) { /* Re-direct interrupt, get handler address from application vector table */ 
    asm volatile("ldr r0, =0x103C"); 
    asm volatile("ldr r0, [r0]"); 
    asm volatile("mov pc, r0"); 
}
However when I try something like this (I am using IAR workbench) I get an error:
Error[Og006]: Syntax error in inline assembly: "Error[0]: Invalid syntax"

I know this is not IAR forum and this probably has something do to with it, but maybe someone had similar problem
or is there any approach that I may try for the interrupt call redirecting?

Thanks

Roman
0 Kudos
Reply
1 Reply

546 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by atomicdog on Mon Jun 13 09:04:56 MST 2011
You need to convert the syntax of the inline assembly to the way IAR does it.
0 Kudos
Reply