Issues with Bluepill board support for Mbed OS 6


3 comments on Issues with Bluepill board support for Mbed OS 6:

23 Jun 2020

hi Zoltan,

Just a quick note it seems the version/sha of Mbed OS you're using doesn't work out of the box with Mbed Studio (1.0) - it can't detect the Bluepill custom target.

After importing the application and upgrading to Mbed OS 6.0.0 (165be79392ae7b1bee4388d2bc8ed8281978f07c), then I can select the Bluepill and compile just fine. You may want to update the mbed-os.lib file.

Thanks, Marcelo

24 Jun 2020

Hello Marcelo,

Thank you for the feedback. I have rebuilt the program with the mbed-os.lib rev. 165be79392.

Best regards, Zoltan

16 Jul 2023 This post is awaiting moderation

This does not appear to work anymore with the latest Mbed Studio (1.4.5).

After importing into Mbed Studio and clicking build, I get the following errors:

Traceback (most recent call last):
File "c:\mbed-os-bluepill\mbed-os\tools\targets\__init__.py", line 151, in target
resolution_order = get_resolution_order(json_data, name, [])
File "c:\mbed-os-bluepill\mbed-os\tools\targets\__init__.py", line 139, in get_resolution_order
order = get_resolution_order(json_data, par, order, level + 1)
File "c:\mbed-os-bluepill\mbed-os\tools\targets\__init__.py", line 137, in get_resolution_order
parents = json_data[target_name].get("inherits", [])
KeyError: 'MCU_STM32F103x8'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\mbed-os-bluepill/mbed-os/tools/make.py", line 421, in <module>
main()
File "c:\mbed-os-bluepill/mbed-os/tools/make.py", line 311, in main
mcu = extract_mcus(parser, options)[0]
File "c:\mbed-os-bluepill\mbed-os\tools\options.py", line 145, in extract_mcus
update_target_data()
File "c:\mbed-os-bluepill\mbed-os\tools\targets\__init__.py", line 782, in update_target_data
in Target.get_json_target_data().items()
File "c:\mbed-os-bluepill\mbed-os\tools\targets\__init__.py", line 783, in <listcomp>
if obj.get("public", True)]
File "c:\mbed-os-bluepill\mbed-os\tools\targets\__init__.py", line 107, in wrapper
CACHES[(func.__name__, args)] = func(*args, **kwargs)
File "c:\mbed-os-bluepill\mbed-os\tools\targets\__init__.py", line 362, in get_target
return target(target_name, Target.get_json_target_data())
File "c:\mbed-os-bluepill\mbed-os\tools\targets\__init__.py", line 155, 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 "<string>", line 1, in <module>
tools.utils.NotSupportedException: target BLUEPILL has an incomplete target definition

Please log in to post comments.