Can I upgrade the STM32WB wireless stack & FUS in a custom application?
Hello,
Thank you for your detailed answers. I have resolved the design concerns related to this.
I need your input for another issue. I am working on upgrading the wireless stack & FUS programmatically. I am NOT doing the OTA firmware upgrade but storing my new stack & FUS images 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 (which I think means FUS is running too), BLE is initialized, my custom application is running:
- Install the new wireless stack at 0x08078000 (additional encryption added)
- Decrypt the new wireless stack from additional encryption
- Initiate the upgrade by using FUS commands :
- Call SHCI_C2_FUS_GetState(0); - Should I still call this if I know that my stack is running?
- Call SHCI_C2_FUS_FwDelete();
- Call SHCI_C2_FUS_FwUpgrade(0x08078000, 0x080C7000);
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