For my research designing data loggers for biologists studying songbirds I build a lot of custom "boards" (tags). A typical tag is 0.5g and goes a year on a 5.5mAh battery that is included in the 0.5g. I used quotes around "boards" because many of these are development designs to test specific sensors or memories -- I have a sort of nucleo base (processor + custom stlink + current sensing interface) that accepts daughter cards for prototyping. Each iteration is a new board because pins change etc.
Rather than editing demo board files, I leveraged the fmpp framework that Chibios provides, but extended it somewhat. The basic chibios framework takes an xml file defining pin names and configurations. I extended this to also take an optional Pull Up/Down value for configuring the low power modes. I had codex write a tool that pulls in the board template files from chibios, merge my custom xml, and generate the usual board.c, board.h, and also a board_standby.h file that defines pulls for low power modes.
I should also say that all my software builds are orchestrated by cmake, so this tool is integrated into cmake. You can see the code and documentation here:
https://github.com/tag-designs/software ... ards/tools
Geoffrey
generating board files
-
geoffrey.brown
- Posts: 122
- Joined: Thu May 07, 2015 9:47 pm
- Has thanked: 3 times
- Been thanked: 18 times
- Giovanni
- Site Admin
- Posts: 14891
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: generating board files
Hi,
Those kind of things are better submitted as Pull Requests, our internal process is moving here: https://github.com/chibios-upstream/chibios
Giovanni
Those kind of things are better submitted as Pull Requests, our internal process is moving here: https://github.com/chibios-upstream/chibios
Giovanni
-
geoffrey.brown
- Posts: 122
- Joined: Thu May 07, 2015 9:47 pm
- Has thanked: 3 times
- Been thanked: 18 times
Re: generating board files
I hadn't really thought in terms of a pull request. What would be the appropriate place within the ChibiOS directory structure?
Geoffrey
Geoffrey
- Giovanni
- Site Admin
- Posts: 14891
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times