select326 发表于 2017-6-8 21:16:19

淘宝上买的STM32F103C8T6核心板,无法正常下载

在淘宝买 了个核心板,https://item.taobao.com/item.htm?spm=a1z09.2.0.0.AWv8gl&id=530808301460&_u=8bavat8eea下载时需要按着RESET不放,然后点下载,松开后即可成功下载。否则,无法下载成功。
Info : clock speed 4000 kHzInfo : STLINK v2 JTAG v27 API v2 SWIM v6 VID 0x0483 PID 0x3748Info : vid/pid are not identical: 0x0483/0x374B 0x0483/0x3748Info : using stlink api v2Info : Target voltage: 3.312064Info : STM32F103C8Tx.cpu: hardware has 6 breakpoints, 4 watchpointsError: timed out while waiting for target haltedTARGET: STM32F103C8Tx.cpu - Not haltedin procedure 'program' in procedure 'reset' called at file "embedded:startup.tcl", line 478in procedure 'ocd_bouncer'
** Unable to reset target **shutdown command invoked

如果按着RESET,点下载,然后再松开,则会有下面的提示过程:Info : clock speed 4000 kHzInfo : STLINK v2 JTAG v27 API v2 SWIM v6 VID 0x0483 PID 0x3748Info : vid/pid are not identical: 0x0483/0x374B 0x0483/0x3748Info : using stlink api v2Info : Target voltage: 3.312064Info : STM32F103C8Tx.cpu: hardware has 6 breakpoints, 4 watchpointsSTM32F103C8Tx.cpu: target state: haltedtarget halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x08001058 msp: 0x20005000** Programming Started **auto erase enabledInfo : device id = 0x20036410Info : flash size = 64kbytesSTM32F103C8Tx.cpu: target state: haltedtarget halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x2000003a msp: 0x20005000wrote 5120 bytes from file Debug/c8t6spi.elf in 0.329144s (15.191 KiB/s)** Programming Finished **** Verify Started **STM32F103C8Tx.cpu: target state: haltedtarget halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x2000002e msp: 0x20005000verified 4432 bytes in 0.085779s (50.457 KiB/s)** Verified OK **
shutdown command invoked


shaoziyang 发表于 2017-6-9 08:56:16

不需要吧,要么是BOOT0/1的选择不对,要么就是程序中占用了SWD接口,还有一种可能是进入了休眠模式。

yangjiaxu 发表于 2017-6-9 10:13:32

我觉得是 BOOT0/1的选择不对

疯狂的骑士 发表于 2017-6-10 08:37:08

我原来也遇到这种问题,之后通过ISP的方式烧录了一个程序后就能同过Jlink直接下载程序了

zhao.zhao 发表于 2017-6-10 11:34:11

原来的程序可能进入了低功耗状态,或则下载的端口被程序占用了

select326 发表于 2017-6-13 21:23:11

疯狂的骑士 发表于 2017-6-10 08:37
我原来也遇到这种问题,之后通过ISP的方式烧录了一个程序后就能同过Jlink直接下载程序了 ...

如何通过ISP的方式下载呢???

select326 发表于 2017-6-13 21:24:02

yangjiaxu 发表于 2017-6-9 10:13
我觉得是 BOOT0/1的选择不对

这个板子是可以自己配置BOOT0/1的,我不太会配置这个跳线。请指点下

ts2000 发表于 2017-6-14 08:11:39

Info : clock speed 4000 kHz

时钟速度太高了。ST的只支持到1.5M左右。降低试试

无薪税绵 发表于 2017-6-14 08:29:11

感觉是进入低功耗状态了。

换个不是低功耗的程序烧录,应该就正常了。

不好想 发表于 2017-6-14 08:34:15

BOOT0/1应该是设置下载程序的目标区域,我是都接地,然后用ULINk或者ST-LINK。。。以前用别的芯片遇到过类似情况,具体原因不清楚,解决方法是通过擦除芯片所有内容,然后使用mcuisp通过hex程序文件下载
页: [1] 2 3 4
查看完整版本: 淘宝上买的STM32F103C8T6核心板,无法正常下载