mirror of https://github.com/ARMmbed/mbed-os.git
STM32 : script to generate PeripheralPins.c for new target addition
$ python genpinmap_mbed.py -h usage: genpinmap_mbed.py [-h] [-l | -b | -m xml | -t HW] Script will generate PeripheralPins.c thanks to the xml files description available in STM32CubeMX directory defined in 'cube_path.json': C:\Program Files (x86)\STMicroelectronics\STM32Cube\STM32CubeMX\db optional arguments: -h, --help show this help message and exit -l, --list list available mcu xml files description in STM32CubeMX -b, --boards list available boards description in STM32CubeMX -m xml, --mcu xml specify the mcu xml file description in STM32CubeMX to use (use double quotes). Parameter can be a filter like L496 if you want to parse all L496 chips (-m STM32 to parse all). -t HW, --target HW specify the board file description in STM32CubeMX to use (use double quotes). Parameter can be a filter like L496 (only the first file found will be parsed). Once generated, you have to check and comment pins that can not be used (specific HW, internal ADC channels, remove PWM using us ticker timer, ...)pull/6929/head
parent
8be2e34390
commit
5a76718ae8