Skip to main content
shiva kumar
Associate II
June 16, 2018
Question

STM32F407G-DISC1 detecting as ST-LINK/V2-1

Posted on June 16, 2018 at 05:35

I connected my STM32F407G-DISC1 to the PC and when i opened the keil IDE and checked the debug adapter unit in the target settings. It was listed as ST-LINK/V2-1 but I see in the Discovery kit user manual that it is supposed to be ST-LINK/V2-A. How can I change this? Thank you!

    This topic has been closed for replies.

    10 replies

    Tesla DeLorean
    Guru
    June 16, 2018
    Posted on June 16, 2018 at 09:49

    Does it not program the board?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    shiva kumar
    Associate II
    June 17, 2018
    Posted on June 17, 2018 at 04:17

    It does program and debugging is also happening but I am not able to connect to the UART2 of the board via the stlink virtual com port. 

    Tesla DeLorean
    Guru
    June 17, 2018
    Posted on June 17, 2018 at 11:22

    The boards I've seen don't physically connect the VCP pins to anything

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    henry.dick
    Associate II
    June 17, 2018
    Posted on June 17, 2018 at 13:49

    '

    How can I change this?'

    1. see if you can upgrade to a firmware version that supports what you want to do. you will need to figure out if the uart pins on the target are routed to the correct stlink pins;

    2. pick a board that supports that. nucleo boards are nice in this regard.

    on a side note, some later discovery boards indeed support virtual comm ports, even if the manuals say that they don't.

    shiva kumar
    Associate II
    June 17, 2018
    Posted on June 17, 2018 at 14:32

    I updated the firmware and everything else that could be done i did. the stm32f407G-DISC1 stlink VCP connected to the UART2

    Tesla DeLorean
    Guru
    June 17, 2018
    Posted on June 17, 2018 at 16:35

    I don't think the ST-LINK VCP gets beyond the pins of the STM32F103 part, so you'd need to solder wires to pin. The STM32F4-DISC1 seems to have been a modification of the original DISCO version, but the designers only got half way through the process before ordering the boards.

    Unless there is something compelling about the STM32F4-DISC series boards you really need, look seriously at the NUCLEO-F429ZI board. The VCP works, and the shield USART pins don't conflict.

    As mentioned by dhenry there are other newer DISCO/NUCLEO boards providing mbed support and a functional VCP-USART connection.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..