This tool allows to generate the pins mapping of an STM32 MCU.
This script is able to generate the PeripheralPins.c using STM32
xml file description in Cube MX.
After file generation, review it carefully.
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)
USAGE: genpinmap_arduino.py <BOARD_NAME> <product xml file name>
<BOARD_NAME> is the name of the board as it will be named in mbed
<product xml file name> is the STM32 file description in Cube MX
!!This xml file contains non alpha characters in its name, you should call it with quotes
Fix#10
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
Depending of the board revision, mount point name could be different.
Ex for: STM32F030R8 with a rev 1 node name is : "NUCLEO"
while it is "NODE_F030R8" for rev c
Ex: in boards.txt we could have:
Nucleo_64.menu.Nucleo_64_board.NUCLEO_F030R8.node="NODE_F030R8,NUCLEO"
Fix#6
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Rewrote to use WMIC as the previous version didn't work on some machines, and also using WMIC is a much more elegant way to find the mass storage device (disk drive)