Content originally posted in LPCWare by dariush_abbasi868 on Tue Jun 09 00:39:17 MST 2015
Hi, every body
after about one year that I didnot work in lpc1768 project , now I want to work and make it's secondary bootloader by UART.
I have already problem because when I run this :
void boot_jump(WORD address)
{
asm("LDR SP,[R0]"); //Load new stack pointer address
asm("LDR PC,[R0,#4]");//Load new program counter address
}
//************************************
void execute_user_code(void)
{
SCB->VTOR = USER_FLASH_START & 0x1FFFFF80;
boot_jump(USER_FLASH_START);
}
#define USER_FLASH_START 0xa000
for to jump to 0xa000 address ( stat of secore 10) my program jump to another address I think ( I debug it by jtag debuger )\
sugest that my application in not ok , al least jumping by secondary bootloader should work own job !
if jumping in seconary bootloader depend on application , would it bee posible for some one to send me a correct *.icf file for lpc1768 that is for the sector number 10 to start aplication .