This is my example code for the STM32F0 Discovers using the RTOS ChibiOS.
- Chibios 2.5.0+ (or a recent development snapshot)
- arm toolchain (e.g. arm-none-eabi from summon-arm)
- background blinker thread
- lis302dl acceleration measurement
- edit the Makefile and point "CHIBIOS = ../../chibios" to your ChibiOS folder
- make
- connect the STM32F0 Discovery with TTL/RS232 adapter, PA2(TX) and PA3(RX) are routed to USART2 38400-8-N-1.
- connect lis302dl to portB 12-15 pins.
- flash the STM32F0
- use your favorite terminal programm to connect to the Serial Port 38400-8n1