-
Notifications
You must be signed in to change notification settings - Fork 175
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
[ERROR] Attribute 'default_build' not found in target 'LPC1768' #391
Comments
|
I can confirm this issue, this is due to revision mbed 2.0 9bcdf88f62b0 onwards. Works prior. Regards, Andrea I would suggest |
|
Thank You, I can confirm that this works. |
|
Hi, Cheers, |
|
This is still an issue and really needs to be addressed. |
|
@jensstruemper Right now you can replace the line (280) of toolchains/gcc.py: elif target.default_build == "standard":
use_nano = False
elif target.default_build == "small":
use_nano = Truewith elif getattr(target, "default_build", None) == "standard" or getattr(target, "default_lib", None) == "std":
use_nano = False
elif getattr(target, "default_build", None) == "small" or getattr(target, "default_lib", None) == "small:
use_nano = Trueyou get this error instead: which you can get rid of by removing lines 675-678 of tools/config.py . That should be this: for feature in features:
if feature not in self.__allowed_features:
raise ConfigException(
"Feature '%s' is not a supported features" % feature)Then it works. PLEASE NOTE: This is clearly a hack. I'm working on updating the mbed-sdk-tools repo to use the most recent released version of the tools from mbed-os. |
|
@theotherjimmy Thanks! Working fine. Happy to apply this until mbed-sdk-tools are updated. |
|
I have the same issue with NUCLEO_L152RE based program. I'm using mbed-dev, so a mbed-dev.bld and not mbed.bld. The 25aea2a3f4e3 revision doesn't exist for this variant. |
|
@abouillot This issue will persist until https://developer.mbed.org/users/mbed_official/code/mbed-sdk-tools/pull-request/1 is merged, and you update your tools for your project. In the mean time, you could clone the branch mentioned in that PR as your tools, or use the workaround I mentioned above. |
|
That PR has been mainlined. Please run |
|
Did a small test and I could not reproduce the problem with revision |
Hi, I am using Ubuntu Mate 16.04.
I installed mbed-cli using pip, and installed GCC ARM Embedded from https://launchpad.net/gcc-arm-embedded
I added the
GCC_ARM_PATHto the global config with`mbed config --global ARM_PATH "/usr/bin"
I then import the example program as documented in the readme:
mbed import https://mbed.org/teams/mbed/code/mbed_blinky/Then I try to compile the project with the following command:
mbed compile -m LPC1768 -t GCC_ARMI get the following error:
The error is shown on other targets as well.
Verbose output:
The text was updated successfully, but these errors were encountered: