2021-11-21 01:01 AM
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
Solved! Go to Solution.
2021-11-27 09:11 PM
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
2021-11-21 06:17 AM
Hi there!
My problem has been solved!!!
Cheers,
Mo
2021-11-23 07:27 AM
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
2021-11-27 09:11 PM
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
2022-12-16 04:34 PM
Hi MT.2,
Could you please share the solution. I am having the same issue.
Thanks,
Don