Skip to main content
Associate
October 27, 2025
Solved

Last resort to connect to an STM32 when JTAG deactivate.....

  • October 27, 2025
  • 2 replies
  • 150 views

Hello,

as a first time user of STm32CubeIDE, I wanted to toggle a few IOs with a serial output.

I used the JTAG port to connect to the STM32 and program it BUT after the first programing, I can't connect to it anymore.....

Here is the pinout that I used:

Ced77fr_0-1761592130739.png

Afterwards, I discovered that I should have activated the JTAG debug.... but it is too late.....

What can I do to access/program the STM32 again?

This might be a simple question but I would appreciate the help.

Thank you

Best answer by Ced77fr

Hello,

After some tests and errors, I was able to get the chip back under JTAG control by:

- putting BOOT0 to 3.3V at startup

- using UART1 (through a USB-TTL serial adapter): PA10 (RX1) and PA9 (TX1) to access the chip and reprogram it.

Now, I have the JTAG programing back.

Thanks for the feedback

2 replies

AScha.3
Super User
October 27, 2025

Hi,

depends on..what st-link you use/have ?

usually, just connect "under reset" /hardware , then dont forget to set debug -> SWD .

And avoid using the pins needed for debug to abuse for anything else. :)

"If you feel a post has answered your question, please click ""Accept as Solution""."
Ced77frAuthorBest answer
Associate
October 28, 2025

Hello,

After some tests and errors, I was able to get the chip back under JTAG control by:

- putting BOOT0 to 3.3V at startup

- using UART1 (through a USB-TTL serial adapter): PA10 (RX1) and PA9 (TX1) to access the chip and reprogram it.

Now, I have the JTAG programing back.

Thanks for the feedback