Application Note | How to program FUS+STACK+APP in STM32WB at one time
Catalog preview
1 Introduction
2. Operation method
3. Burning verification
4. Summary
5. Appendix
When using the STM32WB series MCU, updating FUS, Stack, and User APP through the STM32CubeProgramer GUI requires multiple operations and different addresses must be entered, which is relatively cumbersome and not suitable for use in mass production.
According to RN0109: STM32CubeProgrammer v2.11.0 release information, STM32CubeProgrammer v2.11.0 already supports automatic updates of FUS, Stack, and User APP through CLI.
According to the UM2237 STM32CubeProgrammer command line interface (CLI) for MCUs document description, the following commands will be used to upgrade FUS, STACK, and User APP.
-startfus: start FUS
-fwupgrade: upgrade BLE protocol stack or FUS
-w,--write,-d,-download: Download binary files, which will be erased before downloading.
-hardRst: hard reset
When upgrading FUS or the protocol stack alone, just operate the command according to the above syntax rules. When upgrading FUS+STACK+APP at the same time, in the STM32CubeProgrammer v2.11.0 version, you only need to combine three commands into one through the command line, as shown in the figure below.
The path and address need to be determined based on your actual path and the file to be burned.
Since the command contains a hard reset, after successful programming, the system will be reset. After reset, the APP that has been programmed by the user will be executed. At this time, you can directly connect to Bluetooth and verify the application.
The burning process will generate Log information, see the appendix.
One-click programming is a practical requirement in the production line. The currently updated version of STM32CubeProgrammer v2.11.0 already supports update and programming through CLI. There may be more convenient operation methods in subsequent versions. Of course, these commands can also be made into scripts to make them more convenient to use.
LOG log:
Follow STM32