Skip to main content
MT.2
Associate II
November 21, 2021
Solved

BLE OTA on STM32WB55 does not work when I am using my own application

Hi there,

I have tried BLE_HeartRate_ota and it works. Yet, when I integrate OTA to my own applicaiton (by uploading BLE_Ota_reference.hex to 0x08000000 first)and try to update the firmware via ST BLE sensor app, the STM_OTA service cannot be connected and the app shows that node cannot be found. Only my application is advertising. My application starts at 08007000 and I have updated the linker file(you can find it in the attachment). "BLE_CFG_OTA_REBOOT_CHAR"  is set to 1 (from ble.config.h) and "SCB->VTOR = VECT_TAB_OFFSET" is removed (from system_stm32wbxx.c). The magic word can be found in app_ble.c(see below). I am using STM32cubeIDE and STM32Cube_FW_WB_V1.0.0. I have no idea what to do so that my OTA application can work.

Thank you for any suggestion!

Cheers,

Mo

0693W00000GYKQBQA5.png

This topic has been closed for replies.
MT.2
MT.2Best answer
Associate II
November 28, 2021

Hi @Imen DAHMEN​ ,

The following is missed that's why the reboot request(in app.c) is not handled and OTA service cannot be triggered.

Besides, may I also ask why I sometimes need to go back to the device list (ST BLE Sensor app) in order to connect to OTA service after pressing firmware update in my application? If I use the sample code like BLE_HeartRate_ota, after pressing firmware update, it connects to OTA service by itself. Appreciate any suggestion!

Cheers,

Mo

0693W00000GZA5FQAX.png

4 replies

MT.2
MT.2Author
Associate II
November 21, 2021

Hi there!

My problem has been solved!!!

Cheers,

Mo

ST Technical Moderator
November 23, 2021

Hi @MT.2​ ,

Good to hear you made your project work.

Please share your solution with the community here, so that more members can benefit from this post.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
MT.2
MT.2AuthorBest answer
Associate II
November 28, 2021

Hi @Imen DAHMEN​ ,

The following is missed that's why the reboot request(in app.c) is not handled and OTA service cannot be triggered.

Besides, may I also ask why I sometimes need to go back to the device list (ST BLE Sensor app) in order to connect to OTA service after pressing firmware update in my application? If I use the sample code like BLE_HeartRate_ota, after pressing firmware update, it connects to OTA service by itself. Appreciate any suggestion!

Cheers,

Mo

0693W00000GZA5FQAX.png