Skip to main content
SLiu.4
Associate
November 18, 2021
Solved

Firmware update failed (OTA/ADU)

  • November 18, 2021
  • 1 reply
  • 1171 views

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

This topic has been closed for replies.
Best answer by SLiu.4

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

1 reply

SLiu.4
SLiu.4AuthorBest answer
Associate
November 19, 2021

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