最小电路 stm32f103x VDDA VDD VSSA VSS
STM32F103VET
内部已经集成了振荡电路,可以省略;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
使用内部时钟 串口通信 对时钟要求高的,不建议内部时钟;
实际应用中,该电容电容,加上,否则不稳定;电路电容 gnd vcc ; 抗电源波动,外部干扰
BOOT1 BOOT0 区别
为测试方便,直接写入sram进行测试,修改,调试;普通不需要,除了必要