Hello,
I don't succed to jump to my User APP firmware..
Some one have an idea ?
Thanks
here, a piece on my code :
__asm void boot_jump( uint32_t address )
{
LDR SP, [R0]
LDR PC, [R0, #4]
}
void execute_user_code(void)
{
/* Change the Vector Table to the USER_FLASH_START
in case the user application uses interrupts */
//__disable_irq();
SysTick->CTRL &= ~0x00000002;
SCB->VTOR = (uint32_t)USER_FLASH_START;
boot_jump(USER_FLASH_START);
}
/*----------------------------------------------------------------------------
Main Thread 'main': Run Network
*---------------------------------------------------------------------------*/
int main (void)
{
if(Flash_ReadFW()==0)
{
execute_user_code();
}
osKernelInitialize (); // initialize RTOS kernel
hardware_init();
LED_Initialize ();
Buttons_Initialize ();
debug_printf("\r\n\r\nBootloader by - GB\r\n"); // ne pas oublier de cocher MicroLIB dans les options du projet !!!
osThreadNew(blinky_Thread, NULL, NULL); // Create application main thread
osThreadNew(LAN_Thread, NULL, NULL); // Create application main thread
osKernelStart (); // start kernel with job2 execution
while(1);
}