Why does the update fail after I modified a non-OTA project into an OTA project?
- June 5, 2025
- 3 replies
- 564 views
After I select the project and download it, the ST BLE Toolbox (as shown in Figure 1) displays "Upload completed."
However, after the Bluetooth restarts, it still shows "STM OTA", which means my application was not successfully downloaded to flash.
I'm using the STM32WB55CGU6 chip, with FUS version v2.0, and ST BLE Toolbox v1.4.4.
The steps I performed to convert the non-OTA project to OTA are as follows:
In ble_conf.h, I added:
#define BLE_CFG_OTA_REBOOT_CHAR 1 /**< REBOOT OTA MODE CHARACTERISTIC */I removed the following lines from SystemInit(void):
//#if defined(USER_VECT_TAB_ADDRESS)// /* Configure the Vector Table location and offset address */// SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET;//#endif /* USER_VECT_TAB_ADDRESS */I modified stm32wb55xx_flash_cm4.sct, copying its contents directly from the official ST example at:
BLE_HeartRate_ota scatter file
Did I miss any required steps that are causing the OTA upgrade to fail?
