Skip to main content
Visitor II
September 13, 2022
Question

What changes need to done in migrating from SWD to JTAG debugging on STM32H745I-DISCO?

  • September 13, 2022
  • 2 replies
  • 1434 views

I am using STM32H745I-DISCO board and STM32CubeIDE 1.8.0. I am presently using on board ST-Link in SWD to program and debug the MCU. Now I want to use JTAG debugging using J-Link.

What changes need to be done to make my project compatible to JTAG debugging. Is any change required in my application code or only some project settings need to be changed?

Please provide any reference document for the same.

    This topic has been closed for replies.

    2 replies

    Super User
    September 13, 2022

    Do you want JTAG mode only to use J-LINK? J-LINK works fine in SWD mode too.

    >  Is any change required in my application code or only some project settings need to be changed?

    Yes, JTAG mode uses a few more pins than SWD (some pins are shared between SWD and JTAG interfaces but named differently).

    Just select the desired mode in the Cube, and it will show the pin assignment.

    Akast.2Author
    Visitor II
    September 14, 2022

    > Do you want JTAG mode only to use J-LINK? J-LINK works fine in SWD mode too

    Yes, I have checked debugging my project using SWD. Now I want to check if debugging with JTAG is working properly or not.

    > JTAG mode uses a few more pins than SWD (some pins are shared between SWD and JTAG interfaces but named differently).

    Ok, I will check JTAG debugging by making the changes in Cube.

    Graduate II
    September 13, 2022

    The point of this would be what exacty?

    Pull a schematic and confirm if a full set of pins is wired up, and accessible.

    Check that the Tag-Connect, or whatever, exposes the pins you need to connect with.

    Akast.2Author
    Visitor II
    September 14, 2022

    Ok.

    Actually, I have checked debugging my project using SWD. Now I want to check if debugging with JTAG is working properly or not.

    I hope other than assigning the pins for JTAG in debug section of Cube, no other change is required.

    Graduate II
    September 14, 2022

    Ultimately gets to be a pin issue.

    Could check also via connectivity methods in STM32 Cube Programmer. ​