-
Notifications
You must be signed in to change notification settings - Fork 181
Closed
Labels
Description
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_PATH
to 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_ARM
I get the following error:
[ERROR] Attribute 'default_build' not found in target 'LPC1768'
[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u /home/sille/mbed_blinky/.temp/tools/make.py -t GCC_ARM -m LPC1768 --source . --build ./BUILD/LPC1768/GCC_ARM" in "/home/sille/mbed_blinky"
The error is shown on other targets as well.
Verbose output:
mbed compile -m LPC1768 -t GCC_ARM -v
[mbed] Working path "/home/sille/mbed_blinky" (program)
[mbed] Exec "python -u /home/sille/mbed_blinky/.temp/tools/make.py -t GCC_ARM -m LPC1768 --source . --build ./BUILD/LPC1768/GCC_ARM -v" in /home/sille/mbed_blinky
Using targets from /home/sille/mbed_blinky/mbed/9bcdf88f62b0/targets.json
Traceback (most recent call last):
File "/home/sille/mbed_blinky/.temp/tools/make.py", line 271, in <module>
name=options.artifact_name)
File "/home/sille/mbed_blinky/.temp/tools/build_api.py", line 459, in build_project
extra_verbose=extra_verbose, config=config)
File "/home/sille/mbed_blinky/.temp/tools/build_api.py", line 320, in prepare_toolchain
extra_verbose=extra_verbose)
File "/home/sille/mbed_blinky/.temp/tools/toolchains/gcc.py", line 280, in __init__
elif target.default_build == "standard":
File "/home/sille/mbed_blinky/.temp/tools/targets.py", line 225, in __getattr__
result = self.__getattr_helper(attrname)
File "/home/sille/mbed_blinky/.temp/tools/targets.py", line 212, in __getattr_helper
% (attrname, self.name))
AttributeError: Attribute 'default_build' not found in target 'LPC1768'
[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u /home/sille/mbed_blinky/.temp/tools/make.py -t GCC_ARM -m LPC1768 --source . --build ./BUILD/LPC1768/GCC_ARM -v" in "/home/sille/mbed_blinky"
---