Hi,
I created a web based hardware configuration tool for ChibiOS: https://github.com/ceremcem/chibios-configurator
UX idea is simple:
1. Select your MCU
2. Configure pins via clicks, dropdowns, sliders, buttons.
3. Download the hardware definition files
It's currently in alpha stage. I'm using my STM32F030F4P6 MCU board for development.
If there are volunteers for helping, I need:
* UX feedbacks (like, "We should select "this" from dropdown, enter the value via a slider, select that by radio buttons", etc.)
* Test configurations: "In order this application to work on that MCU, hardware configuration must be as follows: ..."
Any feedbacks are welcome.
Web tool for ChibiOS Configuration
- Giovanni
- Site Admin
- Posts: 14563
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1111 times
- Been thanked: 937 times
- Contact:
Re: Web tool for ChibiOS Configuration
Hi,
It looks like an awful amount of work there, good job.
When I try to download a configuration it gives me an error, what kind of files should it generate?
Giovanni
It looks like an awful amount of work there, good job.
When I try to download a configuration it gives me an error, what kind of files should it generate?
Giovanni
Re: Web tool for ChibiOS Configuration
I caught the exception that caused by a "null configuration" feed. I just fixed it.
While fixing, I remembered a very important detail: Since I couldn't find a way to extract Alternate Function definitions from CubeMX database (here is the question on my.st.com) I had to manually create the Alternate Function table (see servers/stm/af-mappings) and currently there is only for STM32F030x4.
That's why you currently need to select STM32F030x4 or open an issue and I'll create an appropriate JSON file for that MCU. (Giovanni, if you point me a way to extract the AF definitions from somewhere, I would appreciate that.)
Example Use Case
1. Name your board within "Board Name" input.
2. Click "Get MCU's" button to fetch all defined MCU's.
3. Select your desired MCU (STM32F030x4 currently)
4. Configure some pins by clicking the buttons on Pin# column and select appropriate mode via dropdowns.
5. Click "Download" button.
It will generate board.c, board.h, chconf.h, halconf.h; regarding to this template.
While fixing, I remembered a very important detail: Since I couldn't find a way to extract Alternate Function definitions from CubeMX database (here is the question on my.st.com) I had to manually create the Alternate Function table (see servers/stm/af-mappings) and currently there is only for STM32F030x4.
That's why you currently need to select STM32F030x4 or open an issue and I'll create an appropriate JSON file for that MCU. (Giovanni, if you point me a way to extract the AF definitions from somewhere, I would appreciate that.)
Example Use Case
1. Name your board within "Board Name" input.
2. Click "Get MCU's" button to fetch all defined MCU's.
3. Select your desired MCU (STM32F030x4 currently)
4. Configure some pins by clicking the buttons on Pin# column and select appropriate mode via dropdowns.
5. Click "Download" button.
Giovanni wrote:what kind of files should it generate?
It will generate board.c, board.h, chconf.h, halconf.h; regarding to this template.
- Giovanni
- Site Admin
- Posts: 14563
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1111 times
- Been thanked: 937 times
- Contact:
Re: Web tool for ChibiOS Configuration
Hi,
The problem I can see is that board and configuration files change over time, this will create a tool update problem for you.
Giovanni
The problem I can see is that board and configuration files change over time, this will create a tool update problem for you.
Giovanni
Re: Web tool for ChibiOS Configuration
Giovanni wrote:Hi,
The problem I can see is that board and configuration files change over time, this will create a tool update problem for you.
Giovanni
Actually that's exactly my point!

The generated configuration file (the JSON file) won't change over time because it only describes the user's intention. So, when a user wants to update his or her project, s/he will upload the config.json, select the desired ChibiOS version and download the new version.
That setup will take time and energy, but I think it's definitely going to worth it.
- Giovanni
- Site Admin
- Posts: 14563
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1111 times
- Been thanked: 937 times
- Contact:
Re: Web tool for ChibiOS Configuration
Note that for board files you could generate the .chcfg file and use the ChibiOS generator for actual output, that is always aligned.
Giovanni
Giovanni
Re: Web tool for ChibiOS Configuration
Nice tool!
Just a note, when downloading the zip, it seems that my browser (Firefox) thinks it is a plain text document and try to open the zip in text editor... Maybe a MIME type issue?
Just a note, when downloading the zip, it seems that my browser (Firefox) thinks it is a plain text document and try to open the zip in text editor... Maybe a MIME type issue?
Re: Web tool for ChibiOS Configuration
rreignier wrote:Nice tool!
Just a note, when downloading the zip, it seems that my browser (Firefox) thinks it is a plain text document and try to open the zip in text editor... Maybe a MIME type issue?
Yes, that was a MIME type issue. Fixed, thanks.
Who is online
Users browsing this forum: No registered users and 2 guests