2018-03-20 09:41:03 +00:00
|
|
|
# genpinmap
|
|
|
|
|
|
2018-04-30 13:12:04 +00:00
|
|
|
By default,this script is able to generate `PeripheralPins.c` for all xml files description available in
|
|
|
|
|
[STM32CubeMX](http://www.st.com/en/development-tools/stm32cubemx.html) directory defined in `config.json`.
|
2018-03-20 09:41:03 +00:00
|
|
|
|
2018-04-30 13:12:04 +00:00
|
|
|
After file generation, review them carefully and please report any issue
|
|
|
|
|
[here](https://github.com/stm32duino/Arduino_Tools/issues).
|
2018-03-20 09:41:03 +00:00
|
|
|
|
2018-04-30 13:12:04 +00:00
|
|
|
Once generated, you should comment a line if the pin is generated several times for the same IP or if the pin should not be used
|
|
|
|
|
(overlaid with some HW on the board, for instance).
|
2018-03-20 09:41:03 +00:00
|
|
|
|
2018-04-30 13:12:04 +00:00
|
|
|
usage: `python genpinmap_arduino.py [-h] [-l | -m xml]`
|
2018-03-20 09:41:03 +00:00
|
|
|
|
2018-04-30 13:12:04 +00:00
|
|
|
optional arguments:
|
|
|
|
|
|
|
|
|
|
`-h, --help` show this help message and exit<br>
|
|
|
|
|
`-l, --list` list available xml files description in [STM32CubeMX](http://www.st.com/en/development-tools/stm32cubemx.html)<br>
|
|
|
|
|
`-m xml, --mcu xml` Generate `PeripheralPins.c` for specified mcu xml file description
|
|
|
|
|
in [STM32CubeMX](http://www.st.com/en/development-tools/stm32cubemx.html).
|
|
|
|
|
**This xml file contains non alpha characters in its name, you should call it with double quotes**
|
|
|
|
|
|
|
|
|
|
All generated file are available under _./Arduino/<mcu_name>_ directory
|