amoBBS 阿莫电子论坛

 找回密码
 注册
搜索
bottom↓
查看: 2587|回复: 4

JLINK 连接S32K144返回InitTarget() error code -1错误,是JLINK不支持吗

[复制链接]
发表于 2018-12-19 15:25:19 | 显示全部楼层 |阅读模式
本帖最后由 qingyin2009 于 2018-12-20 09:53 编辑

ERROR: InitTarget(): PCode returned with error code -1

JLINK应该是好用的,开发板使用原来的SWD也是好用的。网上说是版本不对

这个问题解决了。JLINK的电源接了开发板的3.3V导致的。

又出来个新问题,仿真时候无法烧写程序:



JFLASH也烧写不进去

ERROR: Could not detect CPU clock speed. Download of test code into RAM failed.
Failed to restore original RAM content after CPU clock frequency detection!

Failed to enable SWO. Could not measure target CPU frequency.
WARNING: Failed to read memory @ address 0xFFFFFFFE
Downloading 1024 bytes @ address 0x00000000 - Verify failed
Downloading 16 bytes @ address 0x00000400 - Verify failed
Downloading 256 bytes @ address 0x00000410 - Verify failed
Downloading 4096 bytes @ address 0x00000510 - Verify failed
Downloading 4096 bytes @ address 0x00001510 - Verify failed
Downloading 4096 bytes @ address 0x00002510 - Verify failed
Downloading 4096 bytes @ address 0x00003510 - Verify failed
Downloading 4096 bytes @ address 0x00004510 - Verify failed
Downloading 4096 bytes @ address 0x00005510 - Verify failed
Downloading 4096 bytes @ address 0x00006510 - Verify failed
Downloading 4096 bytes @ address 0x00007510 - Verify failed
Downloading 4096 bytes @ address 0x00008510 - Verify failed
Downloading 4096 bytes @ address 0x00009510 - Verify failed
Downloading 4096 bytes @ address 0x0000A510 - Verify failed
Downloading 4096 bytes @ address 0x0000B510 - Verify failed
Downloading 4096 bytes @ address 0x0000C510 - Verify failed
Downloading 4096 bytes @ address 0x0000D510 - Verify failed
Downloading 4096 bytes @ address 0x0000E510 - Verify failed
Downloading 4096 bytes @ address 0x0000F510 - Verify failed
Downloading 4096 bytes @ address 0x00010510 - Verify failed
Downloading 4096 bytes @ address 0x00011510 - Verify failed
Downloading 4096 bytes @ address 0x00012510 - Verify failed
Downloading 4096 bytes @ address 0x00013510 - Verify failed
Downloading 4096 bytes @ address 0x00014510 - Verify failed
Downloading 4096 bytes @ address 0x00015510 - Verify failed
Downloading 4096 bytes @ address 0x00016510 - Verify failed
Downloading 4096 bytes @ address 0x00017510 - Verify failed
Downloading 4096 bytes @ address 0x00018510 - Verify failed
Downloading 4096 bytes @ address 0x00019510 - Verify failed
Downloading 4096 bytes @ address 0x0001A510 - Verify failed
Downloading 88 bytes @ address 0x0001B510 - Verify failed
Downloading 8 bytes @ address 0x0001B568 - Verify failed
Downloading 268 bytes @ address 0x0001B570 - Verify failed
Writing register (PC = 0x00000510)
Read 4 bytes @ address 0x00000510 (Data = 0xFFFFFFFF)
Read 2 bytes @ address 0x00000B28 (Data = 0xFFFF)
Read 2 bytes @ address 0x00000B28 (Data = 0xFFFF)
Read 2 bytes @ address 0x0001625A (Data = 0xFFFF)
Read 2 bytes @ address 0x000162B0 (Data = 0xFFFF)
Read 2 bytes @ address 0x00010918 (Data = 0xFFFF)
Read 2 bytes @ address 0x00010918 (Data = 0xFFFF)
Resetting target
Halting target CPU...
...Target halted (PC = 0xFFFFFFFE)
Read 2 bytes @ address 0x00000B28 (Data = 0xFFFF)
Read 2 bytes @ address 0x00000B28 (Data = 0xFFFF)
Read 2 bytes @ address 0x00000B28 (Data = 0xFFFF)
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= FFFFFFFC, MSP= FFFFFFFC, PSP= 00000000
R14(LR) = FFFFFFFF, R15(PC) = FFFFFFFE
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
WARNING: Failed to read memory @ address 0xFFFFFFFE
Setting breakpoint @ address 0x00000B28, Size = 2, BPHandle = 0x0000
WARNING: No more breakpoint resources left
Setting breakpoint @ address 0x000162B0, Size = 2, BPHandle = 0x0000
WARNING: No more breakpoint resources left


上面这个问题也解决了:选择device name 的时候昨天从哪里看到,是选CORTEX-M4,今天新建工程发现,默认选择的是S32K144,改成S32K144就可以了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2018-12-19 18:36:48 来自手机 | 显示全部楼层
jlink是9.4以上的嘛,不要接reset脚
发表于 2018-12-19 18:44:41 | 显示全部楼层
S32DS下盗版jlinkV9 3线、4线swd大部分时间都可以用,jtag模式也可以,就是有时候会莫名其妙锁住了,需要jflash擦除下。应该是你的配置问题
 楼主| 发表于 2018-12-19 19:59:32 | 显示全部楼层
jackjiao 发表于 2018-12-19 18:44
S32DS下盗版jlinkV9 3线、4线swd大部分时间都可以用,jtag模式也可以,就是有时候会莫名其妙锁住了,需要jf ...

好像是我接了非单片机系统的3.3V导致的。
发表于 2019-12-19 15:57:58 | 显示全部楼层
请问这个S32K144UFT0VLL 用的哪个IDE开发软件的
友情提示:标题不合格、重复发帖,将会被封锁ID。详情请参考:论坛通告:封锁ID、获得注册邀请码、恢复被封ID、投诉必读
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|阿莫电子论坛(原ourAVR/ourDEV) ( 公安备案:44190002001997(交互式论坛) 工信部备案:粤ICP备09047143号 )

GMT+8, 2020-2-27 22:20

阿莫电子论坛, 原"中国电子开发网"

© 2004-2018 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

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