Skip to main content
Associate III
June 5, 2025
Solved

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:

  1. In ble_conf.h, I added:
    #define BLE_CFG_OTA_REBOOT_CHAR 1 /**< REBOOT OTA MODE CHARACTERISTIC */

  2. 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 */
  3. 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?

3 replies

FilipKremen
ST Employee
June 5, 2025

Hello,

can you please share your project?

Thank you.

 

Best regards,

Filip Kremen

ShenChuanAnAuthorBest answer
Associate III
June 5, 2025
FilipKremen
ST Employee
June 5, 2025

Could you please share more details about the missing the step to make a working project?

It would be beneficial also for others. Thank you.

 

Best regards,

Filip Kremen

Associate III
June 6, 2025

The problem was solved according to the steps in this video, but it was not completely resolved

https://www.youtube.com/watch?v=mRzZOa3jmuM&list=PLnMKNibPkDnG9JRe2fbOOpVpWY7E4WbJ-&index=10