2014-12-15

Back to firmware writing! STM32, can use Open Source Tools for that?

It looks like the answer is "YES"!

First step would be setting up the tools and environment.


I followed this video



Then make notes for my self:

GNU Tools for ARM Embedded Processors

https://launchpad.net/gcc-arm-embedded

Open terminal at toolchain bin directory, and:


$ pwd 
/media/9c04SSDp1/stm32/gcc-arm-none-eabi-4_9-2014q4/bin

$ echo PATH=$PATH:/media/9c04SSDp1/stm32/gcc-arm-none-eabi-4_9-2014q4/bin

$ echo PATH=$PATH:/media/9c04SSDp1/stm32/gcc-arm-none-eabi-4_9-2014q4/bin >> $HOME/.bashrc

$ source $HOME/.bashrc


$ ./arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20141119 (release) [ARM/embedded-4_9-branch revision 218278]
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Actually there is a better way!

 







Add your path, for example mane looks like this:


/media/9c04SSDp1/stm32/gcc-arm-none-eabi-4_9-2014q4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games




Also make shure:






Eclipse IDE for C/C++ Developers
http://www.eclipse.org/downloads/

Eclipse CDT extensions for GNU ARM development
http://gnuarmeclipse.livius.net/blog/plugins-install/

I made a "hello world" project, and it compiles! Nice!

Stm32 discovery line Linux programmer
https://github.com/texane/stlink


I don't have hardware yet, so I can not test the results.
To be continued...



No comments:

Post a Comment