STM32下载方法

杂谈STM32下载

最近做STM32L系列的项目,发现ISP模式下能下载STM32F系列的软件不能下载STM32L系列。下面先讲讲几种下载方法:


现在手底下有这几个下载器。

1、 J-LINK模式

第一个就不介绍了J-LINK下载模式,这个可以调试,直接在keil下就可以下载调试了很方便,但是有几个问题就是有的项目要求板子要做小,对于一个20引脚的他来说确实一个不小的挑战。其次就是J-LINK相对来说比较贵。

2、  ISP模式

ISP模式和我们原来学校51单片机一样通过串口下载,我们选择串口1。51单片机我们采用的软件是STC-ISP。STM32也有想对应的软件,有官网的,有别的,网上可以搜到。有必要提到的是网上大多数STM32的ISP的下载软件基本都是STM32F系列的,我下载STM32L系列的时候采用的官网上的。在网上搜索STM32L系列ISP软件也可以搜索到。浅谈一下ISP下载方法:第一下载时将BOOT0置1,BOOT1置0。下载完成后,再将BOOT0置0,重新上电或者复位,这样就会从FLASH中启动。

3、 SWD模式

下载STM32的时候我们可以选择SWD模式, SWDIO、SWCLK与PA13、PA14一一对应。如果这两个引脚没有被占用可以选择SWD下载模式。第一不用选项BOOT0高低电平直接置0就可以。第二其下载器便宜十几块钱。网上也有另一款ST-link下载器。

 

 

写的不好多多指点………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………

/******************** (C) COPYRIGHT 2009 STMicroelectronics ******************** * File Name : version.txt * Author : MCD Application Team * Version : V2.0.0 * Date : 07/03/2009 * Description : Version file for Flash Loader Demonstrator ******************************************************************************** * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. *******************************************************************************/ * V2.0.0 - 03/07/2009 ===================== New Features ************ + Adding STM32 connectivity line and STM8 devices + Adding CAN communication for connectivity line devices over COMBox bridge + Adding Access to DfuSe Demo (the DfuSe Demo should be installed on your machine) * V1.3.0 - 03/05/2009 ===================== Enhancements ************ + Allow device selection in the flash loader GUI for non programmed flash size devices + Add Visual studio 2005 workspace template under INSTALLDIR\src directory * V1.2.0 - 10/23/2008 ===================== New Features ************ + Support of Low density and STM32 USB Access line devices Enhancements ************ + Fix a minor issue of COM ports with greater than 9 numbers + Fix a minor issue of the GUI pages transition after enabling or disabling protection + RAM size information in the Device information page is removed * V1.1.1 - 06/16/2008 ===================== + Remove the Software License Agreement file + Update the source files's header to remove reference to the License * V1.1.0 - 06/02/2008 =================== New Features ************ + Add SOFTWARE License Agreement file + Save the last used configuration for the serial communication + Save the last used file names for upload and download operations + Add Enable/Diable the Read/Write protection commands + Add Option bytes Window for flexible usage + Add Option bytes upgrade thru files option to the download operation + Add of a Command line version of the flash loader demonstrator + Add of Source Files of the command line version + Add headers and and library files of common run-time DLLs + Support all STM32 family products,STR75x products, and all STMicroelectronics products implementing the bootloader protocol Enhancements ************ + Fix a minor issue of format with the Upload operation in a binary file + Fix a minor issue with erase command status update + Fix an issue of Download, Upload and erase operations with an image size (>32k) * V1.0.0 - 10/25/2007 ==================== Created. ******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE******
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值