发布一款STM32的ISP升级工具(命令行方式)

简介:

该程序按照STM32的串口下载通信协议,实现了STM32系列的程序下载功能。实际上就是FlyMCU等单片机编程器的命令行版本,实现了程序下载、页擦除、获取芯片信息(PID、UID)等功能。已测试的芯片有F1系列、F4系列。

特点

  1. 比起IAP编程,所有工程都无需修改启动地址、中断向量表偏移,直接使用默认配置即可。
  2. 无需自己编写IAP,极大的节省时间,同时比起自制的Bootloader,ST官方ISP更稳定、支持更长久,适用性更广(支持大量类型芯片,只是目前只测试了F1系列)。
  3. 命令行方式(windows环境)运行适合集成在上位机程序里,无须研究传输协议,几行语句进行调用即可实现一键下载。
  4. 支持程序下载、页擦除、读芯片信息功能。

使用

  1. 在系统正常运行时,使用程序跳转命令使MCU执行芯片内置的ISP区域代码。
  2. 上位机释放串口,调用ISP升级程序,并传入适当参数,实现程序自动下载、及下载完成的自动复位。
  3. 通过读取命令行标准输出可以使上位机获取ISP升级程序的运行状态

注意

  1. 任何下载方式都有可能出现失败,因此仍然建议加上串口自动下载电路、或对BOOT0脚引出物理按键来保证下载失败时能强行执行ISP区程序。
  2. 如果使用了串口下载电路,需要自己先打开串口流控功能,控制DTR、RTS使stm32复位执行ISP,再关闭串口。

软件获取链接:https://item.taobao.com/item.htm?id=583402632778

Portable command line ISP for NXP LPC2000 family and Analog Devices ADUC 70xx Version 1.79 compiled for Windows: Aug 4 2010, 10:55:56 Copyright (c) by Martin Maurer, 2003-2009, Email: Martin.Maurer@clibb.de Portions Copyright (c) by Aeolus Development 2004, www.aeolusdevelopment.com Syntax: lpc21isp [Options] file[ file[ ...]] comport baudrate Oscillator_in_kHz Example: lpc21isp test.hex com1 115200 14746 Options: -bin for uploading binary file -hex for uploading file in intel hex format (default) -term for starting terminal after upload -termonly for starting terminal without an upload -localecho for local echo in terminal -detectonly detect only used LPC chiptype (PHILIPSARM only) -debug0 for no debug -debug3 for progress info only -debug5 for full debug -donotstart do not start MCU after download -try try n times to synchronise -wipe Erase entire device before upload -control for controlling RS232 lines for easier booting (Reset = DTR, EnableBootLoader = RTS) -controlswap swap RS232 control lines (Reset = RTS, EnableBootLoader = DTR) -controlinv Invert state of RTS & DTR (0=true/assert/set, 1=false/deassert/clear). -verify Verify the data in Flash after every writes to sector. To detect errors in writing to Flash ROM -logfile for enabling logging of terminal output to lpc21isp.log -halfduplex use halfduplex serial communication (i.e. with K-Line) -ADARM for downloading to an Analog Devices ARM microcontroller ADUC70xx -PHILIPSARM for downloading to a microcontroller from NXP(Philips) LPC13xx/LPC17xx/LPC2000 family (default) 请按任意键继续. . .
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值