2022-04-29 07:52 AM
Hi guys, I have any questions about OTA BLE using STM32WB.
I didn't understand this area circled in red (vídeo: "STM32WB Getting Started Series: Part 7, Over-the-Air (OTA)"):
1) This space of memory is used to store the new user application or new ble stack or new FUS, right? But, if the new user application has a big memory, what will happen?
2) When the update happens, is the new application placed in this area circled in red and then the old application memory is deleted and then the new application is placed in memory space 0x08007000?
3) Can I change the position 0x08007000? (I have the application that has 600Kb of memory and I think that It's needs to increase the memory space).
4) As I need to increase the memory, I will have to change the Magic Keyword to another memory location, is this possible?
5) What will happen to the free memory (circled in red) if I change the position of the magic keyword?
2022-05-24 06:07 AM
Hello,
You can look the following application note which describes the procedure for over-the-air (OTA) firmware update on ST32WB devices with Bluetooth® Low Energy (BLE) connection:
For user application update, first the current user application is deleted and then the new application is downloaded. You can look the figure 6 of AN5247.
For wireless firmware update (BLE stack or FUS), the new firmware is downloaded in free area, so it's necessary to have enough memory. You can look the figure 7 of AN5247.
In order to change the position 0x08007000, you must modify BLE_Ota project and the scatter files.
You can change the Magic Keyword location but you should modify BLE_Ota project according to this new location.
Best Regards