Hello,
I follow the instructions for custom target creation, but I have an error in Mbed studio while trying to compile a simple program for my custom target just created.
Mbed studio 1.4.4
Stlink V3 set
Link to custom target :
https://github.com/djadostyle/custom_stm32f407zg.git
ERROR
Traceback (most recent call last):
File “d:\OneDrive - Penja’s Pearls\Bureau\custom_stm32f407zg\mbed-os\tools\targets_init_.py”, line 155, in target
resolution_order = get_resolution_order(json_data, name, )
File “d:\OneDrive - Penja’s Pearls\Bureau\custom_stm32f407zg\mbed-os\tools\targets_init_.py”, line 143, in get_resolution_order
order = get_resolution_order(json_data, par, order, level + 1)
File “d:\OneDrive - Penja’s Pearls\Bureau\custom_stm32f407zg\mbed-os\tools\targets_init_.py”, line 141, in get_resolution_order
parents = json_data[target_name].get(“inherits”, )
KeyError: ‘MCU_STM32F407xG’
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “d:\OneDrive - Penja’s Pearls\Bureau\custom_stm32f407zg/mbed-os/tools/make.py”, line 412, in
main()
File “d:\OneDrive - Penja’s Pearls\Bureau\custom_stm32f407zg/mbed-os/tools/make.py”, line 309, in main
mcu = extract_mcus(parser, options)[0]
File “d:\OneDrive - Penja’s Pearls\Bureau\custom_stm32f407zg\mbed-os\tools\options.py”, line 146, in extract_mcus
update_target_data()
File “d:\OneDrive - Penja’s Pearls\Bureau\custom_stm32f407zg\mbed-os\tools\targets_init_.py”, line 814, in update_target_data
in Target.get_json_target_data().items()
File “d:\OneDrive - Penja’s Pearls\Bureau\custom_stm32f407zg\mbed-os\tools\targets_init_.py”, line 815, in
if obj.get(“public”, True)]
File “d:\OneDrive - Penja’s Pearls\Bureau\custom_stm32f407zg\mbed-os\tools\targets_init_.py”, line 111, in wrapper
CACHES[(func.name, args)] = func(*args, **kwargs)
File “d:\OneDrive - Penja’s Pearls\Bureau\custom_stm32f407zg\mbed-os\tools\targets_init_.py”, line 366, in get_target
return target(target_name, Target.get_json_target_data())
File “d:\OneDrive - Penja’s Pearls\Bureau\custom_stm32f407zg\mbed-os\tools\targets_init_.py”, line 159, in target
), exc)
File “c:\ProgramData\Mbed Studio\mbed-studio-tools\python\lib\site-packages\future\utils_init_.py”, line 403, in raise_from
exec(execstr, myglobals, mylocals)
File “”, line 1, in
tools.utils.NotSupportedException: target INRUSH_MCU_F407ZG has an incomplete target definition
Any help is appreciated
Thanks