Hi
I am wondering how to disable the ability for the JTAG to function from software on a beaglebone black (AM3359AZCZ100). I don't necessarily need to prevent JTAG functioning after doing a power off/on and attaching right away, only preventing the JTAG from attaching while it is already powered on and running my software.
So far I have seen that there is a register to disable it that is apart of trustZone, for example the so called "secure debug enable register".
However I'm not entirely sure if I'm able to use it, or how to go about using it to prevent an external debugger attached via JTAG.
If that is not possible, I've been considering other possibilities, i've read that on some boards people were able to remap the JTAG pins to function as GPIO pins, preventing JTAG from working. If that is possible on the beaglebone black how would you go about doing that?
Another possibility is the fact I was having issues originally getting my JTAG to function, and I tracked it down to have something to do with the linux kernel power management probably related to the "wait-for-interrupt" low power state. Disabling the kernel option "CONFIG_PM_RUNTIME" made my debugger (openocd) start functioning again. So if the other methods are not possible, perhaps I can use whatever caused this bug to prevent JTAG from functioning. I'm just wondering if this issue was only a bug in openocd, and that it would still be possible to debug given proper software.
Anyway any ideas would be appreciated!