2023-02-21 08:07 PM
Hi,
I'm using STM32F429 on a product. I'm doing a device firmware upgrade using the BFB2 feature. The exact steps I'm doing are:
I noticed when I'm booting from Bank2 and writing the new FW to Bank1, the MCU hangs on soft reset.
This only happens from Bank2 switch to Bank1. From Bank1 to Bank2, the MCU resets itself when I do HAL_FLASH_OB_Launch(). So I don't need to do NVIC_SystemReset().
I have to manually reset the MCU (pull NRST to low) to boot into the new FW. Alternatively, if I connect the MCU via an ST-Link and hit "Run", it would also work. I have external pull-up on the NRST pin, and pull-downs on Boot0/Boot1 pins.
Any suggestions?
Thanks,