Skip to main content
Visitor II
October 4, 2010
Question

ST-Link Linux Driver

  • October 4, 2010
  • 11 replies
  • 11190 views

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

    This topic has been closed for replies.

    11 replies

    Visitor II
    January 2, 2010
    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

    Visitor II
    January 2, 2010
    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

    Visitor II
    January 2, 2010
    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

    Visitor II
    January 2, 2010
    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 :)

    Visitor II
    October 12, 2010
    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.

    Visitor II
    December 12, 2010
    Posted on December 12, 2010 at 18:02

    +1

    Visitor II
    December 31, 2010
    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

    Visitor II
    January 3, 2011
    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

    Visitor II
    January 19, 2011
    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

    Visitor II
    July 4, 2012
    Posted on July 04, 2012 at 10:16

    STLink support is available in OpenOCD now, this works with STLINK/V1, STLINK/V2 and the various discovery boards.

    http://openocd.sourceforge.net/

    Spen