Dejan Levec

STM32F4 Discovery board

I bought STM32F4 Discovery board from Farnell two months ago, but I got to it only two days ago. After testing some examples and trying to interface with ENC28J60 Ethernet Controller, I quiclky found out, that free versions of development tools cannot build executables bigger than 32KB. So I decided to install toolchain on Ubuntu 12.04.

I found installation procedure for 11.04 at http://cu.rious.org/make/stm32f4-discovery-board-with-linux/, but some things have changed since than, so here is installation guide for latest Ubuntu version:

$ sudo apt-get install flex bison libgmp-dev libmpfr-dev libncurses5-dev libmpc-dev autoconf texinfo build-essential libftdi-dev zlibc libmpc-dev
$ git clone https://github.com/esden/summon-arm-toolchain.git
$ cd summon-arm-toolchain
$ sudo ./summon-arm-toolchain
$ cd ..
$ sudo apt-get install libsgutils2-dev libusb-1.0-0-dev
$ git clone https://github.com/texane/stlink.git
$ cd stlink
$ ./autogen.sh
$ ./configure
$ make

More info about using ChibiOS on it:
http://recursive-labs.com/blog/2012/05/07/stm32f4discovery-chibios-linux/
http://www.chibios.org/dokuwiki/doku.php?id=chibios:articles:stm32f4_discovery

My first project? Internet radio player. More about it soon.

Leave a Reply

Your email address will not be published. Required fields are marked *