cancel
Showing results for 
Search instead for 
Did you mean: 

How do I upgrade the wireless stack on STM32WB5MMG? What's the correct start address?

ASmit.4
Associate II

I've got custom hardware that needs a wireless stack upgrade to the latest stack, located here:

https://github.com/STMicroelectronics/STM32CubeWB/blob/master/Projects/STM32WB_Copro_Wireless_Binaries/STM32WB5x/stm32wb5x_BLE_Stack_full_fw.bin

But I do not know what the correct start address is to use.

I have read https://www.st.com/resource/en/application_note/dm00513965-st-firmware-upgrade-services-for-stm32wb-series-stmicroelectronics.pdf and I found the following:

2. Write the wireless stack image in the user Flash memory at the address equal to:

– If new install (no wireless stack currently installed): 0x08000000+(SFSA x 4KB) - ImageSize

– If a wireless stack is already installed:

◦ If new image size <= current image size: WirelessStackAddress - ImageSize

◦ If new image size > current image size: WirelessStackAddress - (2xImageSize – WirelessStackSize

It is advised to perform a FUS_FW_DELETE operation before starting a wireless stack installation. (This is performed by STM32CubeProgrammer when option -firstinstall=0 is selected)

I see that the new image is 167 KB, and from the log, I think the current stack might be 8192 Bytes, but I'm still unclear o what to set as the start address.

1 ACCEPTED SOLUTION

Accepted Solutions
ASmit.4
Associate II

Found the answer: open the release notes https://github.com/STMicroelectronics/STM32CubeWB/blob/master/Projects/STM32WB_Copro_Wireless_Binaries/STM32WB5x/Release_Notes.html

and a table is provided with starting addresses, along with instructions for updating the FUS and the stack

View solution in original post

1 REPLY 1
ASmit.4
Associate II

Found the answer: open the release notes https://github.com/STMicroelectronics/STM32CubeWB/blob/master/Projects/STM32WB_Copro_Wireless_Binaries/STM32WB5x/Release_Notes.html

and a table is provided with starting addresses, along with instructions for updating the FUS and the stack