S32KEVB146 CANN'T DEBUG

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

S32KEVB146 CANN'T DEBUG

1,138 Views
lz135135
Contributor I

HI:

I have a s32k146 evb board, according to release note, as below:

lz135135_0-1709020625818.png

I can power up the board just using usb connector when I set the J104,J107,J10 as default,but in fact if i just use the usb micro connector, only one led D2 is blink; then I connect 1 and 2 of j107,and powerd by 12V power source, I can debug from PEmicro as below:

lz135135_1-1709021447567.png

and the s32k146EVB is as below:

lz135135_2-1709021653333.png

is it normal?

I develop a software project use S32DS IDE, the software is as below:

lz135135_3-1709021987819.png

I can compile this project successfully, use above method, I can debug firstly, then I modify my software,compile it again,I cann't debug ,some errors occur:

lz135135_4-1709022479943.png

how to resolve it?

 

 

0 Kudos
40 Replies

518 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@lz135135

我不明白你的意思,不过看上去你的芯片已经被你锁死了

https://mp.weixin.qq.com/s?__biz=MzI0MDk0ODcxMw==&mid=2247485716&idx=1&sn=979631aa2385a4e3c7651ee75e...

Senlent_0-1709105072772.png

参考第6个tip

 

0 Kudos

507 Views
lz135135
Contributor I

lz135135_1-1709108758539.png

这个下载不了

0 Kudos

496 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Iz135135

这个脚本和你的关系不大,只是把文章中的步骤做了一个脚本。

我不是作者,你下载不了我也下载不了,并且根据我提供给你的截图中第6段,已经告诉你的芯片已经锁死了,恢复不了了。

不确定可以测量PTA5复位管脚的波形,对比文章中的来确定是否可以恢复。

0 Kudos

483 Views
lz135135
Contributor I

波形量了,是可以恢复的,但是我手上没有S32K146的GPIO复用表,所以不确定软件把PA4,PA5,PC4配成输入口,起不起作用?PA5:reset脚本是不是只能是reset脚,不能复用成普通GPIO,软件配了也没用?

0 Kudos

485 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Iz135135

我让你看的第六段你看了吗

Senlent_1-1709109469267.png

 

 

 

0 Kudos

497 Views
lz135135
Contributor I

就是先确认下板子硬件连接接正常吗?jlink连线是否OK?目前,拔掉USB,插上12电源,板子上只有D3 led灯是亮的,其他的led 灯是熄灭状态,另外,补充一点,PTA5:RESET引脚,PAT4,PTC5:SWD引脚我这边配成了GPIO输入:

lz135135_0-1709106642659.png

lz135135_2-1709106760027.png

 

这样配OK吗?

0 Kudos

490 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Iz135135

你的J-LINK的SW口链接我怎么帮你检查?

D3亮说明5V供电正常.

复位脚是PTA5,SWD的CLOCK和DATA口分别是PTC4和PTA4,你看你自己说的是什么。

你是不是在之前错误的配置了复位口阿,这也会导致你连不上调试器

我不熟悉EB配置,但是不明显OK,这几个端口设置参考IDE例程中的配置

https://blog.csdn.net/weixin_42967006/article/details/121831965

Senlent_0-1709107844452.png

Senlent_1-1709107858489.png

 

0 Kudos

483 Views
lz135135
Contributor I

需要从哪些方面去查SWD口?我把PAT4,PAT5,PCT4软件全部配成了普通GPIO,输入口,若下拉,这会有影响吗?有影响怎么处理?此外插上JTAG,板子只亮一个LED灯D3,其他不亮,硬件状态正常吗?

0 Kudos

514 Views
lz135135
Contributor I

这个复位是复位S32K146这个芯片还是,其他的,如果是S32k146的话,应该不是在复位状态,因为板子上面的绿灯,红灯交替闪烁,这是我写的程序,说明程序在运行,如果是复位,这个灯应该不会亮

0 Kudos

512 Views
lz135135
Contributor I

怎么使用jlink进行解锁?

0 Kudos

440 Views
Senlent
NXP TechSupport
NXP TechSupport
0 Kudos

455 Views
Senlent
NXP TechSupport
NXP TechSupport

https://mcuoneclipse.com/2021/05/20/recovering-cortex-m-microcontroller-with-a-power-glitch/

如果没有J-LINK,可以下载Kinetis_Recovery_Utility.zip这个软件,尝试hold住复位管脚然后再调试

https://community.nxp.com/t5/S32K/Open-SDA-P-amp-E-Error/m-p/1497523

 

0 Kudos

476 Views
lz135135
Contributor I

jump setting as below:

lz135135_0-1709089665066.png

 

0 Kudos

480 Views
lz135135
Contributor I

ok,but could you help me check the jump settings?as your release notes:

lz135135_0-1709089067663.png

how to set it?

now I  set     j104:2 connect 3;     J107:1 connect 2;    j10: 2 connect 3; and I have debuged normally several times,and the red led D1 always is on,if I set the jump pin as default ,I cann't always debug, so please help check how can i set the jump J107,J10,J104,thanks!

0 Kudos

488 Views
lz135135
Contributor I

I also want to say that i have debug the examples normally several times.and I have modify the examples some times,I also debug normally,i donn‘t know whaat'wrong?

0 Kudos

492 Views
lz135135
Contributor I

lz135135_0-1709087082311.png

Please see it ,is it right?

0 Kudos

458 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@lz135135

There is no problem with your configuration.

If D1 is always on, it means that it is currently in reset state.

1.check OpenSDA interface, please check if the below highlight info is available on your side.

Senlent_0-1709089778699.png

https://community.nxp.com/t5/S32K/S32K148EVB-Dead-after-OpenSDA-Update-Need-help-to-recover/m-p/1204...

 

 

0 Kudos

446 Views
lz135135
Contributor I

I hope you can help confirm what's the right JUMP SETTING firstly,thanks!

0 Kudos

444 Views
lz135135
Contributor I

please check it 

lz135135_0-1709091019589.png

 

is it right?

0 Kudos

471 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Iz135135

why don't you just have a try?

0 Kudos