2010-10-04 01:53 PM - last edited on 2023-06-16 10:11 AM by Amel NASRI
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
2010-01-01 09:45 PM
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
2010-01-02 08:32 AM
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 /Bingo2010-01-02 12:58 PM
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 /Bingo2010-01-02 02:48 PM
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 :)
2010-10-12 07:52 AM
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.
2010-12-12 09:02 AM
+1
2010-12-31 05:35 AM
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 /Bingo2011-01-03 08:24 AM
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 /Bingo2011-01-19 01:42 AM
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.