Bootloader problem
Hello everyone,
I am trying to developp a bootloader but I got some issues, My application is working well.
With my bootloader I read an usb key and program the content of the hex file into the flash (this step work).
The entry point of the application is the adress 0x0800BA00.
When my application is writed in flash, I set the vector register (SCB->VTOR = (uint32_t)0x0800BA00)
Then I tried to jump to the app :
JumpAddress = *(__IO uint32_t*) (0X0800BA04);
JumpToApplication = (pFunction) JumpAddress;__set_MSP(*(__IO uint32_t*) 0X0800BA00);
JumpToApplication();
Unfortunately this doesn't work.
Idon't know if I've forget some steps or what could be wrong ? Do you have any ideas ?
Thank you !
Dorian