cancel
Showing results for 
Search instead for 
Did you mean: 

Firmware update failed (OTA/ADU)

SLiu.4
Associate

Hi,

We are working on a STM32 project based on sample_azure_iot_embedded_sdk_adu project. The board is B-L4S5I-IOT01A.

At the moment, we are implementing the OTA. The board is able to download the firmware bin file, however it is stuck at the function HAL_FLASH_OB_Launch() -> SET_BIT(FLASH->CR,FLASH_CR_OBL_LAUNCH). After that, the debugger says that "target is not responding, retrying... ". Then, the board resets by itself and still boots up with the original firmware.

The firmware size is 360KB which is less than each bank size.

Can you please take a look and see what would be the cause of it ? FYI, Attached is the linker file and the c file.

Thanks,

Face

1 ACCEPTED SOLUTION

Accepted Solutions
SLiu.4
Associate

We found the issue that the banks got swapped twice. That is why it loads the original firmware again.

View solution in original post

1 REPLY 1
SLiu.4
Associate

We found the issue that the banks got swapped twice. That is why it loads the original firmware again.