Skip to main content
Visitor II
February 24, 2024
Solved

stm32f407 Disc and external stlink problem

  • February 24, 2024
  • 2 replies
  • 1987 views

Hi everyone I'm trying to use external debugger with my stm32 disc1 board. The problem is if i only connect the stlink and my board i can't debug it, but if I power the board with another usb port i can access it.

So my question is why do i have to power the board with external source and how can i power it only using stlink debugger.

    This topic has been closed for replies.
    Best answer by STTwo-32

    You can take a look at this video. It should help you.

    Best Regards.

    STTwo-32 

    2 replies

    Super User
    February 24, 2024

    Most debuggers do not provide power. If the board isn't powered, you can't debug it, so it needs to be powered externally. What debugger are you using? Please be specific.

    The on-board ST-link chip could also be causing issues as that board isn't designed to be programmed with an external debugger.

     

    AhmetpAuthor
    Visitor II
    February 25, 2024

    I use stlink v2 mini for debugging. So which pins should i also supply with Vcc in order to program it while only debugger connected to the pc ?  

    Technical Moderator
    February 24, 2024

    Günaydın @Ahmetp 

    According to the section 6.2 of the UM1472: 

    "The power supply is provided either by the host PC through the USB cable, or by an external 5 V power supply. 5V can be used as input power supplies, for instance when the USB connector is not connected to the PC. In this case, the STM32F4DISCOVERY board must be powered by a power supply unit or by auxiliary equipment complying with standard EN-60950-1: 2006+A11/2009, and must be Safety Extra Low Voltage (SELV) with limited power capability".

    Best Regards.

    STTwo-32 

    AhmetpAuthor
    Visitor II
    February 25, 2024

    So which pins should i also supply with Vcc in order to program it while only debugger connected to the pc ?  

    STTwo-32Answer
    Technical Moderator
    February 25, 2024

    You can take a look at this video. It should help you.

    Best Regards.

    STTwo-32