2024-07-17 11:53 PM
Hello,
I want to read which stack is updated in my controller. For example stm32wb5x_BLE_Stack_full_extended_fw / stm32wb5x_BLE_Stack_light_fw / stm32wb5x_BLE_Zigbee_RFD_static_fw.
So can I read back the stack name using code? Is there any way to read the stack name? For reading the Stack version I am using this "SHCI_GetWirelessFwInfo" function. is there any function available to read the stack name?
Thanks and Regards
Sarthak Malik
Solved! Go to Solution.
2024-07-18 12:58 AM
Hi @Smalik
At my knowledge, there is only one un-direct way to know which wireless stack is embedded.
It's by reading the SFSA option byte. This option byte reflects the address in the Flash where the wireless stack has been installed. Wireless stack can be installed everywhere in the Flash (if there is the space for sure), but ST provide an optimal address for each of them.
Thus for example (for STM32WB5xxG with CubeWB v1.20.0):
stm32wb5x_BLE_Stack_full_extended_fw optimal address is 0x080C5000 => SFSA=0xC5
stm32wb5x_BLE_Stack_light_fw optimal address is 0x080D7000 => SFSA=0xD7
stm32wb5x_BLE_Zigbee_RFD_static_fw optimal address is 0x0808D000 => SFSA=0x8D
For sure, this solution is only giving a hint.
Optimal addresses are provided in Release_Notes.html:
\STM32Cube_FW_WB_V1.20.0\Projects\STM32WB_Copro_Wireless_Binaries\STM32WB5x\Release_Notes.html
Best Regards,
Alan Porte
ST MCU Support Team
2024-07-18 12:58 AM
Hi @Smalik
At my knowledge, there is only one un-direct way to know which wireless stack is embedded.
It's by reading the SFSA option byte. This option byte reflects the address in the Flash where the wireless stack has been installed. Wireless stack can be installed everywhere in the Flash (if there is the space for sure), but ST provide an optimal address for each of them.
Thus for example (for STM32WB5xxG with CubeWB v1.20.0):
stm32wb5x_BLE_Stack_full_extended_fw optimal address is 0x080C5000 => SFSA=0xC5
stm32wb5x_BLE_Stack_light_fw optimal address is 0x080D7000 => SFSA=0xD7
stm32wb5x_BLE_Zigbee_RFD_static_fw optimal address is 0x0808D000 => SFSA=0x8D
For sure, this solution is only giving a hint.
Optimal addresses are provided in Release_Notes.html:
\STM32Cube_FW_WB_V1.20.0\Projects\STM32WB_Copro_Wireless_Binaries\STM32WB5x\Release_Notes.html
Best Regards,
Alan Porte
ST MCU Support Team