Skip to main content
Visitor II
April 14, 2021
Solved

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

  • April 14, 2021
  • 5 replies
  • 2594 views

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.
    Best answer by JNguyen

    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.

    5 replies

    Graduate II
    April 14, 2021

    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

    JNguyenAuthor
    Visitor II
    April 14, 2021

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

    Graduate II
    April 14, 2021

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

    JNguyenAuthor
    Visitor II
    April 14, 2021

    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.

    JNguyenAuthor
    Visitor II
    April 14, 2021

    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?

    Graduate II
    April 14, 2021

    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.

    JNguyenAuthor
    Visitor II
    April 14, 2021

    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.

    JNguyenAuthorAnswer
    Visitor II
    April 15, 2021

    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.