wireless stack did not start and stop in SBSFU
Hi,
I am replacing Standalone Loader(Ymodem serial) and porting BLE_OTA in SBSFU as mention in AN5056 section 8.4 How to replace the standalone loader with a BLE OTA loader i am successfully ported and run BLE OTA but as wireless stack not started it not enable BLE.
So i am started wireless stack by command line
$ sudo ./STM32_Programmer_CLI -c port=usb1 -startwirelessstack
now it's able to detect device and i am perform firmware upgrade userapp.sfb through OTA.
it downloaded but not decrypt, verify and run. i am suspecting FUS is not ideal and that why SHCI_C2_FUS_LoadUsrKey not working. whenever i am making FUS in ideal state using following command
$ sudo ./STM32_Programmer_CLI -c port=usb1 -fusgetstate
and then after restart the board in normal mode it can decrypt data form slot 1,verify it and store it in slot 0(active slot) and application is running.
Here my question is why we manually start wireless stack and also why there no any check for fus get status and if it's not ideal why image is not decrypt and verify ? also when next firmware upgrade occur we need to manually start wireless stack again?
Note: SHCI_C2_Reinit( ) this api also not called form any where in SBSFU source code.
Thanks,
Arjun
