打印
[STM32F1]

最近做一个stm32的板子,但是老是下载不进程序

[复制链接]
6268|11
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
西江月海带|  楼主 | 2015-7-18 16:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
最近做了一个stm32的小项目,但是不知道为什么老是下载不进程序,下载程序的时候老是提示“Could not stop  Cortex-M device! Please check the JTAG cable”,点完确定后,出现另一个提示”Error: Flash Download failed - Target DLL has been cancelled“.而且JLINK还一直闪红灯,不知道为什么。
JLink info:
------------
DLL: V4.62 , compiled Jan 25 2013 15:19:47
Firmware: J-Link ARM V8 compiled Jul 17 2014 12:31:18
Hardware: V8.00
S/N : 304427288
Feature(s) : RDI,FlashDL,FlashBP,JFlash,GDBFULL

* JLink Info: TotalIRLen = 9, IRPrint = 0x0011
* JLink Info: TotalIRLen = 9, IRPrint = 0x0011
* JLink Info: Found Cortex-M3 r1p1, Little endian.
* JLink Info: TPIU fitted.
* JLink Info: ETM fitted.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
ROMTableAddr = 0xE00FF003
* JLink Info: Found Cortex-M3 r1p1, Little endian.
* JLink Info: TPIU fitted.
* JLink Info: ETM fitted.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
**JLink Warning: S_RESET_ST not cleared
**JLink Warning: CPU did not halt after reset.
* JLink Info: Found Cortex-M3 r1p1, Little endian.
* JLink Info: TPIU fitted.
* JLink Info: ETM fitted.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
**JLink Warning: CPU could not be halted
* JLink Info: Core did not halt after reset, trying to disable WDT.
**JLink Warning: CPU did not halt after reset.
* JLink Info: Found Cortex-M3 r1p1, Little endian.
* JLink Info: TPIU fitted.
* JLink Info: ETM fitted.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
**JLink Warning: CPU could not be halted
**JLink Warning: CPU did not halt after reset.
* JLink Info: Found Cortex-M3 r1p1, Little endian.
* JLink Info: TPIU fitted.
* JLink Info: ETM fitted.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
**JLink Warning: CPU could not be halted
**JLink Warning: S_RESET_ST not cleared
**JLink Warning: CPU could not be halted

以上就是编译后的信息。原理图已用附件形式上传了!还望哪位大神能够帮忙解惑,都忙活三天了,百度上的方法也不好使!

stm32.pdf

65.03 KB

沙发
FireRiver9| | 2015-7-18 17:35 | 只看该作者
这问题没遇到过,是不是编译软件的某些地方需要设置,比如芯片选型

使用特权

评论回复
板凳
碧云天书| | 2015-7-18 18:25 | 只看该作者
检查NRST复位线连好了没有

使用特权

评论回复
地板
fanxsd| | 2015-7-18 22:20 | 只看该作者
最后的 DEGUG 里边要设置,添加flash 容量的。

使用特权

评论回复
5
西江月海带|  楼主 | 2015-7-19 23:30 | 只看该作者
fanxsd 发表于 2015-7-18 22:20
最后的 DEGUG 里边要设置,添加flash 容量的。

这个在下载之前就添加了,但是还是不能用,不知道为什么

使用特权

评论回复
6
ticomi| | 2015-7-20 07:39 | 只看该作者
是不是数字的大小端没有设置好,看提示内容一直都是这个!

使用特权

评论回复
7
amanda_s| | 2015-7-20 15:31 | 只看该作者
检查一下复位线的连接。

使用特权

评论回复
8
luolang1991| | 2015-7-20 16:02 | 只看该作者
你这个并没有参照有关文件来画的吧 JTAG这个地方,9脚有没有问题呢。启动方式有没有问题。

使用特权

评论回复
9
石陈大海| | 2018-11-15 13:27 | 只看该作者
楼主解决这个问题了吗?我也遇到了

使用特权

评论回复
10
wfbl| | 2019-3-14 14:53 | 只看该作者
楼主   请问你这个问题解决了吗?我现在也遇到跟你相同的问题,能否指导下:

DLL: V4.91b, compiled Sep 15 2014 09:17:56
Firmware: J-Link V9 compiled Jun  2 2222 22:22:22
Hardware: V9.40
S/N : 59401308
Feature(s) : GDB, RDI, FlashBP, FlashDL, JFlash, RDDI

* JLink Info: Found SWD-DP with ID 0x1BA01477
* JLink Info: Found SWD-DP with ID 0x1BA01477
* JLink Info: Found Cortex-M3 r1p1, Little endian.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
* JLink Info: TPIU fitted.
* JLink Info: ETM fitted.
ROMTableAddr = 0xE00FF003
**JLink Warning: S_RESET_ST not cleared
**JLink Warning: CPU did not halt after reset.
**JLink Warning: CPU could not be halted
* JLink Info: Core did not halt after reset, trying to disable WDT.
**JLink Warning: CPU did not halt after reset.
**JLink Warning: CPU could not be halted
**JLink Warning: S_RESET_ST not cleared
* JLink Info: Found SWD-DP with ID 0x1BA01477
* JLink Info: Found Cortex-M3 r1p1, Little endian.
**JLink Warning: S_RESET_ST not cleared
**JLink Warning: CPU did not halt after reset.
**JLink Warning: CPU could not be halted
* JLink Info: Core did not halt after reset, trying to disable WDT.
**JLink Warning: CPU did not halt after reset.
**JLink Warning: CPU could not be halted
**JLink Warning: S_RESET_ST not cleared
**JLink Warning: CPU could not be halted
Error: Flash Download failed  -  Target DLL has been cancelled

使用特权

评论回复
11
gaoke231| | 2019-3-14 23:09 | 只看该作者
主要是硬件电路,建议先参考下那些比较成熟的电路

使用特权

评论回复
12
gaoke231| | 2019-3-14 23:10 | 只看该作者
这个你不是你下载器的问题,也不是芯片本身问题

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

5

帖子

1

粉丝