2020-06-12 04:28 PM
I have a customer that wants to update the wireless stack on their custom assy. This has been implemented successfully following the procedure set detailed in AN5185. Please note that this is not an OTA upgrade and the stack is upgraded via application code using the FUS_FW_UPGRADE with the stack loaded in the non locked area of flash.
During performance testing we are looking for the system to gracefully recover if a "power event / power cycle" occurs during the upgrade process. Although there is a specific error code for a power cycle or user abort, we are finding that the system does not appear to recover well if the power event happens while the cpu is acting on the FUS_FW_UPGRADE process.
Any advice on error handling or further detail about the process would be helpful and appreciated.
I also noticed that the OTA example provided includes the command SHCI_C2_FUS_FwUpgrade(0,0); (both source and destination addresses are set to 0) . What does this do and why was this done.
Thanks
2020-06-15 01:30 AM
It is possible to recover from power cut during a programming phase.
There are 3 cases
2020-06-15 06:39 AM
Remi,
Thanks for the quick and comprehensive reply. Can tell me about the SHCI_C2_FUS_FwUpgrade(0,0); command. The docs and code do not indicate what this function does when both the source and destination addresses are 0.
2020-06-15 07:14 AM
This function is of no use currently. It is ony there for future use.
2022-02-25 08:39 AM
Hi @LPala.2 & @Remi QUINTIN
I am working on a similar project. I am not doing the OTA firmware upgrade but storing my new stack image in internal flash memory. The MCU that I am using is STM32WB5xxG(1M). Following are the steps I am following based on the instructions in AN5185 Rev 6.
The pre-condition is that the WS is running, BLE is initialized, my custom application is running:
With this, I am not able to flash the new image and the error code from FUS commands is SHCI_UNKNOWN_CMD.
Is this a correct method? Is there an example other than OTA that I can follow?
Thank you,
Arshiya Tabassum