cancel
Showing results for 
Search instead for 
Did you mean: 

CodeSourcery STM32 build environment

lanchon
Associate II
Posted on March 20, 2008 at 08:42

CodeSourcery STM32 build environment

5 REPLIES 5
bnewbold
Associate II
Posted on May 17, 2011 at 12:22

Which, as far as I can tell, is now at

https://my.st.com/public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/ARM CortexM3 STM32/STM32 CC%2B%2B build environment using CodeSourcery Sourcery G%2B%2B&currentviews=18152

after a URL scheme change

lanchon
Associate II
Posted on May 17, 2011 at 12:22

Here's an open and ready to use build environment for the STM32. Enjoy!

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).

Cheers!

[ This message was edited by: lanchon on 01-02-2008 09:22 ]

lanchon
Associate II
Posted on May 17, 2011 at 12:22

I touched the makefile today, now it has better build options and the firmware library is built with different options than the rest of the app. (I never use make so somebody should take a look.)

lanchon
Associate II
Posted on May 17, 2011 at 12:22

I just found out that some people continue to use this and are having trouble.

to make it clear: this was deprecated in favor of

http://www.st.com/mcu/forums-cat-6445-23.html

.

damh
Associate II