Skip to main content
lanchon
Associate III
September 18, 2009
Question

Open source tools for the STM32

  • September 18, 2009
  • 66 replies
  • 13977 views
Posted on September 19, 2009 at 01:43

Open source tools for the STM32

    This topic has been closed for replies.

    66 replies

    mcatudal
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:17

    Robert,

    > I m not clear whether the OP is running his tools on Linux or Windows.

    I went to the download page. It is an exe file and I doubt that it is OS/2 so it must be windows.

    > I would use Eclipse based tools only as a last resort and rather pay

    > [more] for a faster, lighter IDE.

    You could use setedit, it is free.

    Michel

    jmrobert5
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:17

    I found a good, basic example from a nice person who posted their complete package online. He/she was also nice enough to setup for Programmers Notepad2, Eclipse and some other IDEs. And he uses the STM peripheral lib with only 1-2 mods as it comes from STM (so easy updates).

    His makefile needs study, as the source (my source) needs to move over to another subdir.

    But the compile and link works for my board. woohoo!

    My Board:

    http://www.futurlec.com/STM32_Development_Board.shtml

    Demo Package:

    http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/arm_memcards/index.html#stm32_memcard

    Compiler: CodeSourcery G++ Lite

    http://www.codesourcery.com/sgpp/lite/arm/portal/release830

    Setup is simple, Install CodeSourcery. Install demo package. Use console and 'cs-make' to build.

    The nice part is editing defines for different boards/parts is easy.

    Updating the Stm-Periphery Library is easy.

    Projects for eclipse, programmers notepad are already present.

    Thanks to all the original authors for their hard work.

    motopic

    [ This message was edited by: jmrobert5 on 21-09-2009 15:39 ]

    tiagomesser
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:17

    Hi jmrobert5,

    I´m using Stefano Oliveri's linker script.

    You'll be able to find more information about his project on his website:

    http://developers.stf12.net/eclipse-demo

    It is a demo porting the FreeRTOS to stm32.

    I did use the FreeRTOS stuff, but I used the linker script and init files and they worked just fine.

    One thing that must be noted. Things like adding and removing archives to be compiled at Makefile of his example project must be configured by the developer.

    Hope it helps.

    Cheers Brother,

    jmrobert5
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:17

    Seems no one knows?

    I got the latest stm32 peripheral firmware and have been trying to build my lcd demo using it and the tips in the help file. I used the startup.s and have been tweaking the ld script to get it to build. It builds and links, but does not run. I think I need to examine and compare map files, and startups???

    Another question is this: is lanchons approach the only one that works? Or is my simpler startup.s and a single ld script workable with the periphery firmware and C (not c++) ???

    Does every single person use a commercial compiler? I cannot find anyone using gcc with simple configuration scripts and a makefile. All google searches point back to lanchons 2 year old setup.

    Thanks for reading.

    mva
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:17

    mva
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:17

    Gawie
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:17

    Hi

    Have a look at: 

    http://www.state-machine.com/arm/index.php 

    Miro Samek list all the components of his ''carefully selected'' open source tools for ARM-Cortex. I haven't used it yet, but this would be my starting point.

    Good luck.

    Gawie

     

    domen23
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 12:17

    openocd crashes? Which version, you know 0.4.0 is out, and they're doing a lot of work on it.

    For the toolchain, binaries on codesourcery are an easy way. You just download, unpack, set path.

    mva
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:17

    Also found this but didn't try it yet:

    http://opensource.zylin.com/gccbinary.html

    mva
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 12:17

    http://www.state-machine.com/arm/index.php 

     

    Ok, thanks. I didn't see that one yet.