error: Device is secure. Erase to unsecure

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

error: Device is secure. Erase to unsecure

820 Views
Navina
Contributor III

Hello Team,

I was testing A/B partitioning on the S32K144 using the A12323 document.


First, I flashed the S32K144_Memory_Partition project into RAM.
Then, I flashed the S32K144_FOTA_Gateway_example into Flash.

On the same board, I tried flashing a CAN application. The first time it worked successfully.
However, when I attempted to flash the same application a second time, it failed with the error: “Device is secure. Erase to unsecure.”

Navina_0-1764133345139.png

 

Now I am not able to flash anything.

 

Thanks.

Tags (1)
0 Kudos
Reply
1 Reply

754 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Navina 

As I wrote in previous thread:

Do you have Segger J-Link probe or Lauterbach debugger to read MDM-AP? Unfortunately that's not possible with Pemicro.

There's a rare scenario when the device can be locked. Please check this thread:

https://community.nxp.com/t5/S32K/Unbricking-S32K146/m-p/937227

To confirm it, it's necessary to read MDM-AP.

%3CLINGO-SUB%20id%3D%22lingo-sub-2248896%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eerror%3A%20Device%20is%20secure.%20Erase%20to%20unsecure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2248896%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Team%2C%3C%2FP%3E%3CP%3EI%20was%20testing%20A%2FB%20partitioning%20on%20the%20S32K144%20using%20the%20A12323%20document.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EFirst%2C%20I%20flashed%20the%20S32K144_Memory_Partition%20project%20into%20RAM.%3CBR%20%2F%3EThen%2C%20I%20flashed%20the%20S32K144_FOTA_Gateway_example%20into%20Flash.%3C%2FP%3E%3CP%3EOn%20the%20same%20board%2C%20I%20tried%20flashing%20a%20CAN%20application.%20The%20first%20time%20it%20worked%20successfully.%3CBR%20%2F%3EHowever%2C%20when%20I%20attempted%20to%20flash%20the%20same%20application%20a%20second%20time%2C%20it%20failed%20with%20the%20error%3A%20%3CSTRONG%3E%E2%80%9CDevice%20is%20secure.%20Erase%20to%20unsecure.%E2%80%9D%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Navina_0-1764133345139.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Navina_0-1764133345139.png%22%20style%3D%22width%3A%20303px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Navina_0-1764133345139.png%22%20style%3D%22width%3A%20303px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367251i9186E8B692F838CC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Navina_0-1764133345139.png%22%20alt%3D%22Navina_0-1764133345139.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ENow%20I%20am%20not%20able%20to%20flash%20anything.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2250279%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20error%3A%20Device%20is%20secure.%20Erase%20to%20unsecure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2250279%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%2F256429%22%20target%3D%22_blank%22%3E%40Navina%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20I%20wrote%20in%20previous%20thread%3A%3C%2FP%3E%0A%3CP%3EDo%20you%20have%20Segger%20J-Link%20probe%20or%20Lauterbach%20debugger%20to%20read%20MDM-AP%3F%20Unfortunately%20that's%20not%20possible%20with%20Pemicro.%3C%2FP%3E%0A%3CP%3EThere's%20a%20rare%20scenario%20when%20the%20device%20can%20be%20locked.%20Please%20check%20this%20thread%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FUnbricking-S32K146%2Fm-p%2F937227%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FUnbricking-S32K146%2Fm-p%2F937227%3C%2FA%3E%3C%2FP%3E%0A%3CP%3ETo%20confirm%20it%2C%20it's%20necessary%20to%20read%20MDM-AP.%3C%2FP%3E%3C%2FLINGO-BODY%3E