Debug Connection Lost if NJTRST Set to Output
Developing on an STM32H563ZI chip with Cube IDE and ST-Link V2. DEBUG is configured as JTAG with Trace Syncro (4 bits), which is 4-wire JTAG (JTMS, JTCK, JTDI, and JTDO).
My project has allocated pin PB4(NJTRST) as a GPIO. If left unconfigured, debugging is possible. If configured as an output, the debugger loses its connection to the core with the execution of the line of code that configures the pin as an output.
Why does this happen, when I'm using 4-wire JTAG? The NJTRST line doesn't even go to the JTAG header, so it's not like the ST-Link is "secretly" using that wire.
Is there maybe some option bit I need to set to make the chip happy in debug mode with NJTRST configured as a general-purpose output?
