ST STM32WB

From SEGGER Wiki
Revision as of 14:25, 5 July 2019 by Pedro (talk | contribs)
Jump to: navigation, search

Multicore Architecture

The STM32WB55 is a heterogeneous dual-core MCU with a Cortex-M4 for the end-user application and a Corte-M0 for the BLE stack.

RSS / FUS

How to update the Wireless Stack

Uploading a wireless stack to the STM32WB55 can be done with- J-Link Commander(J-Link.exe). To do so you first have to connect to the MCU by executing the following command in J-Link

C:\Program Files (x86)\SEGGER\JLink_V647d
$ JLink.exe -autoconnect 1 -device "STM32WB55xx - FUS" -if swd -speed 4000

The above command output should be as following:

600px

After successfully connect to the MCU execute the loadbin command with the binary file location and location for the Wireless stack.

 J-Link> loadbin C:\Users\Pedro\Desktop\STM32WB_Copro_Wireless_Binaries\stm32wb5x_BLE_Stack_fw.bin, 0x080CC000

The output should be as follow.

1000px

The wireless stack binaries can be downloaded from https://www.st.com/en/embedded-software/stm32cubewb.html. Once you have the package just unpack it and navigate to ..\STM32Cube_FW_WB_V1.1.0\Projects\STM32WB_Copro_Wireless_Binaries\. Inside that folder, you may find the Release_Notes.html, which will tell you where each stack starts and should be programmed, and the corresponding binary files. Bellow in Available Stacks from ST you may find the current available stacks and assigned addresses.

How to delete the Wireless Stack

Follow the same process for connecting with the STM32WB55 as above described followed by a simple erase command.

 J-Link>erase 

STM32WB55 erase under J-Link commander

Note: Don't let your self be alarmed by the errors and warnings that the J-Link might output. This happens because the erase command in the J-Link Commander is used to perform a full flash erase. Therefore when it tries to delete a RSS(which is secured) is going to return an error. A successful erase operation should output "RSS: Wireless stack successfully deleted.".

How to update the RSS

Same process as a wireless Stack. Simply loadbin over J-Link Commander to the memory specified by ST and wait for the process to finish.

Warning: Once the FUS is updated from the v0.5.3 to v1.0.1 is not possible to reverse RSS or install WS from previous versions. The RSS/FUS can only upload wireless stacks within the same release version.

How does it work

The process for uploading a Wireless stack to STM32WB55 with J-Link works by uploading the binary to the flash memory and then by requesting a Wireless stack upgrade to the FUS(Firmware Upgrade Service), by means of communication with IPPC and shared tables.

The upgrade process

  1. Before the upgrade is started the J-Link will request the FUS/RSS to delete any current wireless stack that might be installed.
  2. The uploaded stack to the flash will be checked by J-Link if it contains a valid image signature.
  3. A WS_UPGRADE request is made to the FUS. During this process, the MCU will reset several times. Until the Cortex-M0 becomes responsive the J-Link will try every second to establish a connection with the FSU.

Note: This process takes around 20 to 30 seconds depending on the Wireless stack size.

Available Stacks from ST

600px

For STM32CUBEWS vs 1.1.0 the following stacks should be installed in the below addresses.

Wireless Stack Installation address
stm32wb5x_BLE_Stack_fw.bin 0x080CC000
stm32wb5x_BLE_HCILayer_fw.bin 0x080DC000
stm32wb5x_Thread_FTD_fw.bin 0x0809F000
stm32wb5x_Thread_MTD_fw.bin 0x080B5000
stm32wb5x_BLE_Thread_fw.bin 0x08079000
stm32wb5x_Mac_802_15_4_fw.bin 0x080E6000
stm32wb5x_rfmonitor_phy802_15_4_fw.bin 0x080EC000

https://www.st.com/en/embedded-software/stm32cubewb.html https://www.st.com/en/microcontrollers-microprocessors/stm32wb-series.html