Hi
I put bootloader in flash 0x0~0x10000, application in 0x10000~0x7FFFF.
Could you let me know how to jump to 0x10000 after finish downloading the firmware? Is there a jump example?
I write below code but it doesn't jump to the application address. Thanks.
#define ApplicationAddress 0x10000
void Jump2App(void)
{
// turn off SysTick and its interrupt before entering
ROM_SysTickIntDisable();
ROM_SysTickDisable();
// Disable all processor interrupts.
HWREG(NVIC_DIS0) = 0xffffffff;
HWREG(NVIC_DIS1) = 0xffffffff;
HWREG(NVIC_DIS2) = 0xffffffff;
HWREG(NVIC_DIS3) = 0xffffffff;
HWREG(NVIC_DIS4) = 0xffffffff;
(*((void (*)(void))(*(uint32_t *)ApplicationAddress)))();
}