CodeSourcery/STM32 (by Lanchon, 01-Mar-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
changes.

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

Basic Eclipse support is also included (no debugging). It requires Eclipse and
the C/C++ Development Tools (http://www.eclipse.org/downloads/moreinfo/c.php).
To flash in Eclipse select your project, choose Project/Make Target/Build... and
select the Flash target. Or you can configure a toolbar button in the workspace:
choose Run/External Tools/Open External Tools Dialog... and create a new item
under Program with these values:

    Name:                 Flash
    Location:             ${system_path:cs-make}
    Working Directory:    ${project_loc}
    Arguments:            flash

Then choose Run/External Tools/Organize Favorites... and add Flash to Favorites.

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.

Lanchon
