除了按开发指南上设置外还要注意。。。
设置后其代码自动生成(相对来说其设置宏名后其可读性更强)。。。
除此之外还要注意其用户所写程序的位置(小声bb,该软件右键的搜索键很好用)。。。
成功编译并下载到板子上运行。。。
-------------------------------------------------------------------
STM32CubeProgrammer v2.16.0
-------------------------------------------------------------------
Log output file: C:\Windows\TEMP\STM32CubeProgrammer_a26328.log
ST-LINK SN : ?
ST-LINK FW : V2J44S7
Board : --
Voltage : 3.16V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x413
Revision ID : --
Device name : STM32F405xx/F407xx/F415xx/F417xx
Flash size : 1 MBytes
Start Address : 8000000
Device type : MCU
Device CPU : Cortex-M4
BL Version : 0x91
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a26328.srec
File : ST-LINK_GDB_server_a26328.srec
Size : 5.91 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:00.353
Verifying ...
Download verified successfully
Shutting down...
Exit.