Skip to main content
Cedric Boudinet
Associate III
March 3, 2018
Solved

stlink upgrade on stm32vldiscovery

  • March 3, 2018
  • 3 replies
  • 3223 views
Posted on March 03, 2018 at 13:24

Hello

I would like to program a stm32vldiscovery from Linux.

Unfortunately, the board has a STLink V1 embedded. Is it possible to upgrade a STLink to STLink/V2?

Or is it possible to directly flash the board with an external STLink/V2?

Bests

Cedric

    This topic has been closed for replies.
    Best answer by Bogdan Golab
    188366CGIL6

    3 replies

    Bogdan Golab
    Lead
    March 3, 2018
    Posted on March 03, 2018 at 14:02

    No way. ST-LINK hardware limitation.

    Bogdan Golab
    Lead
    March 3, 2018
    Posted on March 03, 2018 at 14:06

    Frankly I meant st-link/v2-1 which gives nice features (Virtual COM, mass storage).

    The MCU for st-link seems to be the same for both v1 and v2.

    Tesla DeLorean
    Guru
    March 3, 2018
    Posted on March 03, 2018 at 14:38

    The F103 part supporting the ST-LINK does not support V2 functionality (smaller memory, less functionality).

    One could inject SWDIO/SWCLK via the Target side of the CN3 Jumper block. SB11 may need to be removed to disconnect the NRESET

    To be honest probably better choices available at this point, either via a Nucleo, or more modern STM32 parts.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Bogdan Golab
    Lead
    March 3, 2018
    Posted on March 03, 2018 at 14:48

    From the ST-LINK MCU perspective we have the following hw versions:

    st-link/v1 - STM32F103C8T6 (the flash does not fit v2-1 firmware)

    st-link/v2 - STM32F103C8T6 (the flash does not fit v2-1 firmware)

    st-link/v2-1 - STM32F103CBT6

    So the MCU for v1 and v2 seems to be the same, v2-1 has bigger flash MCU.

    There are other HW differences between the v1 and v2 but I have not studied them carefully.

    Cedric Boudinet
    Associate III
    March 5, 2018
    Posted on March 05, 2018 at 14:51

    I got a look to the schematics, the STM32F103C8T6 is not connected to the same signals in st-link/v1 and st-link/v2.

    Maybe that's why it is not possible to upgrade v1 to v2 in STLinkUpgrade.jar ?

    Andrew Neil
    Super User
    March 3, 2018
    Posted on March 03, 2018 at 16:36

    is it possible to directly flash the board with an external STLink/V2?

    Yes.

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    AvaTar
    Senior III
    March 5, 2018
    Posted on March 05, 2018 at 14:57

    I would go so far to recommend this explicitly.

    The ST-Link V1 was a totally messed-up implementation, that totally screwed up the Linux USB driver when it came out.

    Bogdan Golab
    Lead
    March 5, 2018
    Posted on March 05, 2018 at 15:00

    Agree. That's why I rejected the idea as well. I like STM32VLDiscovery boards because of their compactness, and onboard 8MHz xtal.