assembler in C (LPC1114)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

assembler in C (LPC1114)

672 次查看
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 项奖励
回复
1 回复

624 次查看
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 项奖励
回复