今天突然要用到STM32L0系列的ISP下载 发现网上资料好少。
经过大半天的折腾。。。
终于用L053的nucleo下成功了
下面分享一下下载过程:
首先 需要下载最新的 Flash Loader Demo V2.7
Flash Loader Demo v2.7.part1.rar
Flash Loader Demo v2.7.part2.rar
新版本介绍
* V2.7.0 - 15-September-2014
===========================
New Features
************
+ Adding support of New STM32F0xx/STM32F3xx/STM32F4xx/STM32L1xx/STM32L0xx/ devices
+ Project Source files upgraded to Visual Studio 2013
Known Limitations
*****************
+ Options Bytes management of STM8, STM32L1/L0 and STM32F0/2/3/4 devices is supported only in Command line version
for batch programming,
+ Automatic selection of some STM8 devices may not work properly. If required, use
command line version with batch files customization,
+ on Some STM32 MCus Write protection of last pages which is controlled by the last protection bit7
in WPR3 options byte is working properly but the Graphical view of check boxes may not updated
accordingly on some devices with large size greater than 128Kbytes.
To enable/disable the write protection of last pages, you can check/uncheck only the first
page of this group of pages on the graphical view.
+ STM32L "Erase all" feature is not supported. See AN2606 for more details.
通过标红部分 我们得知 v2.7的新版中添加了对STM32L0系列支持
还有 。。。不支持全片擦除。。
准备工作:
1,下载安装完Flash Loader Demo V2.7
2,你得有一个usb串口工具
3,在BOOT0 (pin60)焊接跳线或者接杜邦线
要使用isp下载 得设置stm32的启动方式 是从system memory
需要把boot1置低 boot0置高 然而搜索了L053的手册 并没有发现有boot1 但是找到了boot0
如下图 nucleo板子上用10K的R33把boot0接地了 板子默认从flash启动
查阅了一下boot0的电压范围 0`5.5V
于是 用万用表测出r33到芯片引脚的那端 焊一根铜漆包线 另一头插到5V上。