S32K342 JTAG lock/Unlock

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

S32K342 JTAG lock/Unlock

3,108 Views
Ramu1983
Contributor I

Hello,

Could you please let me know process how to lock/unlock JTAG/Debug port via software with password for S32K342 micro controller.

Thanks

Labels (1)
Tags (1)
0 Kudos
Reply
5 Replies

2,976 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Could you please let me know how to program the DCF record and Life cycle state?

The DCF records are programmed to UTEST flash.

For DCF please refer to Chapter 37 Device Configuration Format (DCF) records of reference manual

For Life cycle to chapter 32.5.2 Address LC configuration word

Is it directly through application programming or through JTAG scripts we need to lock/unlock?

You can use both. For more details please refer to chapter 32.5.2 Address LC configuration word.

Could you please direct to me if we have any application notes related to this topic.

There is no application note directly for LC. In case you are not using HSE, then it is directly trough IVT, like 32.5.2 express.

In case of HSE, then it is trough HSE services.

Best regards,

Peter

0 Kudos
Reply

2,950 Views
Ramu1983
Contributor I

Hello,

Can we use Fls_Write() function to write DCF record and LC state?

If not, could you please direct me the function which need to be used from SDK for writing these records in to UTest memory.

Also, could you please let me know how to unlcok JTAG after locking?

Thanks.

0 Kudos
Reply

2,926 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Can we use Fls_Write() function to write DCF record and LC state?

I am not familiar with these drivers, but I expect that the answer is yes since I see the UTEST covered by RTD FLS user manual and also there are functions for operation with UTEST. As UTEST is just a block of normal flash only protected by PEASAD bit. Please check the

petervlna_0-1692950569219.png

Also, could you please let me know how to unlock JTAG after locking?

This is different for the debug vendors. Please contact your debugger vendor to see how it is done in his environment.

Best regards,

Peter

0 Kudos
Reply

3,041 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

You simply program DCF record (Debug password(CUST_DB_PSWD_A)) in UTEST memory and advance life cycle

or in case you have HSE FW installed:

petervlna_0-1691993484016.png

Best regards,

Peter

 

0 Kudos
Reply

3,031 Views
Ramu1983
Contributor I

Hello,

Thanks for the information.

Could you please let me know how to program the DCF record and Life cycle state?

Is it directly through application programming or through JTAG scripts we need to lock/unlock?

Could you please direct to me if we have any application notes related to this topic.

Thanks,

 

0 Kudos
Reply