Skip to main content
Visitor II
May 20, 2021
Question

MCUDEV no ST-LINK

  • May 20, 2021
  • 5 replies
  • 7202 views

I just got an MCUDEV board for the STM32H743 chip. I have been using an eval board and have my code configured in the CubeIDE. When I connect the MCUDEV board to my computer via a Micro USB to USB cable, LED D1 turns on and LED D2 starts flashing. But when I press "Run" in the CubeIDE, I get an error of "No ST-LINK detected". I do not get this error when I use the eval board, and the MCUDEV board is not showing up in my COM ports. Is there a step I missed in getting my code onto the board and running it?

    This topic has been closed for replies.

    5 replies

    Graduate II
    May 20, 2021

    The DevEBox board has an SWD debug header, you need to attach an ST-LINK to that to do the debugging.

    Via the USB, you're going to need to connect with BOOT0 High for it to enter the ROM loader, and then you'd need to use STM32 Cube Programmer in USB/DFU mode to push in the firmware. Jumper BT0 and 3V3 pin at the debug header

    https://community.st.com/s/question/0D53W00000kvyZGSAY/are-there-resources-for-converting-from-using-the-evaluation-board-to-a-breadboard-setup

    Graduate II
    May 20, 2021

    0693W00000AP5yzQAD.jpg

    SGold.3Author
    Visitor II
    May 20, 2021

    I hooked up BT0 to 3V3 but I do not see how to change to USB/DFU mode. I have been using the micro USB - USB cable to upload my code throughout, is this a new setting I need to change? Thanks

    Graduate II
    May 20, 2021

    Make sure that the device is seen in Device Manager, something like "STM32 BOOT DEVICE"

    Select USB connectivity mode, and select the device if there are multiple choices.

    0693W00000AP6LeQAL.jpg

    SGold.3Author
    Visitor II
    May 20, 2021

    Do you have a recommendation if the device is not in the Device Manager? I can see the Eval boardin the Device Manager when I plug it in but not the MCUDEV board

    Graduate II
    May 20, 2021

    Are you removing ALL sources of power from the board?

    Is the cable known good?

    I will have to try this later, don't have the board to hand currently.

    SGold.3Author
    Visitor II
    May 24, 2021

    I've tried this with both power to the board and no power to the board. I've been using the USB cable I had been using to program the Eval board so I know it works. When I open Device Manager, there is no Unknown USB or STM32. When I plug and unplug the device, device manager does not change.

    Graduate II
    May 24, 2021

    Boot mode is entered with BT0/3V3 jumpered, and the board brought out of a cold powerless state by plugging in the USB connection to a host computer.

    Windows should make its ding-**** attachment sound. You should ideally connect directly to the computer, avoiding docking stations or hubs.

    The alternative connection method would be via the SWDIO/SWCLK connections of the debug header to an ST-LINK/V2 or V3

    SGold.3Author
    Visitor II
    May 24, 2021

    I get the ding sound for the Eval board but not the dev board. I also just noticed the voltage at the 3V3 pin is about 1.4Vand very slowly decreasing. I'm connected directly into the USB port in my desktop. How would I connect using the DIO and CLK signals on the SWD?

    Graduate II
    May 24, 2021

    Sounds like you have a short somewhere/somewhen. Watch the type of surface you allow the board to rest on

    https://stm32-base.org/guides/connecting-your-debugger.html

    SGold.3Author
    Visitor II
    May 24, 2021

    I moved it onto an ESD sheet and the short went away so thank you for that suggestion. I see the guide saying to connect SWCLK to PA14 and SWDIO to PA13 but I am not sure how that is flashing the software onto the microcontroller. Unless I am supposed to be splitting open a USB cable and manually connecting that to the GPIO pins.