Skip to main content
lanchon
Associate III
Sep 18, 2009 11:43 PM UTC
Question

Open source tools for the STM32

Posted on September 19, 2009 at 01:43

Open source tools for the STM32

    This topic has been closed for replies.

    66 replies

    lukas239955_stm1_stmicro
    Associate
    May 17, 2011 10:17 AM UTC
    Posted on May 17, 2011 at 12:17

    Hello,

    since a view day i use following configuration

    * eclipse helios

    * GNU ARM Eclipse Plug-in (http://sourceforge.net/projects/gnuarmeclipse)

    * codesourcery g++ lite

    * startup file from std periph. lib (atollic)

    * linker script from an Atollic Project with the Atollic Truestudio Free Version produced

    * ST-LINK gdbserver from the Atollic Truestudio Free Version

    Greetings,

    Lukas
    tiago2
    Visitor II
    May 17, 2011 10:17 AM UTC
    Posted on May 17, 2011 at 12:17

    Does anyone have examples on how to setup an working toolchain?

    And with sources for the lib files and whatever is needed?

    stm32forum
    Associate III
    Aug 30, 2011 1:08 PM UTC
    Posted on August 30, 2011 at 15:08

    Lukas, some hints how you did that and like to share with us.

    munk2k
    Associate
    Aug 30, 2011 1:36 PM UTC
    Posted on August 30, 2011 at 15:36

    Hi all,

    I also had this predicament a few months ago, how to get a tool-chain setup to write to the STM32 without investing in an expensive IDE and a j-tag.

    The solution i came to, and am still using is to use the codesourcery compiler on eclipse. Then a serial bootloader to load it onto the stm32. Eclipse is all set up to create its own makefile so its frankly a doddle to compile and write code. Also its easy to change the compiler flags within eclipse without having to know a large amount about the compiler itself. (which i dont..)

    I currently have no way of doing code stepping but once you set up USART it makes debugging much much easier. 

    I am using Linux to run all of this but im 90% sure that its all portable to Windows as well, the only thing im not so sure about is the bootloader but the compiler and eclipse certainly work on windows.

    I am aware of someone who is currently writing a very detailed and helpful ''walkthough'' on how to get this toolchain set up using only open source software. It was the draft of this that i used to set up my own machine.

    I could post the completed version (with his permission) on here once its done and in the mean time i dont mind helping some people with the set-up if they wish.

    Darren.

    infoinfo988
    Associate II
    Sep 1, 2011 12:23 PM UTC
    Posted on September 01, 2011 at 14:23

    Hi,

    Here is a guide from Omnima that outlines how GCC ARM can be used to develop on Linux and Mac OS X as well as Windows.

    There is also a section documenting the steps on setting up a GDB server using the ST-Link SWD interface on the STM32VL-Discovery board and runs natively on Linux and Mac OS X.

    SWD seems a much simpler protocol than JTAG in terms of connection to the target requiring only 3 wires and a direct 1-1 connection. All tools are fully open source, no code size limits, no popups.

    The link to the PDF is

    http://www.omnima.co.uk/forums/index.php?act=attach&type=post&id=147

    .

    pascal239955_stm1
    Visitor II
    Oct 2, 2011 4:21 PM UTC
    Posted on October 02, 2011 at 18:21

    ColdWeather
    Senior
    Oct 3, 2011 6:18 PM UTC
    Posted on October 03, 2011 at 20:18

    Take a look at

    http://www.coocox.org/

    .

    Andrew Neil
    Super User
    Oct 4, 2011 6:28 AM UTC
    Posted on October 04, 2011 at 08:28

    ''Take a look at

    http://www.coocox.org/

    .''

    Is that a recommendation based on experience, or are you just noting that it exists?
    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    ColdWeather
    Senior
    Oct 4, 2011 9:17 PM UTC
    Posted on October 04, 2011 at 23:17

    That is not a recommendation but information to look at.

    For instance, it is listed

    http://www.energymicro.com/tools/third-party-ide-compiler

    .

    ramdabade
    Visitor II
    Jan 18, 2012 7:18 AM UTC
    Posted on January 18, 2012 at 08:18

    Hi,

    Could please explain/share the gdb stub for Cortex-M3?

    Thanks.