AnsweredAssumed Answered

LPC11C14 - boot_jump() , Operand syntax error

Question asked by yansin lee on Jun 2, 2019
Latest reply on Jun 3, 2019 by yansin lee

My code :

void boot_jump(uint32_t address)  /* Jump to user app form bootloader */
{
    __ASM("LDR SP, [R0]");      //Load new stack pointer address
    __ASM("LDR PC, [R0, #4]");  //Load new program counter address
}

err log :

Error[Og006]: Error in inline assembly: "Error[401]: Operand syntax error" ,

 

Device  : NXP LPC11C14FBD48_301

IAR IDE:

IAR Embedded Workbench for ARM 7.40.5.9739

IAR Embedded Workbench common components 7.2.7.3905

Outcomes