STM32H7
STM32H7A3ZIT6Q
I have a firmware that receives data via UART and responds accordingly at an external side, using a Timer interrupt. When the JTAG is connected, the program works as expected, with all commands being responded to. However, when the JTAG is disconnected, the microcontroller fails to respond consistently or with high frequency. This indicates a possible issue related to the presence of the JTAG interface.
I currently do not use WFI() or WFE() in my code, so I assume it won't enter sleep mode. However, I am not entirely sure about this. I am curious to know why the behavior of the system differs when JTAG is connected versus when it is not. I wonder how to approach this situation and what specific aspects I should examine to understand this discrepancy, and How do I prevent this unexpected behavior.
