2025-06-06 7:41 PM - last edited on 2025-06-07 12:06 AM by Andrew Neil
I created the OTA application by following this YouTube video:
https://www.youtube.com/watch?v=mRzZOa3jmuM&list=PLnMKNibPkDnG9JRe2fbOOpVpWY7E4WbJ-&index=14https://www.youtube.com/watch?v=mRzZOa3jmuM&list=PLnMKNibPkDnG9JRe2fbOOpVpWY7E4WbJ-&index=13
After performing an OTA update using the OTA application I created, the OTA_ReBoot characteristic does not show the "Upload File" button—only a Write button is visible, as shown in Figure 1.
The settings for OTA_REBOOT_REQUEST were configured based on Table 1 in AN5247 (see Figure 2).
So my questions are:
How should I modify the configuration to make the OTA_ReBoot characteristic appear as shown in Figure 3 (with an "Upload File" button)?
Alternatively, if I don't modify the program, can the OTA upgrade still proceed normally in the next update?
Solved! Go to Solution.
2025-06-09 2:31 AM
Hello,
the "Reboot on OTA app" section is implemented probably only for P2PServerOTA and HeartRateOTA example.
However, you can write to the OTA REBOOT REQUEST characteristic (for example "010710" (HEX) to reboot).
You should modify the project if you want to use OTA.
Best regards,
Filip Kremen
2025-06-09 2:31 AM
Hello,
the "Reboot on OTA app" section is implemented probably only for P2PServerOTA and HeartRateOTA example.
However, you can write to the OTA REBOOT REQUEST characteristic (for example "010710" (HEX) to reboot).
You should modify the project if you want to use OTA.
Best regards,
Filip Kremen
2025-06-16 7:58 PM
2025-06-17 12:46 AM
Hello,
you need to add REBOOT_REQUEST characteristic to be able to reboot on OTA app.
Also, you have to handle the request in the code, please check the P2PServer_OTA example. (P2PS_STM_BOOT_REQUEST_EVT)
The OTA app is flashed at 0x08000000 address, and your user app should be at 0x08007000 address.
(you need to change the address in the linker script file as it mentioned in the documents below)
I recommend having a look at these two documents where the examples are explained more in details.
How to build wireless applications with STM32WB MCUs - Application note
If something isn't clear to you, please let me know.
Best regards,
Filip Kremen
2025-06-20 1:25 AM - edited 2025-06-20 2:05 AM
Hi Filip,
Thanks again for your help.
I've resolved the issue with the OTA update — everything is now working as expected.
However, I have one follow-up question:
You mentioned writing "010710" (in HEX) to the OTA REBOOT REQUEST characteristic to trigger a reboot. I tried it and it works, but I couldn’t find any documentation in AN5247 or the example projects explaining the meaning or structure of this specific value.
Could you please explain what "010710" represents, or point me to the relevant documentation?
Thanks again for your support.
Best regards,
Best regards,
ShenChuanAn
2025-06-20 4:03 AM
Hello,
I'm glad it's working for you.
Regarding the value, please visit page 14 Table 1. Reboot request characteristics.
"01" - Boot on OTA app
"07" - first sector index where the new user app should be downloaded
"10" - number of sectors to erase
Best regards,
Filip Kremen