2018-09-28 08:15 AM
Hello,
I am working on a IAP project with STM32F767ZI-NUCLEO board, I followed the AN4657 document and I also follow the STM32Cube-IAP-using-UART example from ST. The MCU did jump to the new application but sometimes the system init or may be the HAL didn't init (I used the debugger to debug). I tried the deinit the HAL before jumping to the new application but it also not working. Can I have some of your advices? Thank you!
Best regards,
Duy
2018-09-28 08:25 AM
>>Can I have some of your advices?
Debug harder..
Instrument the code until you understand what is happening.
Watch for interrupts, especially things like SysTick
Look at what you're initializing and why. If your loader has already brought up the clocks and PLL and is running at 216 MHz, do you need to do that *again* or not?
Make sure the vector table is correctly situated and the vectors point at the routines at the expected addresses, and the SCB->VTOR points at the new table.