cube2chibi - convert STM32 CubeMX project to board.chcfg
Posted: Fri Oct 14, 2016 7:25 pm
Hi,
I created (another) script to convert from a STM32 CubeMX project (*.ioc) to the ChibiOS board file configuration file (*.chcfg).
It updates board.chcfg the following:
- templates path
- HSE/LSE clocks
- VDD
- ports / pins
One nice feature is that you don't need to search trough the datasheet after the alternate function number
I run the script with *.ioc found in the STM32CubeMX folder and it works.
The flow of the script is:
- Can't yet recognize the alternate function for the STM32F1xx family
TODO:
- Convert CubeMX IPs settings to ChibiOS IPs config
The script can be found here: https://github.com/cburlacu/cube2chibi
Suggestions / issues / patches / forks / pull requests are welcome
(Python is not my native language )
I created (another) script to convert from a STM32 CubeMX project (*.ioc) to the ChibiOS board file configuration file (*.chcfg).
It updates board.chcfg the following:
- templates path
- HSE/LSE clocks
- VDD
- ports / pins
One nice feature is that you don't need to search trough the datasheet after the alternate function number
I run the script with *.ioc found in the STM32CubeMX folder and it works.
The flow of the script is:
- Parse .ioc file and create a dictionary
- Find MCU part number in the dictionary
- Parse db/mcu/families.xml and find the MCU's xml description file
- Parse the MCU xml description file
- Parse the MCU GPIO xml
- Update MCU properties from the dictionary
- Mix the information with the existing chibi config file if provided
- Save new chibi config file
- Can't yet recognize the alternate function for the STM32F1xx family
TODO:
- Convert CubeMX IPs settings to ChibiOS IPs config
The script can be found here: https://github.com/cburlacu/cube2chibi
Suggestions / issues / patches / forks / pull requests are welcome
(Python is not my native language )