2290520_zh-CN

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

2290520_zh-CN

2290520_zh-CN

S32K148锁死

S32K148 MCU用J-LINK错刷Flash,再用J-LINK链接发生如下错误,JLINK unsecured已没用,怎么解决?

Connecting ...
- Connecting via USB to probe/ programmer device 0
- Probe/ Programmer firmware: J-Link V9 compiled Dec 13 2022 11:14:50
- Probe/ Programmer S/N: 25994751
- Device "S32K148" selected.
- Target interface speed: 50 kHz (Fixed)
- VTarget = 3.301V
- ConfigTargetSettings() start
- ConfigTargetSettings() end - Took 305us
- InitTarget() start
- SWD selected. Executing JTAG -> SWD switching sequence.
- Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash.

- Executing default behavior previously saved in the registry.
- Device will be unsecured now.
- Timeout while unsecuring device. Erase never stops.
- InitTarget() end - Took 2.17s
- Found SW-DP with ID 0x2BA01477
- DPv0 detected
- CoreSight SoC-400 or earlier
- Scanning AP map to find all available APs
- AP[2]: Stopped AP scan as end of AP map has been reached
- AP[0]: AHB-AP (IDR: 0x24770011, ADDR: 0x00000000)
- AP[1]: JTAG-AP (IDR: 0x001C0000, ADDR: 0x01000000)
- Iterating through AP map to find AHB-AP to use
- AP[0]: Skipped. Could not read CPUID register
- AP[1]: Skipped. Not an AHB-AP
- Attach to CPU failed. Executing connect under reset.

Re: S32K148锁死

Hi@dongkuili

首先不见得保证能恢复,因为加密段被你写入了错误持续值,可能并不支持mass erase擦除

可以阅读该文档6. S32K1xx系列MCU芯片锁死(lockup)现象

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


Re: S32K148锁死

Hi@dongkuili

这和你使用什么软件没关系,按照文章中说的,直接去测试reset管脚的波形来判断是否可能被恢复,不能的话就不要再浪费你的时间了。

Re: S32K148锁死

谢谢回复

仔细看了链接文档和芯片手册,多次尝试还是无法通过mass erase恢复,想用S32FlashTool_v2.3.4,但不支持S32K148,有支持S32K148的S32FlashTool吗?

Tags (1)
No ratings
Version history
Last update:
‎01-24-2026 03:25 AM
Updated by: