S32K148锁死

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

S32K148锁死

376 Views
dongkuili
Contributor I

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.

Tags (1)
0 Kudos
Reply
1 Reply

245 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@dongkuili

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

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

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

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2290520%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3ES32K148%20locked%20up%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290520%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3ES32K148%20MCU%20use%20J-LINK%20to%20brush%20flash%20by%20mistake%2C%20then%20use%20J-LINK%20link%20to%20get%20the%20following%20error%2C%20JLINK%20unsecured%20is%20useless%2C%20how%20to%20solve%20it%3F%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3E%20Connecting%20...%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20Connecting%20via%20USB%20to%20probe%2F%20programmer%20device%200%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20Probe%2F%20Programmer%20firmware%3A%20J-Link%20V9%20compiled%20Dec%2013%202022%2011%3A14%3A50%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20Probe%2F%20Programmer%20S%2FN%3A%2025994751%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20Device%20%22S32K148%20%22%20selected.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E-%20Target%20interface%20speed%3A%2050%20kHz%20(Fixed)%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20VTarget%20%3D%203.301V%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20ConfigTargetSettings()%20start%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20ConfigTargetSettings()%20end%20-%20Took%20305us%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20InitTarget()%20start%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20SWD%20selected.%20Executing%20JTAG%20-%20%26gt%3B%20SWD%20switching%20sequence.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E-%20Protection%20bytes%20in%20flash%20at%20addr.%200x400%20-%200x40F%20indicate%20that%20readout%20protection%20is%20set.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EFor%20debugger%20connection%20the%20device%20needs%20to%20be%20unsecured.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3ENote%3A%20Unsecuring%20will%20trigger%20a%20mass%20erase%20of%20the%20internal%20flash.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3E-%20Executing%20default%20behavior%20previously%20saved%20in%20the%20registry.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E-%20Device%20will%20be%20unsecured%20now.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20Timeout%20while%20unsecuring%20device.%20Erase%20never%20stops.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E-%20InitTarget()%20end%20-%20Took%202.17s%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20Found%20SW-DP%20with%20ID%200x2BA01477%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20DPv0%20detected%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20CoreSight%20SoC-400%20or%20earlier%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20Scanning%20AP%20map%20to%20find%20all%20available%20APs%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20AP%5B2%5D%3A%20Stopped%20AP%20scan%20as%20end%20of%20AP%20map%20has%20been%20reached%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20AP%5B0%5D%3A%20AHB-AP%20(IDR%3A%200x24770011%2C%20ADDR%3A%200x00000000)%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20AP%5B1%5D%3A%20JTAG-AP%20(IDR%3A%200x001C0000%2C%20ADDR%3A%200x01000000)%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20Iterating%20through%20AP%20map%20to%20find%20AHB-AP%20to%20use%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20AP%5B0%5D%3A%20Skipped.%20Could%20not%20read%20CPUID%20register%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20AP%5B1%5D%3A%20Skipped.%20not%20an%20AHB-AP%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20-%20Attach%20to%20CPU%20failed.%20Executing%20connect%20under%20reset.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2291482%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K148%E9%94%81%E6%AD%BB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2291482%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHi%40dongkuili%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EFirst%20of%20all%2C%20there%20is%20no%20guarantee%20that%20it%20will%20be%20recovered%2C%20because%20the%20encrypted%20segment%20you%20wrote%20the%20wrong%20persistence%20value%20to%20may%20not%20support%20mass%20erase%20erasure.%3C%2FP%3E%0A%3CP%3EYou%20can%20read%20the%20document%20%3CSPAN%3E6.%20S32K1xx%20series%20MCU%20chip%20lockup%20(lockup)%20phenomenon%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzI0MDk0ODcxMw%3D%3D%26amp%3Bmid%3D2247485716%26amp%3Bidx%3D1%26amp%3Bsn%3D979631aa2385a4e3c7651ee75ee252b4%26amp%3Bchksm%3De9124d92de65c484f1cfec7de451958cfd5cf818c46a4f71a7d3dd8a522af229c5a18aad58ff%26amp%3Bscene%3D21%23wechat_redirect%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzI0MDk0ODcxMw%3D%3D%20%26amp%3Bmid%3D2247485716%20%26amp%3Bidx%3D1%20%26amp%3Bsn%3D979631aa2385a4e3c7651ee75ee252b4%20%26amp%3Bchksm%3D%20e9124d92de65c484f1cfec7de451958cfd5cf818c46a4f71a7d3dd8a522af229c5a18aad58ff%20%26amp%3Bscene%3D21%23wechat_redirect%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E