OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 6962|回复: 4

stm32f107 ISP无法下载程序

[复制链接]

16

主题

49

帖子

0

精华

初级会员

Rank: 2

积分
135
金钱
135
注册时间
2014-10-11
在线时间
0 小时
发表于 2014-11-21 16:32:52 | 显示全部楼层 |阅读模式
5金钱
最近开始用stm32f107,发现始终无法用ISP下载,BOOT0为1,BOOT1为0,都没问题,USART3串口通信也是正常的。

网上解释如下:

查到了,是stm32的bug
请参考errata sheet

==============
2.13 Bootloader unavailability on STM32F105xx and
STM32F107xx devices with a date code below 937
Description
During the boot loader activation phase, if the USART1_RX (PA10), USART2_RX (PD6, 
remapped pin), CAN2_Rx (PB5, remapped pin), OTG_FS_DM (PA11) and/or OTG_FS_DP 
(PA12) pin(s) are connected to low level or left floating, the boot loader cannot be used. It is 
not possible to connect to the bootloader through either of CAN2 (remapped), DFU (OTG 
FS in Device mode), USART1 or USART2 (remapped).
In 64-pin packages, the USART2_RX remapped pin PD6 is not available and is internally 
grounded. Therefore, the bootloader cannot be used at all.
Workaround
● For 64-pin packages: none. The bootloader cannot be used.
● For 100-pin packages: depending on the used peripheral, the pins for the unused 
peripherals have to be kept at a high level during the boot loader activation phase as 
described below:
– If USART1 is used to connect to the bootloader: PD6 and PB5 have to be kept at a 
high level
– If USART2 is used to connect to the bootloader: PA10, PB5, PA11 and PA12 have 
to be kept at a high level
– If CAN2 is used to connect to the bootloader: PA10, PD6, PA11 and PA12 have to 
be kept at a high level
– If DFU is used to connect to the bootloader: PA10, PB5 and PD6 have to be kept 
at a high level
Note: This limitation concerns only STM32F105xx and STM32F107xx devices with a date code 
below 937.
STM32F105xx and STM32F107xx devices with a date code of 937 and above are not 
impacted.
See Appendix A: Revision and date codes on device marking for where to find the date code 
on the device marking.

我想问下有没有谁解决过这问题?使ISP下载功能实现?求指教
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165540
金钱
165540
注册时间
2010-12-1
在线时间
2117 小时
发表于 2014-11-21 23:18:08 | 显示全部楼层
串口1下载吧?你用串口3?
我是开源电子网www.openedv.com站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺http://openedv.taobao.com
正点原子官方微信公众平台,点击这里关注“正点原子”
回复

使用道具 举报

16

主题

49

帖子

0

精华

初级会员

Rank: 2

积分
135
金钱
135
注册时间
2014-10-11
在线时间
0 小时
 楼主| 发表于 2014-11-22 23:21:21 | 显示全部楼层
回复【2楼】正点原子:
---------------------------------
一定要用串口1么,我当初画板子时考虑到串口1有个引脚给usb占了,就用了串口3,这有影响么?
回复

使用道具 举报

16

主题

49

帖子

0

精华

初级会员

Rank: 2

积分
135
金钱
135
注册时间
2014-10-11
在线时间
0 小时
 楼主| 发表于 2014-11-22 23:38:15 | 显示全部楼层
回复【2楼】正点原子:
---------------------------------
好吧,仔细研究了下st的参考文档,对于互联型产品而言,可以通过以下某个接口启用自举程序: USART1 、 USART2(重映像的)、 CAN2(重映像的)或USB OTG全速接口的设备模式(通过设备固件更新DFU协议)。
当时没注意呵呵,好歹引脚引出来了,还有的救
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165540
金钱
165540
注册时间
2010-12-1
在线时间
2117 小时
发表于 2014-11-23 00:15:37 | 显示全部楼层
回复【3楼】枫飞:
---------------------------------
没试过串口3,不知道好使不。
我是开源电子网www.openedv.com站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺http://openedv.taobao.com
正点原子官方微信公众平台,点击这里关注“正点原子”
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-6-28 21:57

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表