LPC11C14 - boot_jump() , Operand syntax error

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

LPC11C14 - boot_jump() , Operand syntax error

Jump to solution
953 Views
yansinli
Contributor III

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

Labels (1)
1 Solution
745 Views
jeremyzhou
NXP Employee
NXP Employee

Hi yansin lee,

Thank you for your interest in NXP Semiconductor products and
the opportunity to serve you.
To provide the fastest possible support, I'd highly recommend you to refer to the AN11772: LPC11Cxx CAN secondary bootloader which guide you how to jump to APP appropriately.


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

2 Replies
746 Views
jeremyzhou
NXP Employee
NXP Employee

Hi yansin lee,

Thank you for your interest in NXP Semiconductor products and
the opportunity to serve you.
To provide the fastest possible support, I'd highly recommend you to refer to the AN11772: LPC11Cxx CAN secondary bootloader which guide you how to jump to APP appropriately.


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

745 Views
yansinli
Contributor III

very help answer~~ fix my question~~ thank you

0 Kudos