Hi Team,
I am using NXP MIMXRT1064xx controller and I need to use protect/disable JTAG/Serial/Communication ports for security purpose.
So can you please guide me or suggest any way/s to do the same?
Regards,
Nikhil Dhameliya
Solved! Go to Solution.
Hi @Nikhil_Dhameliya ,
Thank you for your updated information.
You may misunderstand the fuse function, fuse, just can modify from 0 to 1, if you burn it, it can't be back any more to this chip.
Answer your questions:
=>Answer: After it is 1, no longer modify it back to 0 anymore. It is the fuse bit feature.
=>Answer: If you don't use the secure, don't need to care about it when you just want to use the JTAG enable or not. as it is used for the HAB.
=>Answer: yes, RT1064 is the same, you can use it. But please make sure you need to use the secure JTAG or not, if just the JTAG/SWD switch or disable, you don't need to totally follow the AN with secure.
Wish it helps you!
Best Regards,
Kerry
Hi @kerryzhou ,
Is it possible to disable debug access from application code and then it can be enable when flash is fully erased from programming device(PEMICRO's external utility) as client don't want to opt for Secure JTAG/Permanently disable JTAG access?
Please suggest a way if any.
Thanks and Regards,
Nikhil Dhameliya
Hi @Nikhil_Dhameliya ,
Debug interface disable need to use the fuse to disable it, but as you know, the fuse just can modify from 0 to 1, and can't back.
So, if you use the fuse to disable the debug interface, then you can't open it.
Best Regards,
Kerry
Hi @Nikhil_Dhameliya ,
Please check the following application note, it will help you understand the JTAG interface:
https://www.nxp.com/docs/en/application-note/AN12419.pdf
https://www.nxp.com/docs/en/application-note-software/AN12419SW.zip
You need to modify the fuse bit, the application note already list, please note, when you operate it, do it carefully, as the fuse bit just can be modified from 0 to 1, can't be back.
Wish it helps you!
Best Regards,
Kerry
Hi @kerryzhou ,
Thanks for a quick response and providing AN and Scripts.
I have below queries still so can you please answer those as my purpose is to ENABLE and DISABLE JTAG as per need(Not permanently enable or disable).
Regards,
Nikhil Dhameliya
Hi @Nikhil_Dhameliya ,
Thank you for your updated information.
You may misunderstand the fuse function, fuse, just can modify from 0 to 1, if you burn it, it can't be back any more to this chip.
Answer your questions:
=>Answer: After it is 1, no longer modify it back to 0 anymore. It is the fuse bit feature.
=>Answer: If you don't use the secure, don't need to care about it when you just want to use the JTAG enable or not. as it is used for the HAB.
=>Answer: yes, RT1064 is the same, you can use it. But please make sure you need to use the secure JTAG or not, if just the JTAG/SWD switch or disable, you don't need to totally follow the AN with secure.
Wish it helps you!
Best Regards,
Kerry
Hi @kerryzhou ,
Thanks a lot for answering all my queries.
From this I got to know that once JTAG is disabled, can't be enabled again (Fuse configuration Value can be modified from 0 to 1 only and 1 to 0 transition is not possible)
One more question:
Best Regards,
Nikhil Dhameliya
Hi @Nikhil_Dhameliya ,
Yes, you can use the secure JTAG(AN12419), as you know, it needs the key to access the JTAG, if you don't share it with others, then others can't access the chip through the JTAG.
Wish it helps you!
Best Regards,
Kerry
Hi @kerryzhou ,
Thanks a lot for suggesting way to use SECURE JTAG feature.
I am using "PE micro cyclone " external Debugger device for debugging purpose.
So can you please share any reference note on how to use SECURE JTAG feature between NXP MIMXRT1064 MCU and "PE micro cyclone debugger " as AN12419 only specifies the functionality for "JLINK Debugger"?
Regards,
Nikhil Dhameliya
Hi @Nikhil_Dhameliya ,
Sorry, NXP still don't have the PE micro secure JTAG examples.
It should modify the related debugger script, maybe you can contact with P&E micro side, they will be more familiar with their debugger script files.
Thanks a lot for your understanding.
Best Regards,
kerry
Hi @kerryzhou ,
I have checked on PE site and found below link:
Production Programming NXP i.MX RT10xx devices with Secure Boot (pemicro.com)
Can you please check and let me know that Secure JTAG feature is supported in NXP MCU using PE debugger or not?
Regards,
Nikhil Dhameliya
Hi @Nikhil_Dhameliya ,
From your link, chapter 3 Restricting JTAG Access with a Password is the secure JTAG.
I think, for the details, eg, normal PEmicro debug Multilink, please check with the PE side:
https://www.pemicro.com/support/index.cfm
They will be more familiar with their tools and the script.
Best Regards,
Kerry
Hi @kerryzhou ,
Thanks for a such great help.
I had got all information required for Securing JTAG of NXP MCU.
Regards,
Nikhil Dhameliya