cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug STM32 MCU directly

adam12
Associate

Hello. 

I'd like to debug STM32H723ZG Nucleo Board, connecting directly with PC. 

Instead of the basic USB-mini cable, is it possible to cut and work on the USB cable to separate it into 5V, DP, DM, and GND, and then directly connect it to the board for debugging?

In the User Manual, 
the pins for DP and DM are PB14 and PB15.

I attatched the screenshot of manual and my hardware setup. 

thanks.

adam12_1-1743735316106.png

 

adam12_0-1743735298841.png

 

2 REPLIES 2
KnarfB
Principal III

Referring to UM2407 User manual STM32H7 Nucleo-144 boards (MB1364)

there is STLINK-V3E USB Micro-B connector (CN1) on top for the ST-LINK debugger and 

USB OTG_FS connector (CN13). You can use USB on the STM32H7 for your own purposes, but not for debugging. Debugging is via the SWD interface which is conntected to the ST-LINK debug chip on top connected to CN1. 

For firmware updates (not debugging), STM32H723ZG can use USB DFU with the help of internal ROM code (System Memory Boot).

hth

KnarfB

AScha.3
Chief III

Hi,

>I'd like to debug STM32H723ZG Nucleo Board, connecting directly with PC. 

Ok, we all do this. :)

>is it possible to cut and work on the USB cable to separate it into 5V, DP, DM, and GND, and then directly connect it to the board for debugging?

What is more "direct" than the USB cable direct to PC ?? separate 5V, gnd...change nothing, except: it might be no more a working USB connection. So how you want improve the micro-USB --- USB-A cable ?

If you feel a post has answered your question, please click "Accept as Solution".