S32K322: protect code/data flash read/write from host debugger

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

S32K322: protect code/data flash read/write from host debugger

503 Views
AbdNxp
Contributor II

Hello Danial,

I was going through thread Solved: How to set S32K3_Host debug permanently disabled? - NXP Community

I wanted to understand this and achieve and implement for my project(MCU S32K322, pFlash0 - bootloader, pFlash1-app, Core1-not used but DTCM1 is used), how/where can | start, guide me with some document, sample code.

 

Thanks & regards

Abdullah A

0 Kudos
Reply
1 Reply

468 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Abdullah,

There are two ways to debug‑protect an S32K3xx MCU:

With HSE: Install the HSE firmware, configure Secure Debug using an Application Debug Key/Password (ADKP), and advance the device lifecycle to enforce debug protection. For further details, please create a support ticket, as the HSE firmware and documentation are available under NDA only.

Without HSE: Program a customer debug password into OTP (UTEST) and then advance the lifecycle to restrict or disable debug access.

The non‑HSE debug protection mechanism is explained in detail here:
https://community.nxp.com/t5/S32K-Knowledge-Base/S32K3-Restrict-the-debug-access-with-a-password-whe...

DTCM1 backdoor access can be used by CM7_0 even if CM7_1 is not used; a simple example is available here:
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K314-DTCM1-Backdoor-RTD201-DS34-v3/ta-p/...

 

Regards,

Daniel

 

0 Kudos
Reply