OpenEdv-开源电子网

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

jlink下载总是失败,设置也没问题啊!

[复制链接]

5

主题

34

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
211
金钱
211
注册时间
2021-5-26
在线时间
39 小时
发表于 2021-7-21 15:41:04 | 显示全部楼层 |阅读模式
60金钱
Device: STM32F103RC
VTarget = 3.306V
State of Pins:
TCK: 0, TDI: 0, TDO: 0, TMS: 1, TRES: 1, TRST: 0
Hardware-Breakpoints: 6
Software-Breakpoints: 8192
Watchpoints:          4
JTAG speed: 100 kHz

**JLink Warning: T-bit of XPSR is 0 but should be 1. Changed to 1.
Erase Done.
***JLink Error: Could not start CPU core. (ErrorCode: -1)
***JLink Error: Can not read register 15 (R15) while CPU is running
**JLink Warning: CPU could not be halted
***JLink Error: Could not read memory location 0x20000000 when trying to clear soft RAM BP
Could not start CPU core. (ErrorCode: -1)
***JLink Error: Can not read register 20 (CFBP) while CPU is running
**JLink Warning: CPU could not be halted
***JLink Error: Could not start CPU core. (ErrorCode: -1)
***JLink Error: CPU is not halted
***JLink Error: Can not read register 15 (R15) while CPU is running
**JLink Warning: CPU could not be halted
***JLink Error: Could not read memory location 0x20000000 when trying to clear soft RAM BP
Could not start CPU core. (ErrorCode: -1)
Programming Failed!
Error: Flash Download failed  -  "Cortex-M3"
***JLink Error: Could not read memory location 0x20000000 when trying to clear soft RAM BP







jink SWD下载 设置了芯片 debug设置jink下载 setting里设置sw 100k    flashdownload里设置stm32f10x 512k
问题出在哪呢?

最佳答案

查看完整内容[请看2#楼]

瞎点的,能下载进去了,在jlink setting 里sw的速度点了下auto clk 它自动设置的50khz 可以下载了 串口有显示 不过怪怪的
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

5

主题

34

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
211
金钱
211
注册时间
2021-5-26
在线时间
39 小时
 楼主| 发表于 2021-7-21 15:41:05 | 显示全部楼层
瞎点的,能下载进去了,在jlink setting 里sw的速度点了下auto clk  它自动设置的50khz
可以下载了   串口有显示 不过怪怪的
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165540
金钱
165540
注册时间
2010-12-1
在线时间
2117 小时
发表于 2021-7-22 02:03:36 | 显示全部楼层
帮顶
回复

使用道具 举报

4

主题

83

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
205
金钱
205
注册时间
2019-11-12
在线时间
77 小时
发表于 2021-7-22 09:25:22 | 显示全部楼层
查看下是不是flash被锁了
回复

使用道具 举报

6

主题

890

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1481
金钱
1481
注册时间
2020-8-19
在线时间
336 小时
发表于 2021-7-22 09:40:15 | 显示全部楼层
识别出芯片了吗
回复

使用道具 举报

5

主题

34

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
211
金钱
211
注册时间
2021-5-26
在线时间
39 小时
 楼主| 发表于 2021-7-22 11:56:40 | 显示全部楼层
nstopb 发表于 2021-7-22 09:25
查看下是不是flash被锁了

这个怎么看呀
回复

使用道具 举报

5

主题

34

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
211
金钱
211
注册时间
2021-5-26
在线时间
39 小时
 楼主| 发表于 2021-7-22 11:59:51 | 显示全部楼层
bin133 发表于 2021-7-22 09:40
识别出芯片了吗

在pack installer里看 还是哪里
回复

使用道具 举报

4

主题

83

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
205
金钱
205
注册时间
2019-11-12
在线时间
77 小时
发表于 2021-7-22 16:08:20 | 显示全部楼层
本帖最后由 nstopb 于 2021-7-22 16:11 编辑

用jlink查看option byte里面相关地址的值是否上锁, 根据型号查阅手册。另外你设定的这个烧录速度也太低了吧,芯片支不支持这么低的波特率,我一般都用1Mhz。从你的烧录信息来看, xspr寄存器值错误,这个寄存器和芯片的保持状态有关,肯定某个设定搞错了。要么是启动方式,要么是上锁之类的问题,自己摸索下吧。
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-6-25 21:52

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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