Skip to main content
JNguyen
Senior
Apr 14, 2021 2:09 PM UTC
Solved

what debug tool can be used with stm32h747i-disco board?

There is a 4-pin connector for ST-Link, but not populated. What debug tool can be used with ST-Link-V3E connector (micro USB)?

This topic has been closed for replies.
JNguyen
JNguyenBest answer
Senior
Apr 15, 2021 1:31 PM UTC

I solved this problem and want to post detail here to help someone else time if he/she encounters the same problem.

In short, the answer is that connecting a PC to the disco board's ST-LINK/V3 USB connector will power the board and will allow you to program/debug. There is no need for additional debugger tool. The problem I had is that SW4STM32's OpenOCD is not stable. When I switched to CubeIDE, the problem goes away.

10 replies

Uwe Bonnes
Chief
Apr 14, 2021 2:20 PM UTC

stm32h747i-disco has an on-board Stlink-V3. If you want to use an external debugger, keep the STLink under debug and connect the debugger to CN13. The 4-pin connector is ti programm the Stlink itself. but propably the StlinkV3 is already delivered in RDP2

JNguyen
JNguyenAuthor
Senior
Apr 14, 2021 2:33 PM UTC

What debug tool/debugSW must be used with STLink-V3E connector?

Uwe Bonnes
Chief
Apr 14, 2021 2:46 PM UTC

E.g. another STLinkV3. Read dm00504240. But what is not good with the onboard STLink?

JNguyen
JNguyenAuthor
Senior
Apr 14, 2021 3:14 PM UTC

I didn't see a straight answer on UM2411. That is why I submit this question. I have STLink-V2 which is not working with STLink-V3. I have to solder header on CN4 for STLINK. CN13 is a special connector, which I don't have, and hard to find. So the answer I'm looking for (I'm still assuming) is "STLink-V3 debugger is required for debugging/programming the board via CN2 (microUSB)" I wish this statement is on the UM2411.

JNguyen
JNguyenAuthor
Senior
Apr 14, 2021 3:45 PM UTC

After checking UM2448 of STLink-V3, I was wrong. It doesn't look that STLink-V3 debugger can debug/program the stm32h747i-disco via STLink-V3E connector (CN2, micro-B). STLink-V3 has flat cable to target, not micro-B. Can anyone confirm this?

Tesla DeLorean
Guru
Apr 14, 2021 4:26 PM UTC

You do seem to be making this unnecessarily complicated and convoluted

The USB connects to the on-board ST-LINK/V3 implemented in an F723 IC, that in turn connects the H747 SWDIO/SWCLK/SWO via internal traces.

There may be some pads, or tag-connect that might permit the use of a Segger J-LINK or other third party /external tools. You'd want to check the schematic thoroughly, but that's typically a rather out-lying use case.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
JNguyen
JNguyenAuthor
Senior
Apr 14, 2021 4:41 PM UTC

How do I make it complicated? I can't find direct clear answers. So I have to explore so many options. I went thru schematics, UM, but still can't get answer. The simple task I need is compiling an example from CubeMX repository for this board and program it on the board. Compiling has no problem. But STW4STM32 doesn't see the target. Neither ST-Link Util if the on-board ST-LINK/V3 microB connector is used. So what tool/how/what SW do I need to perform the task with the on-board ST-LINK/V3 microB? I haven't found answer.

I had to open up the board, installed 4-pin header CN4. Now ST-LinkUtil can program the board.

I appreciate your answers/tips. However, in this case, I need a detail answer, not just a general one.

JNguyen
JNguyenAuthorBest answer
Senior
Apr 15, 2021 1:31 PM UTC

I solved this problem and want to post detail here to help someone else time if he/she encounters the same problem.

In short, the answer is that connecting a PC to the disco board's ST-LINK/V3 USB connector will power the board and will allow you to program/debug. There is no need for additional debugger tool. The problem I had is that SW4STM32's OpenOCD is not stable. When I switched to CubeIDE, the problem goes away.