cancel
Showing results for 
Search instead for 
Did you mean: 

Unble to read the Wireless satck Name in STM32WB

Smalik
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Alan PORTE
ST Employee

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

View solution in original post

1 REPLY 1
Alan PORTE
ST Employee

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