2021-06-24 09:32 AM
I've got custom hardware that needs a wireless stack upgrade to the latest stack, located here:
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.
Solved! Go to Solution.
2021-06-24 10:24 AM
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
2021-06-24 10:24 AM
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