最小电路 stm32f103x
内部已经集成了振荡电路,可以省略;rst引脚电路,可以省略,boot0,boot1不需要设置
正常烧录
-------------------------------------------------------------------
STM32CubeProgrammer v2.9.0
-------------------------------------------------------------------
ST-LINK SN : 16004A002933353739303541
ST-LINK FW : V2J38S7
Board : --
Voltage : 3.17V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x412
Revision ID : Rev A
Device name : STM32F101/F102/F103 Low-density
Flash size : 32 KBytes
Device type : MCU
Device CPU : Cortex-M3
BL Version : --
Memory Programming ...
Opening and parsing file: BlinkSTM32FC8.ino.bin
File : BlinkSTM32FC8.ino.bin
Size : 10916 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 10]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:00.797
RUNNING Program ...
Address: : 0x8000000
Application is running, Please Hold on...
Start operation achieved successfully
不正常上传
ST-LINK SN : 16004A002933353739303541
ST-LINK FW : V2J38S7
Board : --
Voltage : 3.17V
Error: No STM32 target found!
上传失败: 上传错误:exit status 1
ST-LINK SN : 16004A002933353739303541
ST-LINK FW : V2J38S7
Board : --
Voltage : 3.17V
Error: ST-LINK error (DEV_TARGET_CMD_ERR)
上传失败: 上传错误:exit status 1
检查电源gnd vcc 所有的vcc gnd 皆连上stlink 3.3 gnd
官方推荐:不推荐省略晶振,电容,rst复位电路;内部时钟不稳定,
OSC_IN 使用内部时钟时,建议接gnd
使用内部时钟 串口通信 对时钟要求高的,不建议内部时钟;