CodeSourcery/STM32 (Lanchon 1-Feb-2008)
This is an STM32 build environment for CodeSourcery arm-2007q3-53-arm-none-eabi.
The GCC version of the STM32F10x Firmware Library 1.0 (10/08/2007) is included
in full and unchanged. Startup code is taken form this library. Linker scripts
are taken from the RAISONANCE RKitARM for RIDE7 1.03.0004. The scripts have notes
permitting use: "Copyright RAISONANCE 2007. You can use, modify and distribute
this file freely, but without any warranty." We should all be thankful to them.
Please consider RAISONANCE's RIDE7 if you need an advanced IDE.
Included is a demo project that flashes a led connected to PC12 (ready to run on
an Olimex STM32-H103 board). To build it change to the project directory and use
the make tool that came with CodeSourcery:
cs-make to build the firmware library and the main application
cs-make -B to force a complete rebuild
cs-make clean to delete all previously built object files
cs-make flash to flash an STM32 after building via JTAG using OpenOCD
Configuration is done through these files:
makefile build options (optimization, etc)
stm32.ld target memory size and type
stm32f10x_conf.h firmware library configuration
stm32f10x_it.c interrupt handlers
jtag/flash.cfg OpenOCD configuration (JTAG dongle, etc)
To flash you need OpenOCD installed. See openocd.berlios.de (or www.yagarto.de
for a win32 port).
Retrieving data ...