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:
Then install the Chibios plugin for Eclipse
Also install the XML editor to allow editing of the board config file
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:
To generate the board files select the .chcfg file in the browser and click the following button in the toolbar:
The console should display something like this: