linux中更新stm32固件

  1. 在windows系统中更新stm32的.hex固件用的是flash loader
    demostrator,如果使用linux系统则有另外一个名字叫stm32flash。

  2. 安装方法:sudo apt-get install stm32flash

  3. 准备工作:连接串口至stm32的串口1,确认linux下串口号,例如ttyUSB0。stm32的boot0调节为下载模式,上电。

  4. 更新固件:在xx.hex所在文件夹打开终端,输入:stm32flash -w xxx.hex -V -g 0x0 /dev/ttyS0
    注: xxx.hex为所需更新的固件名字

  5. 输入stm32flash /dev/ttyUSB0 可以查看信息,其他功能可以输入:stm32flash 查看

发布了1 篇原创文章 · 获赞 2 · 访问量 59

猜你喜欢

转载自blog.csdn.net/qq_31842231/article/details/105790892