Article count:1121 Read by:2938180

Account Entry

Application Note | How to program FUS+STACK+APP in STM32WB at one time

Latest update time:2023-10-13
    Reads:


Keywords: STM32WB, programming, FUS+STACK+APP



Catalog preview


1 Introduction

2. Operation method

3. Burning verification

4. Summary

5. Appendix



0 1

Preface


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.



02

How to operate


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.



03

Burn verification


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.


04

Summarize



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.



05

appendix


LOG log:



For the complete content, please click "Read the original text" to download the original document.


Subscription number

Follow STM32

Video number


Station B account


Latest articles about

 
EEWorld WeChat Subscription

 
EEWorld WeChat Service Number

 
AutoDevelopers

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building,Block B, 18 Zhongguancun Street, Haidian District,Beijing, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号