|
楼主 |
发表于 2020-8-19 19:45:11
|
显示全部楼层
下载安装STM32CubeProgrammer,SWD也可以烧写的。
步骤如下:
How to flash the Wireless Coprocessor Binary via SWD/JTAG by ST-LINK (STM32CubeProgrammer GUI)
Inside the below procedure, the references to binaries name and install address are provided in the section Main Changes of this file.
STEP 1: Use STM32CubeProgrammer GUI
Version 2.4.0 or higher.
It gives access to Firmware Upgrade Service (FUS) (AN5185 : ST firmware upgrade services for STM32WB Series.) through Bootloader.
It is currently available as Graphical User Interface (GUI) mode (or Command Line Interface (CLI) mode).
STEP 2: Access to SWD Interface (system flash)
For P-NUCLEO-WB55.Nucleo :
Power ON via ST-LINK and Jumper JP1(USB_STL)
For P-NUCLEO-WB55.USBDongle :
remain switch SW2 to Boot1
Connect P-NUCLEO-WB55.USBDongle
open STM32CubeProgrammer GUI and select “ST-LINK”
in ST-LINK configuration: (Port: SWD) then select “Connect”
STEP 3: Delete current wireless stack
in Firmware Upgrade Services: select “Delete Firmware”
STEP 4 : Read and upgrade FUS Version (if unknown FUS version)
it can been obtained with Transparent Mode application from STM32CubeMonitor-RF interface or using other flashing method via USB described in RN.
0x20030030 : 00050300 : FUSv0.5.3 => Must be updated using STEP 5.
0x20030030 : 01000100 or 01000200 : FUSv1.0.x => Must be updated using using STEP 6.
0x20030030 : 0x10100000 : FUSv1.1.0 => **Up to date, you can download the new wireless stack using STEP 7.
STEP 5 : Download FUS v1.0.2 :
in Firmware Upgrade Services: (File Path: [stm32wb5x_FUS_fw_1_0_2.bin], Start Adress: [Install@])
then select “Firmware Upgrade” Please check Firmware Upgrade Services Binary Table for Install@ parameter depending of the binary.
STEP 6 :Download latest FUS v1.1.0 :
in Firmware Upgrade Service: (File Path: [FUS_Binary], Start Adress: [Install@])
then select “Firmware Upgrade” Please check Firmware Upgrade Services Binary Table for Install@ parameter depending of the binary.
STEP 7 : Download new wireless stack :
in Firmware Upgrade Service: (File Path: [Wireless_Coprocessor_Binary], Start Adress: [Install@])
then select “Firmware Upgrade” with “Verify download” and “Start stack after upgrade” Please check Firmware Upgrade Services Binary Table for Install@ parameter depending of the binary.
STEP 8 : Revert to default configuration: in Option Bytes menu for User Configuration set: nSWboot0=1 (checked) nboot1=1 nboot0=1
|
|