Content originally posted in LPCWare by dariush_abbasi868 on Mon Jun 08 01:33:08 MST 2015
hello ,
I use this for lpc1768 secondary bootloader by uart ,
I am using debuger also to sense what is readly hapen ,
In jumping to application address I used :
asm("LDR SP,[R0]"); //Load new stack pointer address
asm("LDR PC,[R0,#4]");//Load new program counter address
I checked R0 is ok and it is 0xa000 that is the address of my application
but sp has a wrong value ( I think ) what it should be exactly ?