Users who have used STM32 should know that there are many ways to program the STM32 chip after you have finished debugging the program. If you use the debug interface [JTAG/SWD] to program, you should use STVP or STLinkUtility tool software to complete the program; if you use the UART interface to program, you often need to download a PC-based flash burning tool software STM32 Flash loader demo If the program is programmed via the USB interface, it is often necessary to download the DfuSe USB firmware upgrade tool software. Now ST has introduced the new highly integrated programming tool software STM32CubeProgrammer, which will not be so troublesome in the future, because it supports the above three types of programming interfaces, but also has other functions. First, STM32CubeProgrammer has the following features: 1. Can erase or program the on-chip flash and view the flash content; 2. Support files in formats such as S19, HEX, ELF and BIN; 3, support debugging interface or bootloader interface; ---STLINK Debug Interface [JTAG/SWD] ---UART or USBDFU bootloader interface 4. Support erasing or programming of external memory; 5, support automatic programming of STM32 chip [erasing, verifying, programming, option word configuration]; 6. Support programming of the STM32 on-chip OTP area; 7, support both graphical interface operations and command line operations ; 8. Support online firmware upgrade function for STLINK debugger; 9. Implement firmware encryption operation with STM32 Trusted Package Creator tool ; 10, support WINDOWS, LINUX, MAC OS multiple operating systems; Second, several user manuals related to STM32CubeProgrammer The user manual related to the STM32CubeProgrammer operation currently has DB340, UM2237, UM2238, etc. You can go to the ST official website. Search for downloads yourself. Third, the operation interface demonstration Fourth, a few reminders For the above several interfaces and programming modes, I used multiple STM32 development board connection tests, all of which are OK. However, there are a few reminders to share with you. 1. Install or upgrade JAVA before installing STM32CubeProgrammer , there will be a reminder during the installation process. 2. When using the STM32CubeProgrammer to connect to the target board via STLINK, sometimes the connection may not be possible. In addition to the hardware connection factor, there is a low firmware version inside STLINK. You need to manually upgrade it. This can be upgraded online with the STM32CubeProgrammer tool . You may need to re-plug it once or twice during the upgrade . At this point, after clicking the Firmware upgade in the lower right corner of the above image , the following interface appears: Then you click Open in update mode until the firmware version is released. When the upgrade becomes valid, you can perform STLINK firmware online upgrade. After the upgrade is complete, you can connect again. When connecting again, it is recommended to click the circular loop arrow behind the SLTINK serial number [as indicated by the arrow below). If the serial number can be displayed, you can connect. 3. When using the USB DFU mode for program burning, if you have previously installed the STM32 DFU programming tool, remember to uninstall the previous STM32 DFU driver first, otherwise there will be no connection. After uninstalling, run the STM32Bootloader.bat file in the installation directory. [ Special reminder! 】 4, other more methods and details can refer to the user manual mentioned above, especially UM2237 . As for the download of the tool, you can go to the official website. Search for STM32CubeProgrammer directly to find relevant information. 9V Ac Dc Adapter,Adaptor 9 Volt,Dc 9V Adapter,9V Ac Adapter ShenZhen Yinghuiyuan Electronics Co.,Ltd , https://www.yhypoweradapter.com