cancel
Showing results for 
Search instead for 
Did you mean: 

stlink upgrade on stm32vldiscovery

Cedric Boudinet
Associate III
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

1 ACCEPTED SOLUTION

Accepted Solutions
12 REPLIES 12
Posted on March 03, 2018 at 14:02

No way. ST-LINK hardware limitation.

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
Up vote any posts that you find helpful, it shows what's working..
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.

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.

Andrew Neil
Evangelist
Posted on March 03, 2018 at 16:36

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

Yes.

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 ?

Posted on March 05, 2018 at 14:57

I  think it's not possible without additional PCB hacking. The MCU jest ok. I gave up ( I have a few boards).

On the other hands v2-1 really matters I guess. v2 has not Virtual COM for example.

Why do you need v2?

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.

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.