The STM32F4-Discovery board is a great little board that ST Micro is literally giving away. It features a Cortex-M4 MCU, with: a 3-axis accelerometer, omni-directional digital microphone, audio DAC with integrated class D speaker driver, and all 100 pins broken out to headers.
You can get a Linux or Mac OS X toolchain up and running quickly with eden’s summon-arm-toolchain.
Initially I had trouble compiling the stlink source on Ubuntu, I ended up placing -lusb-1.0 as the last of the linker options.
I have forked texane’s project on github https://github.com/csamuelson/stlink if you need the fix to compile. I also submitted a pull request to texane for the change, and I will update this post if/when the Makefiles are updated. This has been fixed in github.com/texane/stlink.
Here is a quick rundown of what you’ll need to do to get up and running quickly on Oneiric Ocelot:
$ sudo apt-get install flex bison libgmp3-dev libmpfr-dev libncurses5-dev
libmpc-dev autoconf texinfo build-essential libftdi-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-dev
$ git clone https://github.com/texane/stlink.git
$ cd stlink
Then, try out one of the examples, in one terminal start the connection to the board…
$ cd stlink/
$ sudo ./gdbserver/st-util fu bar
In another terminal, start by compiling the example…
$ EXPORT PATH=~/sat/bin:$PATH
$ cd stlink/examples/blink
$ make CONFIG_STM32F4_DISCOVERY=1
Then connect to the debugger and try it out…
(gdb) target extended localhost:4242
(gdb) load blink.elf