2023-12-11 09:10 PM - edited 2023-12-11 09:11 PM
What are the different ways of disabling the JTAG in STM32G4 series? Is Direct Register Programming an option?
2023-12-11 11:08 PM
Hello @Tushar_4
if you want to disable the JTAG-DP and enable the SW-DP you have to use the following instructions according to the RM0440:
But if you want to just disable the JTAG you can do that by selecting any mode (input, output or analog) except alternate function mode for all JTAG pins.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-12-12 04:36 AM
Thank You,
Just wanted to ask one more thing , how can use some use some sort of protection like whenever we want to use the JTAG we enable that and debug , but someone other than me should not be able to Debug ,they have to like require a key or something.
There is a section in the reference manual (RM0440) MCU device ID code , in that we have DEV_ID and REV_ID , how can we give that our own password , because i think that the dev ID only identifies the device as a particular ID not a unique code or something.
Can we use some sort of encryption with option bytes that are built in already?
2023-12-12 11:02 PM
Hello again @Tushar_4
For more information about enabling / disabling the Debug on STM32G4, I suggest you take a look at the Read protection (RDP) part of the RM0440.
PS: Be careful, once in level 2, it is no more possible to modify the Read protection level.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.