cancel
Showing results for 
Search instead for 
Did you mean: 

Open source tools for the STM32

lanchon
Associate III
Posted on September 19, 2009 at 01:43

Open source tools for the STM32

66 REPLIES 66
mcatudal
Associate II
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
Associate II
Posted on May 17, 2011 at 12:17

''I would use Eclipse based tools only as a last resort and rather pay [more] for a faster, lighter IDE.''

Me too thats why I am trying to get Programmers Notepad 2 setup, and also Code::Blocks. Code::Blocks is also win+linux so thats nice.

But my(lanchon) cs linker scripts are weird. My uart demo works, but my lcd one does not. Using the same source code compiled in Ride7(internal linkers) works. Same hw for both. lcd is a h44780.

How on earth does anyone decipher linker scripts?

Thanks.

jmrobert5
Associate II
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.

tiagomesser
Associate II
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
Associate II
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 ]

domen23
Associate II
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.

Gawie
Associate II
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

 

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

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

mva
Associate II
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.