-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom targets: target {} has an incomplete target definition #13429
Comments
Hi For your custom_targets.json, I propose:
|
Hi, |
Oups, you're right So for the moment, just change FAMILY_STM32 into MCU_STM32 |
@christandlg thank you for raising this issue.Please take a look at the following comments: How can we reproduce your issue? NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'.This indicates to us that at least all the fields have been considered. |
I discussed this issue over in the PlatformIO forums, where I found that these steps were necessary to fix this issue: a few additional steps were necessary for the project to compile correctly, but this is somewhat outside the scope of this issue: |
Description of defect
I have created a custom target definition for my project (can be found here: https://bitbucket.org/christandlg/platformio-clicker2-for-stm32 ), but when I try to build for it, mbed throws the error
The target inherits from
FAMILY_STM32
, which is defined in targets\targets.json. I did some poking around inside the mbed framework and I think I have found where this problem comes from.In .platformio\packages\framework-mbed\tools\targets_init_.py, function def get_resolution_order(json_data, target_name, order, level=0), the key FAMILY_STM32 cannot be found in the collection of target descriptions. It seems as if the .platformio\packages\framework-mbed\targets\targets.json file is not considered when constructing the target object.
Target(s) affected by this defect ?
custom targets
Toolchain(s) (name and version) displaying this defect ?
framework-mbed 6.60200.200722 (6.2.0)
What version of Mbed-os are you using (tag or sha) ?
mbed-os-6.2.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
PlatformIO 4.3.4
How is this defect reproduced ?
n/a
The text was updated successfully, but these errors were encountered: