Chibios Board Generator

Producing board files for a new board to use with ChibiOS can be a cumbersome process. ChibiStudio features an Eclipse plugin that makes this process much easier.

Firstly Install Eclipse CDT.

Manual Eclipse plugin install

Windows users can use ChibiStudio which has these plugins installed by default, but it is also possible to manually install the plugin on Eclipse running on Linux/Mac.

In Eclipse go to Help > Install New Software. Add a new repository:

http://www.chibios.org/eclipse/chibistudio/

chibi_studio_repo

Then install the Chibios plugin for Eclipse

plugin

 

Also install the XML editor to allow editing of the board config file

xml

Board config editing + generation

Create a folder for the board with a subfolder called cfg/. Copy a sample .chcfg board file from a similar board from the ChibiOS boards directory to use as the base.

Open the .chcfg board file in Eclipse (make sure it opens with the XML editor) and make the necessary changes. Some aspects of modifying the board such as setting pin names are easier to perform using a text editor, but the XML editor is handy for setting pin functions:

Screen Shot 2014-05-10 at 19.37.05

To generate the board files select the .chcfg file in the browser and click the following button in the toolbar:

Screen Shot 2014-05-10 at 19.34.08

The console should display something like this:

Screen Shot 2014-05-10 at 19.36.38

Job done!