S32K344 被锁

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K344 被锁

Jump to solution
4,529 Views
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

有人可以帮忙解决吗?

 

 

Tags (2)
0 Kudos
1 Solution
4,412 Views
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

View solution in original post

0 Kudos
12 Replies
2,069 Views
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 Kudos
1,889 Views
ZhouPengfei
Contributor III

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

0 Kudos
1,872 Views
dongni
Contributor II

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

1,233 Views
SusanG
Contributor I

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

0 Kudos
4,502 Views
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 Kudos
4,492 Views
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 Kudos
4,463 Views
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 Kudos
4,452 Views
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 Kudos
4,413 Views
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 Kudos
4,360 Views
lucienzhu
Contributor II

I have solved it with PE

0 Kudos
1,444 Views
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 Kudos
3,664 Views
jizhe
Contributor I

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

0 Kudos