In my custom bootloader I'm not able to jump to application.
memory mapping:
0x0 to 0x8fff - bootloader
0x9000 - 0x9ffff - firmware
bootloader Code:
void boot_jump(uint32_t address)
{
// below assembly code gives error in mcuxpresso
// __asm(
// LDR SP, [R0] //;Load new stack pointer address
// LDR PC, [R0, #4] //;Load new program counter address
// );
//alternate function for jump
asm("bx %r0");
}
void main()
{
for(uint8_t irqn=0; irqn < 32; irqn++)
{
NVIC_DisableIRQ(irqn);
NVIC_ClearPendingIRQ(irqn);
}
SCB->VTOR = 0x9000 & 0x1FFFFF80;
boot_jump(0x9000 );
}
Solved! Go to Solution.
Hi,
Please check the following thread and let me know if this helps,
https://community.nxp.com/thread/494497
Have a nice day!
Regards
Sol
Hi,
Please check the following thread and let me know if this helps,
https://community.nxp.com/thread/494497
Have a nice day!
Regards
Sol