CodeSourcery/STM32 (by Lanchon, 25-Feb-2008)
This is a C/C++ build environment for the STM32 using CodeSourcery Sourcery G++
(arm-none-eabi). It has been tested with:
Sourcery G++ Lite 2007q3-53
Sourcery G++ 4.2-84
The JTAG flash programming support requires OpenOCD r320 (23-Feb-2008) or later
(openocd.berlios.de, or www.yagarto.de for a win32 port). The GCC version of the
STM32F10x Firmware Library 1.0 (08-Oct-2007) is included with minor documented
Linker scripts, startup and exception support files were made by me. They were
based on a detailed analysis of how Sourcery G++ handles other targets, and they
are fully compatible with CodeSourcery's CS3 framework.
A demo project that flashes a led connected to PC12 is included. It is ready to
run on an Olimex STM32-H103 board (http://www.olimex.com/dev/stm32-h103.html).
The OpenOCD configuration files are ready to flash via an Olimex ARM-USB-TINY
JTAG dongle (http://www.olimex.com/dev/arm-usb-tiny.html).
To build the demo, change to the project directory and use the make tool that
came with Sourcery G++:
cs-make to build the firmware library and the demo
cs-make -B to force a complete rebuild
cs-make clean to delete all previously built files
cs-make flash to flash an STM32 after building using OpenOCD
Some files are copyright CodeSourcery and are licensed under a very permissive
license (see the initial comments in each file). The rest were written by me,
and I place them all in the public domain.
GDB (the one included in the codesourcery toolchain) could connect with a "target remote localhost:3333", which would stop the app from running. Entering 'continue' would make it continue, but gdb became unresponsive, and did not return a '(gdb)' prompt after the continue command.
Retrieving data ...