cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 VL Discovery - Linux and GNU Software - HOWTO

infoinfo968
Associate II
Posted on September 18, 2010 at 15:52

Hi. I am currently working on making the board work under Linux, utilising the Boot mode present in the STMF100RB and am blogging the results at 

http://gostm32.blogspot.com/

So far I have (with a lot of help from the WWW) figured out all the hardware and protocols to connect the board to any machine with a serial port and have a communicating board - you can read and write to it.

I know some people (including me) regretted the lack of O/S support for the STM8 board, so all the instructions are up there if anyone else wants to try it out, critique or comment on what I've done etc. please feel free to do so.

No changes to the board are required (no solder bridge removal) though I have hacked off the six pins at the bottom because it won't plug in my breadboard otherwise :(

I hope to have code running on it by Monday (tomorrow it's my birthday ....)

0690X000006037zQAA.jpg

Picture being worth 1000 words :)

#vsprog #gnu #swd #openocd #stlink #firmware #discovery-breadboard #openocd #gcc
12 REPLIES 12
qili
Associate II
Posted on September 18, 2010 at 21:24

Paul, that was nicely done.

keep it coming.

Nickname12657_O
Associate III
Posted on September 19, 2010 at 12:00

0690X0000060MniQAE.gif

Dear Paul,

I wish you Happy Birthday

0690X0000060MnjQAE.gif,

Cheers,

STOne-32

infoinfo968
Associate II
Posted on September 24, 2010 at 12:35

Hi. If anyone is following this, I've now uploaded a demo program which works (unlike so many ARM Demo programs .....). It doesn't do much other than flash the lights and respond to the button, but it is now a complete working toolset from source to MCU.

http://gostm32.blogspot.com/

zero
Associate
Posted on January 30, 2011 at 23:05

Hi,

I wrote an article about the available toolchains for the STM32VLDISCOVERY board.

Check it out here:

http://embeddednewbie.blogspot.com/2011/01/free-toolchains-for-stm32vldiscovery.html

donald2
Associate II
Posted on March 24, 2011 at 23:40

I put  stand-alone stlink-download program for Linux on Google Code.

I wrote this a few months ago when I couldn't find any working Linux-based tool to write the flash on the discovery board.  I went to some effort to make it not depend on any libraries except standard libc e.g. sgutils, or a specific IDE

Don Lewis
Associate II
Posted on June 16, 2011 at 04:51

Hi Donald,

  Thanks, I got it a couple days back. It does work. One thing,

code verification always returns true even with different code loaded

into stlink-download. Perhaps I have not yet found the proper way to use

the verify option.

Now I can use both my BeagleBoard, TI msp430 Launchpad's and

the stm32vld in my linux environment.

Don Lewis
Associate II
Posted on June 16, 2011 at 04:52

Paul, thank you for the tips on the rs-232 interface.

Don

Posted on July 10, 2011 at 19:31

''I have hacked off the six pins at the bottom because it won't plug in my breadboard otherwise :(''

Alternative arrangement - without having to chop those pesky pins: 

/d211a50f

colin239955
Associate II
Posted on July 11, 2011 at 19:52

After trying first to use the stock ST-Link interface on my STM32VLDISCOVERY boards from Linux with lots of frustration, I switched to the alternate Versaloon firmware for the ST-Link MCU on the Discovery board.

Now I can use the command line vsprog tool to quickly and reliably download code to flash and use OpenOCD+gdb+ddd for debugging alongside my CodeSourcery Lite toolchain.  It works fantastically!

Although it was some effort to get up and running because the Versaloon tools have been changing rapidly, you just need to ensure you match firmware and PC tool versions and you'll be good to go.  A couple of minor hardware mods to get running, and you'll be set.  You do need an external SWD programmer to initially get the boot loader onto the MCU, but after that you do everything over USB as normal.

-

http://www.versaloon.com/bbs/viewtopic.php?f=2&t=17

-

http://takenapart.com/?p=82