Skip to content

A converter from STM32 Cube MX project file to chibi board config file.

Notifications You must be signed in to change notification settings

cburlacu/cube2chibi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

  • STM32CubeMX
  • python
  • python-lxml

Usage

The script can be used as:

python cube2chibi.py   \
        --ioc <cube MX project>  \
        --cube <STM32CubeMX Path>  \ 
        --chibi <initial chibi config file>  \
        --output <chibi config file output>
where:  
    - <cube MX project> - The file to convert  
    - <STM32CubeMX Path> - The STM32CubeMX installation folder  
    - <initial chibi config file> - The original chibi board config file - if this file  
                                    is provided, information from this file will be merged  
                                    with cube MX project file  
    - <chibi config file output> - The result file: chibi board config file  

Flow

  1. Parse .ioc file as a dictionary
  2. Find MCU part number in the dictionary
  3. Open db/mcu/families.xml and find the file were we can find the file where the information about the MCU is located
  4. Open the MCU xml description file
  5. Load the MCU information: GPIO for the moment
  6. Update MCU properties from the dictionary
  7. Mix the information with the existing chibi config file if provided
  8. Save chibi config file

TODO:

  1. Fix all default properties of GPIOs

About

A converter from STM32 Cube MX project file to chibi board config file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published