S32K344 被锁

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K344 被锁

跳至解决方案
8,044 次查看
lucienzhu
Contributor II

Hi:

  最近在S32K344EVB上做些调试,在调试过WDT后放置了一段时间(当时都正常),现在发现我的jlink无法连接芯片了,不知道是不是WDT问题,尝试了各种办法都不行,由于疫情在家,手上现在只有jlink,有没有什么办法恢复连接?

目前现状如下:

1、拉低RESET后使用J-Link Commander连接显示如下

lucienzhu_0-1653644456944.png

2、RESET拉低,unlock kinetis显示如下

lucienzhu_2-1653644693888.png

3、正常连接后使用Jflash连接显示如下

lucienzhu_1-1653644523191.png

4、Read AP显示如下(在K1系列芯片解锁文档中有操作DP/AP寄存器,但在K3芯片上不知道需要这么操作,所以只做了读操作)

lucienzhu_3-1653644834765.png

下面是我的开发板

lucienzhu_4-1653645182125.jpeg

有人可以帮忙解决吗?

 

 

标记 (2)
0 项奖励
回复
1 解答
7,927 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Well, I tested mentioned example on my board and I can see no problem on my side. The device is not resetting like this. Anyway, the debugger should be able to establish the connection in this case. As you suggested, it may be an issue of J-Link. Maybe you can try to ask Segger for help or maybe you can try to get another debugger.

Regards

Lukas

在原帖中查看解决方案

0 项奖励
回复
12 回复数
5,583 次查看
dongni
Contributor II

我的S32K344的板子也出现了,完全连接不上JLINK的问题,请问除了换车PE仿真器,还有什么办法可以解决吗?

提示的错误如下:Connecting to target via SWD
ConfigTargetSettings() start
ConfigTargetSettings() end
InitTarget() start
Unknown SDA AP Id detected: 0xFFFFFFFF
InitTarget() end
Connect failed. Resetting via Reset pin and trying again.
ConfigTargetSettings() start
ConfigTargetSettings() end
InitTarget() start
Unknown SDA AP Id detected: 0xFFFFFFFF
InitTarget() end
ConfigTargetSettings() start
ConfigTargetSettings() end
InitTarget() start

0 项奖励
回复
5,403 次查看
ZhouPengfei
Contributor III

同样问题,请问是否解决,如何解决的?

0 项奖励
回复
5,386 次查看
dongni
Contributor II

一样的只能用PE,配置MCAL的时候,DEBUG脚没有配置,被设置成GPIO口,用JLINK的话就没法连上

4,747 次查看
SusanG
Contributor I

如果下载器是通过USB的Hub连接的电脑,解锁失败,那么可以尝试将下载器直接连电脑,使用J-flash的Production Programming。或者反过来,如果下载器直连电脑的,可以通过转接器进行尝试。

0 项奖励
回复
8,016 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

It's not very clear what happened. Do you mean that you was working with watchdog implemented on SBC or with internal watchdog? Is the SBC forced to debug mode?

lukaszadrapa_0-1653894816539.png

 

Regards,

Lukas

0 项奖励
回复
8,006 次查看
lucienzhu
Contributor II

Hi Lukas:

     Thanks for your reply!  I am used RTD example( Wdg_Example_S32K344) to debug internal watchdog, but I'm not sure that's the problem,because there are no exceptions during debugging. Just placed for a week and then the failure occured.

     EVB works on flash mode normally, After the failure occurs, I tried to use debug mode, but it not work, Phenomenon is what I described above. 

    I found that operating the MDM-AP register on the S32K1 can perform mass erease,  can this method be used on the S32K3 and how it works?

Thanks and Regards

 Lucien

0 项奖励
回复
7,977 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Lucien,

is the reset LED glowing all the time? I have little bit different revision of this board but it looks like reset LED on your picture. It could be caused by reset escalation when the reset is asserted all the time and power on reset is needed to recover. Do you have an oscilloscope to check if the reset is toggling several times after power on?

Regards,

Lukas

0 项奖励
回复
7,966 次查看
lucienzhu
Contributor II

Hi Lukas

 Yes! reset LED glowing all the time, but weak light. Reset signal shown below

lucienzhu_1-1654048804793.png

I've found that someone is having the same problem as me.

S32K3 jtag locked - NXP Community

but I have no PEmicro.What am i going to do?

0 项奖励
回复
7,928 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Well, I tested mentioned example on my board and I can see no problem on my side. The device is not resetting like this. Anyway, the debugger should be able to establish the connection in this case. As you suggested, it may be an issue of J-Link. Maybe you can try to ask Segger for help or maybe you can try to get another debugger.

Regards

Lukas

0 项奖励
回复
7,874 次查看
lucienzhu
Contributor II

I have solved it with PE

0 项奖励
回复
4,958 次查看
imhere
Contributor I
I'm in the same situation,The difference is that I can't solve it with PE,Can you tell me what to do。
0 项奖励
回复
7,178 次查看
jizhe
Contributor I

我的S32K344也碰见锁死的问题,只能用PE仿真器解决吗?

0 项奖励
回复