hi,
modified code as follows.
void start_application(unsigned long app_link_location)
{
uint32_t stackPointer = APP_VECTOR_TABLE[kInitialSP];
uint32_t applicationAddress = APP_VECTOR_TABLE[kInitialPC];
static uint32_t s_stackPointer = 0;
s_stackPointer = stackPointer;
static void (*farewellBootloader)(void) = 0;
farewellBootloader = (void (*)(void))applicationAddress;
// Set the VTOR to the application vector table address.
SCB->VTOR = (uint32_t)APP_VECTOR_TABLE;
// Set stack pointers to the application stack pointer.
__set_MSP(s_stackPointer);
__set_PSP(s_stackPointer);
// Jump to the application.
farewellBootloader();
}
when i dump led blinking program using bootloader, it works fine.
but when i dump my application using bootloader, it does not work, please guide me, what might be worng?
Regards,
Aniket