Skip to content

Latest commit

 

History

History

update

stm32variant

By default, generates:

  • PeripheralPins.c
  • PinNamesVar.h
  • variant_generic.cpp
  • variant_generic.h
  • boards_entry.txt
  • generic_clock.c

for all xml files description available in STM32CubeMX internal database. Internal database path have to be defined in variant_config.json. It can be the one from STM32CubeMX directory if defined or the one from GitHub:

https://github.com/STMicroelectronics/STM32_open_pin_data

After file generation, review them carefully and please report any issue here.

Usage:

python genpinmap_arduino.py [-h] [-l | -m xml]

Optional arguments:

-h, --help        Show this help message and exit
-l, --list        List available xml files description in database
-f name, --family name  Generate all files for specified mcu family.
-c, --cube        Use STM32CubeMX internal database. Default use GitHub STM32_open_pin_data repository.
-s, --skip        Skip STM32_open_pin_data clone/fetch

All generated files are available under ./variants/<mcu_serie>/<mcu_names> directory