cancel
Showing results for 
Search instead for 
Did you mean: 

ST-Link Linux Driver

soundreamer
Associate

Posted on October 04, 2010 at 22:53

 

 

 

Is there any chance for us Linux users to get a linux kernel module to enable us to use ST-Link in Linux? A ST-Link Utility linux version would also be very practic!

 

 

#stlink #linux #openocd #st-link

11 REPLIES 11
jepjoh2
Associate II
Posted on January 02, 2011 at 06:45

Very interesting!

Does that firmware allow debugging too? 

I have just figured out the DFU capabilities of the ST-Link with STLinkUSBDriver.dll, making it possible to put a new firmware on an unmodified ST-Link device, and saving the old image without physical modifications

stm2399
Associate II
Posted on January 02, 2011 at 17:32

Simon is expecting OOCD to be stable within a few days , meaning that OOCD (OpenOCD) will function with versaloon again , and yes OOCD has a GDB server.

So firmware debugging under linux is possible

/Bingo

stm2399
Associate II
Posted on January 02, 2011 at 21:58

Simon just guided me through compiling a more stable version of OpenOCD

Now OpenOCD works , and so should GDB

http://www.versaloon.com/bbs/viewtopic.php?p=63#p63

/Bingo

jepjoh2
Associate II
Posted on January 02, 2011 at 23:48

Is it possible to update the firmware of the debugger through vsprog once it has been dumped on the STM32VL with the version you posted in the previous post? I mean, does it have bootloader functionality?

I don't have any tools handy to reprogram the debugger in hardware, so I think I'll only have one shot at loading the versaloon firmware using the DFU method :)

gw
Associate II
Posted on October 12, 2010 at 16:52

I'd also like to express my wish for Linux support... Or at least a freely available spec so that someone can implement a tool.

If ST-LINK_gdbserver.exe were ported to use libusb, it could support Linux, Mac and Windows all at once. Microchip's provided a tool for PicKit2 for years - why can't ST?

I can't help but feel that a reasonably large proportion of developers are Linux users, and it seems strange to have so far completely ignored them.

infoinfo975
Associate
Posted on December 12, 2010 at 18:02

+1

stm2399
Associate II
Posted on December 31, 2010 at 14:35

Not excactly a Linux port of ST-Link

How about Versaloon ported to run on the JTAG part of the STM8S or the STM32VL.

I just ported versaloon (SWD only) to the above board , and now i can program my STM32VL - value-line chip , on Ubuntu 10.04.

Using just the STM32VL  USB cable & versaloon vsprog

See

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

/Bingo

stm2399
Associate II
Posted on January 03, 2011 at 17:24

No there is no ''Bootloader/DFU'' capabilities at the moment.

Or let me rephrase that ... The files i build loads at 0x8000000 , meaning it will conflict with any bootloader present.

The program has to be put in by SWD for a STM32VL , and by JTAG or SWD for a STM8S.

But i'd expect the builtin Serial Bootloader could also be used , for loading the program into the USB-ARM (But it requires you to solder wires to UART1 pins).

As i just got OOCD to function i'll try to use a ''Converted'' STM32VL as SWD programmer for a ''virgin'' STM32VL , but i don't have time right now.

I have now tested that a STM8S converted to Versaloon , can convert a ''Virgin'' STM8S to Versaloon via SWD.

http://www.versaloon.com/bbs/viewtopic.php?p=78#p78

And i think another guy , just converted a STM32VL to Versaloon , using a ''Virgin'' STM32VL , and the Windows ST-Link Programmer software.

http://www.versaloon.com/bbs/viewtopic.php?p=87#p87

/Bingo

vender007
Associate II
Posted on January 19, 2011 at 10:42

Development is underway for ST-Link support in linux.

Here is a Access test program for ST-Link from Linux.

follow the links on the page for more information.

http://capitanio.org/mlink/stlink-access-test-04.tgz

http://capitanio.org/mlink/index.html