I’m trying to add custom board (based on STM32L471R).
I have follow the README.md example and come to the issue when executing:
python targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py -m "STM32L471R(E-G)Tx.xml"
Script version 1.20 Checking STM32_open_pin_data repo... Already up to date. STM32_open_pin_data DB version STM32CubeMX-DB.6.0.20 * Output directory: C:\Users\Jaka\Downloads\test\mbed-os-imaginary-port\mbed-os\targets_custom\TARGET_STM\TARGET_STM32L4\TARGET_STM32L471xE\TARGET_STM32L471RET * Generating PeripheralPins.c and PinNames.h with 'STM32_open_pin_data\mcu\STM32L471R(E-G)Tx.xml' * GPIO file: STM32_open_pin_data\mcu\IP\GPIO-STM32L47x_gpio_v1_0_Modes.xml Traceback (most recent call last): File "targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py", line 1891, in <module> print_header() File "targets/TARGET_STM/tools/STM32_gen_PeripheralPins.py", line 464, in print_header """ % (date_year, os.path.basename(input_file_name), TargetName)) NameError: name 'TargetName' is not defined
Did I missing something? Did I forgot to add any argument?