Skip to content

Commit

Permalink
Updates backup files
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 17, 2024
1 parent 442f0cf commit dbeb2b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backup/stm32程序烧录方式.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ st-flash write /path/project/build.bin 0x08000000

# 使用openocd

注意:

```bash
openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -c "program /path/project/build.bin verify reset exit 0x08000000"
```
Expand All @@ -24,7 +22,7 @@ openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -c "program /path/proj
- 根据自己的stlink 实际版本更改`interface/stlink-v2.cfg`为适配的 stlink 配置文件
- 根据自己的stm32单片机实际型号更改`target/stm32f1x.cfg`为适配的配置文件

# 使用STM32_Programmer_CLI
# 使用STM32_Programmer_CLI(串口烧录)

使用该方法之前需要安装`STM32_Programmer_CLI`,该程序可以到 ST(意法半导体)官网自行下载,需要将其添加到环境变量。之后将串口线正确接到板子上的引脚,通过以下命令将程序文件烧录到单片机中。

Expand Down

0 comments on commit dbeb2b1

Please sign in to comment.