小学生
最后登录1970-1-1
在线时间 小时
注册时间2020-2-22
|
最近在尝试用STM32F103C板USART模式进入Flash bootloader,刷新的程序,遇到了芯片没法初始化的问题,
试了3个不同的工具包括STM32官方的STM32 flash loader,请问各位大佬有遇到过这样的问题么?
怀疑是不是内部bootloader的程序对PL2303 转换卡不太兼容啊?谢谢!
具体如下:
root@bogon stm32loader]# python3 main.py -p /dev/ttyUSB0 -V
Open port /dev/ttyUSB0, baud 115200
Activating bootloader (select UART)
Bootloader activation timeout -- retrying
Can't init into bootloader. Ensure that BOOT0 is enabled and reset the device.
我使用的RS232 TTL converter 为: usb 2-2.2: pl2303 converter now attached to ttyUSB0),
硬件连接为 : "RXD -PA9, TXD-PA10, GND-G", 上电用 USB 5V, 板载regulator转 3.3V.
我的测试环境:Centos 6.5, the status for PL2303 is :
Device: /dev/ttyUSB0
Signal Pin Pin Direction Status Full
Name (25) (9) (computer) Name
----- --- --- --------- ------ -----
FG 1 - - - Frame Ground
TxD 2 3 out - Transmit Data
RxD 3 2 in - Receive Data
RTS 4 7 out 1 Request To Send
CTS 5 8 in 0 Clear To Send
DSR 6 6 in 0 Data Set Ready
GND 7 5 - - Signal Ground
DCD 8 1 in 0 Data Carrier Detect
DTR 20 4 out 1 Data Terminal Ready
RI 22 9 in 0 Ring Indicator
在windows下也尝试了用 FlyMCU, 上电后返回全是 0x00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
芯片超时无应答,无法连接
使用STM32 官方的工具也是一样
C:\Program Files (x86)\Arduino\hardware\Arduino_STM32-master\Arduino_STM32-master\tools\win>stm32flash.exe -k COM7
stm32flash 0.4
http://stm32flash.googlecode.com/
Interface serial_w32: 57600 8E1
Failed to init device.
|
|