cancel
Showing results for 
Search instead for 
Did you mean: 

Electronic design for JTAG/SWD

Boris19
Associate II

Hello everyone,
I've been looking for some time for an example of an electronic design that would allow me to use the STLINK-V3MINIE in JTAG mode.

Boris19_5-1710329283537.png

With my electronic schematic I can use it in SWD mode, which works very well.
However, it's impossible to use JTAG mode, because when I configure the debugger in STM32CubeIDE and start debugging I get:
"Error in initializing ST-LINK device. Reason: Unknown MCU found on target."

Boris19_1-1710329015965.png

Boris19_3-1710329034771.png

I wonder if my electronic diagram is correct, even if I refer to the AN5474 documentation on page 26.

Boris19_4-1710329218265.png

Could someone either correct my circuit diagram or explain how to make the JTAG work?

Boris19_6-1710329437714.png

Thank you in advance.

Regards

PS: I Use an STM32F722RE MCU

4 REPLIES 4
STTwo-32
ST Employee

Hello @Boris19 and welcome to the ST Community 😊.

I suggest you to refer to the part 5 of the AN4661 and specially the Figure 22. JTAG connector implementation which shows the connection between the STM32F7 Series and a standard JTAG connector. The one that you are using is for the STM32MP13 series.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Pavel A.
Evangelist III

Why to use JTAG mode at all with STM32 MCUs? Do you need to chain several targets?

Hello @STTwo-32 and thank you for the fastest response I've ever had :).
Indeed, it's better to use the right document.
That said, document AN4661 does not use the STDC14 connector, nor does it contradict my electronic assembly (chap. 5.3.4).

Boris19_2-1710337166409.png

Furthermore, according to chapter 5.3.3, it would appear that the pull-up and pull-down resistors are internal.
The only thing is that my 100 ohm "GND_DETECT" resistor doesn't exist.

Boris19_0-1710336590788.png

So why isn't it working?

Best Regards.

Hello @Pavel A. ans thanks for your reply.
You're absolutely right, and in my case it would seem to be much better to use SWD.
But still, how to make it work.
Why doesn't my schematic allow the use of JTAG?

Best Regards.