Linux下的stm32flash连接问题
2023-03-03 15:54:51

0.引子

stm32flash是一个开源的烧录软件。描述为:

Open source flash program for the STM32 ARM processors using the ST serial bootloader over UART or I2C

1.问题

当我尝试通过stm32flash连接单片机时,出现了如下的错误:

1
failed to init device

2.解决方案

查阅资料后,发现有人提到了这样一句:

That often happens when you don’t have the BOOT pin set correctly. What upload method are you using?

我去检查了自己的BOOT引脚上跳线帽的连接方式,是这样的:

B1 - GND

B0 - GND

查看官方文献,发现:

stm32flash描述里不是说过,它使用bootloader吗?于是将跳线帽连接改为:

B1 - GND

B0 - HIGH

成功连接!

输出如下:

参考资料

stm32f103c8t6 cannot upload