s32k144 - Device is secured

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

s32k144 - Device is secured

132 Views
Pranathi06
Contributor III

Hi Team,

I am working with the S32K114 (AN12323) project. Initially, I flashed the Gateway project with CSEC disabled, and the programming was successful.

After that, I attempted to flash the CAN example application, but I encountered the following error:

"Device is secure, erase to unsecure."

To resolve the issue, I also tried using the "Emergency Kinetis Device Recovery" option, but it did not work.

Could you please suggest how to recover the device or remove the secure state so that I can flash the CAN example?

Tags (3)
0 Kudos
Reply
11 Replies

98 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Pranathi06

This issue is unrelated to whether "CSEC" is enabled in "S32K144_FOTA_Gateway" because when testing AN12323SW, your first step should be to download and run "S32K144_Memory_Partition" to perform partitioning, which already enables CSEC by default and assigns a key.

Senlent_0-1783587478752.png

 

AN12130:

Senlent_1-1783587519720.png

 

This is why the MCU is locked;

since the solution doesn't provide a reset CSEC operation, it cannot be recovered.

Next time, remember to modify "S32K144_Memory_Partition" to partition only, without enabling CSEC or the key.

0 Kudos
Reply

94 Views
Pranathi06
Contributor III

Hi @Senlent 

I didn't flash Memory_partition project. 

Before flashing my GATEWAY_PROJECT, I have flashed "Resetting flash to state"

 Is there any solution for recover?

 

Thanks.

Tags (3)
0 Kudos
Reply

91 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Pranathi06

"Before flashing my GATEWAY_PROJECT, I have flashed "Resetting flash to state"

I don't understand your meaning.

The AN12323SW doesn't have a "Resetting flash to state" program.

From what you're saying, you've modified "S32K144_FOTA_Gateway"?

You just need to check if your program has enabled the CSEc module and assigned a key, and whether you've considered restoring the CSEc module to its factory state within the application.

If not, then this situation is unrecoverable.

0 Kudos
Reply

88 Views
Pranathi06
Contributor III

Hi @Senlent 

 
 
I flashed AN5401_S32K144_CSEc_Resetting_Flash_to_Factory_State to erase the keys. After that, I flashed only the GATEWAY_PROJECT; I did not flash the Memory_Partition project.

 

Thanks.

 

 

0 Kudos
Reply

83 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Pranathi06

Is your problem occurring when downloading the "S32K144_FOTA_Gateway" program, or have you already successfully flashed "S32K144_FOTA_Gateway"?

 

0 Kudos
Reply

80 Views
Pranathi06
Contributor III

Hi @Senlent ,

Yes, successfully flashed "S32K144_FOTA_Gateway", when I tried to flash Can_example project that time "Device is secured" after that I cannot be able to flash any software.

 

Thanks

Tags (3)
0 Kudos
Reply

53 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Pranathi06

The "S32K144_FOTA_GATEWAY" command doesn't involve any CSEc or flash security related operations, so I'm unsure what you've done to the MCU.

You could measure the waveform of the RESET pin and tell me its reset cycle.

The reset cycle can be used to determine if the chip can recover to normal operation.

0 Kudos
Reply

37 Views
Pranathi06
Contributor III


Hi @Senlent 

I measured the RESET_b pin waveform using an oscilloscope.
The RESET_b signal is continuously toggling.
  • Pulse repetition appears to be roughly 400–500 µs (cursor shows Δt ≈ 475 µs).
  • Peak level is around 5 V, which suggests you may be probing an external reset circuit rather than directly measuring a 3.3 V MCU pin, or there is a pull-up to 5 V on RESET.
  • The reset activity is continuous and regular.
 

Thanks

 

 

 
 
 
Tags (1)
0 Kudos
Reply

35 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Pranathi06

If the reset signal period is not ~118µs, but greater than 200µs, such as 500µs or even longer,

the MCU will not be able to be decrypted and recovered via the SWD/JTAG debug interface using the mass erase command.

0 Kudos
Reply

26 Views
Pranathi06
Contributor III

Hi @Senlent ,

In which scenarios would the reset signal period be approximately 118 µs, and what factors could cause it to increase to around 475 µs in my case?
 
 
Thnaks.
Tags (1)
0 Kudos
Reply

22 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Pranathi06

This is based on experience, and your situation is quite similar: the CSEc hardware encryption module was enabled, preventing mass erase of the CSEc encryption key, which caused the problem.

Although the chip has deadlocked, and the MCU can no longer download programs or debug, as long as the chip's power supply is normal, you can still use a J-LINK debugger to connect to the CoreSight DAP debug access interface of the S32K1xx series MCU ARM Cortex M4F/M0+ via the SWD/JTAG debug interface to read the MDM-AP status register.

Therefore, you can determine the root cause of the chip deadlock based on the read MDM-AP status register value.

If you need me to help you pinpoint the cause of the deadlock, you can try using J-LINK to read the MDM-AP status register.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2392717%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Es32k144%20-%20Device%20is%20secured%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2392717%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3E%3CP%3EHi%20Team%2C%3C%2FP%3E%3CP%3EI%20am%20working%20with%20the%20%3CSTRONG%3ES32K114%20(AN12323)%3C%2FSTRONG%3E%20project.%20Initially%2C%20I%20flashed%20the%20%3CSTRONG%3EGateway%20project%3C%2FSTRONG%3E%20with%20%3CSTRONG%3ECSEC%20disabled%3C%2FSTRONG%3E%2C%20and%20the%20programming%20was%20successful.%3C%2FP%3E%3CP%3EAfter%20that%2C%20I%20attempted%20to%20flash%20the%20%3CSTRONG%3ECAN%20example%20application%3C%2FSTRONG%3E%2C%20but%20I%20encountered%20the%20following%20error%3A%3C%2FP%3E%3CBLOCKQUOTE%3E%3CP%3E%3CSTRONG%3E%22Device%20is%20secure%2C%20erase%20to%20unsecure.%22%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%3ETo%20resolve%20the%20issue%2C%20I%20also%20tried%20using%20the%20%3CSTRONG%3E%22Emergency%20Kinetis%20Device%20Recovery%22%3C%2FSTRONG%3E%20option%2C%20but%20it%20did%20not%20work.%3C%2FP%3E%3CP%3ECould%20you%20please%20suggest%20how%20to%20recover%20the%20device%20or%20remove%20the%20secure%20state%20so%20that%20I%20can%20flash%20the%20CAN%20example%3F%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2393582%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k144%20-%20Device%20is%20secured%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2393582%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F188029%22%20target%3D%22_blank%22%3E%40Senlent%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CDIV%3EIn%20which%20scenarios%20would%20the%20reset%20signal%20period%20be%20approximately%20118%20%C2%B5s%2C%20and%20what%20factors%20could%20cause%20it%20to%20increase%20to%20around%20475%20%C2%B5s%20in%20my%20case%3F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EThnaks.%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2393435%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k144%20-%20Device%20is%20secured%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2393435%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3EPranathi06%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIf%20the%20reset%20signal%20period%20is%20not%20~118%C2%B5s%2C%20but%20greater%20than%20200%C2%B5s%2C%20such%20as%20500%C2%B5s%20or%20even%20longer%2C%3C%2FP%3E%0A%3CP%3Ethe%20MCU%20will%20not%20be%20able%20to%20be%20decrypted%20and%20recovered%20via%20the%20SWD%2FJTAG%20debug%20interface%20using%20the%20mass%20erase%20command.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2393429%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k144%20-%20Device%20is%20secured%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2393429%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CBR%20%2F%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F188029%22%20target%3D%22_blank%22%3E%40Senlent%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3EI%20measured%20the%20RESET_b%20pin%20waveform%20using%20an%20oscilloscope.%3CDIV%3EThe%20RESET_b%20signal%20is%20continuously%20toggling.%3CDIV%3E%3CUL%3E%3CLI%3EPulse%20repetition%20appears%20to%20be%20roughly%20%3CSTRONG%3E400%E2%80%93500%20%C2%B5s%3C%2FSTRONG%3E%20(cursor%20shows%20%CE%94t%20%E2%89%88%20475%20%C2%B5s).%3C%2FLI%3E%3CLI%3EPeak%20level%20is%20around%20%3CSTRONG%3E5%20V%3C%2FSTRONG%3E%2C%20which%20suggests%20you%20may%20be%20probing%20an%20external%20reset%20circuit%20rather%20than%20directly%20measuring%20a%203.3%20V%20MCU%20pin%2C%20or%20there%20is%20a%20pull-up%20to%205%20V%20on%20RESET.%3C%2FLI%3E%3CLI%3EThe%20reset%20activity%20is%20continuous%20and%20regular.%3C%2FLI%3E%3C%2FUL%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3EThanks%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CBR%20%2F%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2393331%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k144%20-%20Device%20is%20secured%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2393331%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22mailto%3AHi%40Pranathi06%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EHi%40Pranathi06%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EThe%20%22S32K144_FOTA_GATEWAY%22%20command%20doesn't%20involve%20any%20CSEc%20or%20flash%20security%20related%20operations%2C%20so%20I'm%20unsure%20what%20you've%20done%20to%20the%20MCU.%3C%2FP%3E%0A%3CP%3EYou%20could%20measure%20the%20waveform%20of%20the%20RESET%20pin%20and%20tell%20me%20its%20reset%20cycle.%3C%2FP%3E%0A%3CP%3EThe%20reset%20cycle%20can%20be%20used%20to%20determine%20if%20the%20chip%20can%20recover%20to%20normal%20operation.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2392990%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k144%20-%20Device%20is%20secured%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2392990%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F188029%22%20target%3D%22_blank%22%3E%40Senlent%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%3CSPAN%3EYes%2C%20successfully%20flashed%20%22S32K144_FOTA_Gateway%22%2C%20when%20I%20tried%20to%20flash%20Can_example%20project%20that%20time%20%22Device%20is%20secured%22%20after%20that%20I%20cannot%20be%20able%20to%20flash%20any%20software.%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EThanks%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2392976%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k144%20-%20Device%20is%20secured%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2392976%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3EPranathi06%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIs%20your%20problem%20occurring%20when%20downloading%20the%20%22S32K144_FOTA_Gateway%22%20program%2C%20or%20have%20you%20already%20successfully%20flashed%20%22S32K144_FOTA_Gateway%22%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2392970%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k144%20-%20Device%20is%20secured%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2392970%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F188029%22%20target%3D%22_blank%22%3E%40Senlent%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EI%20flashed%20AN5401_S32K144_CSEc_Resetting_Flash_to_Factory_State%20to%20erase%20the%20keys.%20After%20that%2C%20I%20flashed%20only%20the%20GATEWAY_PROJECT%3B%20I%20did%20not%20flash%20the%20Memory_Partition%20project.%3C%2FDIV%3E%3CBR%20%2F%3E%3CP%3EThanks.%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2392954%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k144%20-%20Device%20is%20secured%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2392954%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3EPranathi06%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%22Before%20flashing%20my%20GATEWAY_PROJECT%2C%20I%20have%20flashed%20%22Resetting%20flash%20to%20state%22%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EI%20don't%20understand%20your%20meaning.%3C%2FP%3E%0A%3CP%3EThe%20AN12323SW%20doesn't%20have%20a%20%22Resetting%20flash%20to%20state%22%20program.%3C%2FP%3E%0A%3CP%3EFrom%20what%20you're%20saying%2C%20you've%20modified%20%22S32K144_FOTA_Gateway%22%3F%3C%2FP%3E%0A%3CP%3EYou%20just%20need%20to%20check%20if%20your%20program%20has%20enabled%20the%20CSEc%20module%20and%20assigned%20a%20key%2C%20and%20whether%20you've%20considered%20restoring%20the%20CSEc%20module%20to%20its%20factory%20state%20within%20the%20application.%3C%2FP%3E%0A%3CP%3EIf%20not%2C%20then%20this%20situation%20is%20unrecoverable.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2392899%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k144%20-%20Device%20is%20secured%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2392899%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F188029%22%20target%3D%22_blank%22%3E%40Senlent%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20didn't%20flash%20Memory_partition%20project.%26nbsp%3B%3C%2FP%3E%3CP%3EBefore%20flashing%20my%20GATEWAY_PROJECT%2C%20I%20have%20flashed%20%22Resetting%20flash%20to%20state%22%3C%2FP%3E%3CP%3E%26nbsp%3BIs%20there%20any%20solution%20for%20recover%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2392887%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k144%20-%20Device%20is%20secured%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2392887%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3EPranathi06%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThis%20issue%20is%20unrelated%20to%20whether%20%22CSEC%22%20is%20enabled%20in%20%22S32K144_FOTA_Gateway%22%20because%20when%20testing%20AN12323SW%2C%20your%20first%20step%20should%20be%20to%20download%20and%20run%20%22S32K144_Memory_Partition%22%20to%20perform%20partitioning%2C%20which%20already%20enables%20CSEC%20by%20default%20and%20assigns%20a%20key.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_0-1783587478752.png%22%20style%3D%22width%3A%20668px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1783587478752.png%22%20style%3D%22width%3A%20668px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1783587478752.png%22%20style%3D%22width%3A%20668px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F391840i42FBB8B561436064%2Fimage-dimensions%2F668x359%3Fv%3Dv2%22%20width%3D%22668%22%20height%3D%22359%22%20role%3D%22button%22%20title%3D%22Senlent_0-1783587478752.png%22%20alt%3D%22Senlent_0-1783587478752.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAN12130%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_1-1783587519720.png%22%20style%3D%22width%3A%20671px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_1-1783587519720.png%22%20style%3D%22width%3A%20671px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_1-1783587519720.png%22%20style%3D%22width%3A%20671px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F391841i30BC912A933414D5%2Fimage-dimensions%2F671x292%3Fv%3Dv2%22%20width%3D%22671%22%20height%3D%22292%22%20role%3D%22button%22%20title%3D%22Senlent_1-1783587519720.png%22%20alt%3D%22Senlent_1-1783587519720.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThis%20is%20why%20the%20MCU%20is%20locked%3B%3C%2FP%3E%0A%3CP%3Esince%20the%20solution%20doesn't%20provide%20a%20reset%20CSEC%20operation%2C%20it%20cannot%20be%20recovered.%3C%2FP%3E%0A%3CP%3ENext%20time%2C%20remember%20to%20modify%20%22S32K144_Memory_Partition%22%20to%20partition%20only%2C%20without%20enabling%20CSEC%20or%20the%20key.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2393595%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k144%20-%20Device%20is%20secured%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2393595%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3EPranathi06%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThis%20is%20based%20on%20experience%2C%20and%20your%20situation%20is%20quite%20similar%3A%20the%20CSEc%20hardware%20encryption%20module%20was%20enabled%2C%20preventing%20mass%20erase%20of%20the%20CSEc%20encryption%20key%2C%20which%20caused%20the%20problem.%3C%2FP%3E%0A%3CP%3EAlthough%20the%20chip%20has%20deadlocked%2C%20and%20the%20MCU%20can%20no%20longer%20download%20programs%20or%20debug%2C%20as%20long%20as%20the%20chip's%20power%20supply%20is%20normal%2C%20you%20can%20still%20use%20a%20J-LINK%20debugger%20to%20connect%20to%20the%20CoreSight%20DAP%20debug%20access%20interface%20of%20the%20S32K1xx%20series%20MCU%20ARM%20Cortex%20M4F%2FM0%2B%20via%20the%20SWD%2FJTAG%20debug%20interface%20to%20read%20the%20MDM-AP%20status%20register.%3C%2FP%3E%0A%3CP%3ETherefore%2C%20you%20can%20determine%20the%20root%20cause%20of%20the%20chip%20deadlock%20based%20on%20the%20read%20MDM-AP%20status%20register%20value.%3C%2FP%3E%0A%3CP%3EIf%20you%20need%20me%20to%20help%20you%20pinpoint%20the%20cause%20of%20the%20deadlock%2C%20you%20can%20try%20using%20%3CSTRONG%3EJ-LINK%3C%2FSTRONG%3E%20to%20read%20the%20%3CSTRONG%3EMDM-AP%20status%20register%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E