2023-04-27 12:18 AM - edited 2023-11-20 07:01 AM
Hello. I am following document:
on how to flash STM32WB firmwares.
I am going through steps:
How to flash the Wireless Coprocessor Binary via SWD/JTAG by ST-LINK (STM32CubeProgrammer GUI)
at STEP 4, I have read FUS Version:
and evertyhing seems fine:
I then go to STEP 7:
It says I must now download new wireless stack (I have stm32wb5x_BLE_Stack_full_fw.bin)
The instruction say:
The document says: [Install@]. What does that supposed to mean?
I am very confused on what should be Start Address. I tried looking everywhere but cannot find such information. Could someone point me in the right direction please?
UPDATE
I have found some information regarding flashing stm32wb here:
https://blog.davidbramsay.com/getting-started-with-stm32wb-and-ble-communications/
In that blog, the guy suggest flashing to the following offsets:
FUS V 1.0.2: 0x080EC000
BLE FULL STACK : 0x080CB000
I have tried flashing via Firmware Upgrade Services but it does not seem to allow:
UPDATE2
I have tried to flash the firmware via the Erasing & Programming section of STM32CubeProgrammer instead of Firmware Upgrade Services.
I was able to succesfully flash the FUS firmware:
I then moved to BLE stack firmware:
It seems that flashing is successfull apart from a couple of warnings (I am not sure if they are relevant.
I want to know why I am able top flash via Erase & Programming menu and not Firmware Upgrade services.
Also, Since I have flashed all the firmwares, how can I now check if everything is ok?
Solved! Go to Solution.
2023-04-27 01:29 AM - edited 2023-11-20 07:01 AM
Hello,
You can look this wiki page which describes step by step how to setup your board. In your case for BLE Full stack (stm32wb5x_BLE_Stack_full_fw.bin) from STM32CubeWB package v1.16.0, the download address is 0x080CE000 if you are working on NUCLEO-WB55 board according to the release note, see the following screenshot:
Best Regards
2023-04-27 01:29 AM - edited 2023-11-20 07:01 AM
Hello,
You can look this wiki page which describes step by step how to setup your board. In your case for BLE Full stack (stm32wb5x_BLE_Stack_full_fw.bin) from STM32CubeWB package v1.16.0, the download address is 0x080CE000 if you are working on NUCLEO-WB55 board according to the release note, see the following screenshot:
Best Regards
2023-04-27 01:56 AM
Thank you very much! Would you be able to clarify to me why I am not able to upload the stack firmware via the Firmware Upgrade Services as it giving me error about wrong address but I can upload the firmware via Erasing & Programming section on stm32cubemx? Is there any difference? The instructions that I follow specify that I need to do it via Firmware upgrade service.
Regardles, i will now follow the wiki instructions that you provided and let you know
2023-04-27 02:05 AM - edited 2023-11-20 07:01 AM
@Remy ISSALYS
I am confused already again regarding start address of BLE stack firmware. The wiki that you provided says:
And you mentioned 0x080CE000
Is that a mismatch because that image is from an older version?
2023-04-27 02:05 AM
Hello,
To download the wireless stack or the FUS, you should use the Firmware Upgrade Services window in STM32CubeProgrammer.
Best Regards
2023-04-27 02:11 AM
On the wiki page the screenshot corresponds to an older version of STM32CubeWB package. You should use the address corresponding to your version (the latest is v1.16.0).
2023-04-27 02:12 AM - edited 2023-11-20 07:02 AM
@Remy ISSALYS
Thanks for clarifying again. I have followed the instructions at wiki and getting issues
I simply did:
After that, the error message pops up and says:
Error: Could not execute firmware upgrade command, Wrong address
It seems that this is a known issue:
https://community.st.com/s/question/0D50X0000BNtd6DSQR/error-when-updating-fus-firmware
and here
I went through these other forum posts but there doesnt seem to be a clear solution
Perhaps it is some issue with my Option bytes? Would it help if I show to you. Although I havent touched them
2023-04-27 03:09 AM
Hello,
Which board are you using? When you click on Read FUS info button, can you show the value that you have? Which version of STM32CubeProgrammer are you using?
Best Regards
2023-04-27 03:49 AM - edited 2023-11-20 07:02 AM
I was able to successfully flash the stack firmware (atleast it said that it was sucessfull) but when I read back FUS infos, it still shows old STACK version.
We are using our custom board that has
STM32WB55REV6. It is 512Kb chip. According to release notes, I should be using address:
The STM32CubeProgrammer version: v2.11.0
I have downloaded latest STM32WB (v1.16.0) package from:
https://www.st.com/en/embedded-software/stm32cubewb.html#get-software
I repeat all the steps.
4.Select stm32wb5x_BLE_Stack_full_fw.bin from the package that I have recently downloaded
5.Set the offset to 0x0805A000
6.Tick "First install" and "Start stack after upgrade"
7.Click "Firmware Upgrade"
8.After Firmware upgrade is successfull I read FUS infos again to confirm if stack version has been updated. However, it still says v.1.14.1.1 not sure why
2023-04-27 03:55 AM - edited 2023-11-20 07:02 AM
UPDATE
I have reflashed the FUS firmware and then STACK and now it shows the correct version:
I believe everything is OK now
Thank you very much for your quick help