cancel
Showing results for 
Search instead for 
Did you mean: 

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

Ced77fr
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
Ced77fr
Associate

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

View solution in original post

2 REPLIES 2
AScha.3
Super User

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".
Ced77fr
Associate

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