Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
STM32 : script to generate PeripheralPins.c for new target addition #6929
Goal is to help users to add a new STM32 MCU in MBED.
One tricky point is to build PeripheralPins.c and PinNames.h files.
If you have installed STM32CubeMX tool from:
we have implemented a script to build the 2 MBED files from the ST description files.
Wiki page will be updated after PR merge:
$ python STM32_gen_PeripheralPins.py -h
Script will generate PeripheralPins.c thanks to the xml files description available in
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 request type
referenced this pull request
May 16, 2018
Build number : 2293
Build number : 1917
Build number : 2376
Build number : 2009