Getting started

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
rea5245
Posts: 2
Joined: Sun Mar 25, 2012 10:49 pm

Getting started

Post by rea5245 »

Hi,

I've made a custom ARM board (based on the STM32F100C6), I'm using Crossworks, and I want to start using ChibiOS. I'm looking for some help getting my first project going.

There are demo projects, but they use different boards and different IDEs. Is there any guide for getting a ChibiOS project up and running from scratch?

Crossworks' project wizard offers the choice of creating a static library. Once I have a project working, it seems sensible to compile ChibiOS into a static library that can be easily linked into future STM32 projects. Is there any reason this wouldn't work (e.g. ChibiOS needs to be compiled with the same settings that the main code is)?

Thanks,
Bob
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Getting started

Post by Giovanni »

Hi Bob,

Porting ChibiOS to a new board is very simple, you just have to create the "board files" under ./board and refer them from your project Makefile. Take the board files from a similar board then modify them to setup the initial state of all I/O pins. In your case you could start from the files of the STM32VL-Discovery board.

A nice guide can be found here: http://snowcap.fi/blog/2011/12/05/setti ... s-project/

Of course in the ChibiOS documentation page there are several articles that can help but I assume you already saw them.

About building a static library, it is possible but once you create the library you cannot configure the system anymore and ChibiOS has lots of compile-time settings, see the various files chconf.h, halconf.h, mcuconf.h.

About crosswork, you don't need to create a new project, you can import a Makefile project under Eclipse, I assume it is possible to do that in crosswork too. See the articles regarding Eclipse in the documentation section of the web site.

Giovanni
rea5245
Posts: 2
Joined: Sun Mar 25, 2012 10:49 pm

Re: Getting started

Post by rea5245 »

Thank you, Giovanni.

- Bob
Post Reply