Have been creating an mbed os 6 target for the STM32F405RG and have run into the following error log upon compilation:
Traceback (most recent call last):
File “c:\Users\Admin\mbed-os-imaginary-port\mbed-os\tools\targets_init_.py”, line 157, in target
resolution_order = get_resolution_order(json_data, name, )
File “c:\Users\Admin\mbed-os-imaginary-port\mbed-os\tools\targets_init_.py”, line 145, in get_resolution_order
order = get_resolution_order(json_data, par, order, level + 1)
File “c:\Users\Admin\mbed-os-imaginary-port\mbed-os\tools\targets_init_.py”, line 143, in get_resolution_order
parents = json_data[target_name].get(“inherits”, )
KeyError: ‘FAMILY_STM32’
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “c:\Users\Admin\mbed-os-imaginary-port/mbed-os/tools/make.py”, line 412, in
main()
File “c:\Users\Admin\mbed-os-imaginary-port/mbed-os/tools/make.py”, line 309, in main
mcu = extract_mcus(parser, options)[0]
File “c:\Users\Admin\mbed-os-imaginary-port\mbed-os\tools\options.py”, line 146, in extract_mcus
update_target_data()
File “c:\Users\Admin\mbed-os-imaginary-port\mbed-os\tools\targets_init_.py”, line 816, in update_target_data
in Target.get_json_target_data().items()
File “c:\Users\Admin\mbed-os-imaginary-port\mbed-os\tools\targets_init_.py”, line 817, in
if obj.get(“public”, True)]
File “c:\Users\Admin\mbed-os-imaginary-port\mbed-os\tools\targets_init_.py”, line 113, in wrapper
CACHES[(func.name, args)] = func(*args, **kwargs)
File “c:\Users\Admin\mbed-os-imaginary-port\mbed-os\tools\targets_init_.py”, line 368, in get_target
return target(target_name, Target.get_json_target_data())
File “c:\Users\Admin\mbed-os-imaginary-port\mbed-os\tools\targets_init_.py”, line 161, in target
), exc)
File “c:\Users\Admin\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\future\utils_init_.py”, line 398, in raise_from
exec(execstr, myglobals, mylocals)
File “”, line 1, in
tools.utils.NotSupportedException: target MTS_MDOT_F405RGT6 has an incomplete target definition
I’m guessing this has something to do with the custom_targets.json but am not sure. Can someone please provide some help/insight to this issue?
The files and code I am using is in the following repo: https://github.com/DheerN/Imaginary-Board