HI:
I have a s32k146 evb board, according to release note, as below:
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:
and the s32k146EVB is as below:
is it normal?
I develop a software project use S32DS IDE, the software is as below:
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:
how to resolve it?
我不明白你的意思,不过看上去你的芯片已经被你锁死了
参考第6个tip
这个下载不了
这个脚本和你的关系不大,只是把文章中的步骤做了一个脚本。
我不是作者,你下载不了我也下载不了,并且根据我提供给你的截图中第6段,已经告诉你的芯片已经锁死了,恢复不了了。
不确定可以测量PTA5复位管脚的波形,对比文章中的来确定是否可以恢复。
波形量了,是可以恢复的,但是我手上没有S32K146的GPIO复用表,所以不确定软件把PA4,PA5,PC4配成输入口,起不起作用?PA5:reset脚本是不是只能是reset脚,不能复用成普通GPIO,软件配了也没用?
就是先确认下板子硬件连接接正常吗?jlink连线是否OK?目前,拔掉USB,插上12电源,板子上只有D3 led灯是亮的,其他的led 灯是熄灭状态,另外,补充一点,PTA5:RESET引脚,PAT4,PTC5:SWD引脚我这边配成了GPIO输入:
这样配OK吗?
你的J-LINK的SW口链接我怎么帮你检查?
D3亮说明5V供电正常.
复位脚是PTA5,SWD的CLOCK和DATA口分别是PTC4和PTA4,你看你自己说的是什么。
你是不是在之前错误的配置了复位口阿,这也会导致你连不上调试器
我不熟悉EB配置,但是不明显OK,这几个端口设置参考IDE例程中的配置
https://blog.csdn.net/weixin_42967006/article/details/121831965
需要从哪些方面去查SWD口?我把PAT4,PAT5,PCT4软件全部配成了普通GPIO,输入口,若下拉,这会有影响吗?有影响怎么处理?此外插上JTAG,板子只亮一个LED灯D3,其他不亮,硬件状态正常吗?
这个复位是复位S32K146这个芯片还是,其他的,如果是S32k146的话,应该不是在复位状态,因为板子上面的绿灯,红灯交替闪烁,这是我写的程序,说明程序在运行,如果是复位,这个灯应该不会亮
怎么使用jlink进行解锁?
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
jump setting as below:
ok,but could you help me check the jump settings?as your release notes:
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!
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?
Please see it ,is it right?
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.
I hope you can help confirm what's the right JUMP SETTING firstly,thanks!
please check it
is it right?
why don't you just have a try?