Mbed tools are not present when creating a new Mbed OS 2 program with --mbedlib
See original GitHub issuembed-cli version: 1.7.3
I follow the instructions in the Mbed CLI README documentation for creating a new Mbed OS 2 program (https://github.com/ARMmbed/mbed-cli#creating-a-new-program-for-mbed-os-2) and I receive the following output:
~/Repos $ mbed new mbed-classic-program --mbedlib
[mbed] Creating new program "mbed-classic-program" (git)
[mbed] Adding library "builds" from "https://mbed.org/users/mbed_official/code/mbed/builds" at branch/tag "tip"
[mbed] Downloading library build "5aab5a7997ee" (might take a while)
[mbed] Unpacking library build "5aab5a7997ee" in "/Users/jenplu01/Repos/mbed-classic-program/builds"
[mbed] Unpacking library build "5aab5a7997ee" in "/Users/jenplu01/Repos/mbed-classic-program/builds"
[mbed] Updating reference "builds" -> "https://mbed.org/users/mbed_official/code/mbed/builds/5aab5a7997ee"
[mbed] WARNING: Cannot find the mbed tools directory in "/Users/jenplu01/Repos/mbed-classic-program"
---
Unlike in the README, the Mbed 2.0 build tools are not downloaded. So, when I try to use commands like mbed export
, mbed compile
etc. I get the following output:
~/Repos/mbed-classic-program $ mbed compile
[mbed] ERROR: The mbed tools were not found in "/Users/jenplu01/Repos/mbed-classic-program".
[mbed] ERROR: Run `mbed deploy` to install dependencies and tools.
---
~/Repos/mbed-classic-program $ mbed export
[mbed] ERROR: The mbed tools were not found in "/Users/jenplu01/Repos/mbed-classic-program".
[mbed] ERROR: Run `mbed deploy` to install dependencies and tools.
---
So then I try to run mbed deploy
…
~/Repos/mbed-classic-program $ mbed deploy
[mbed] Updating library "builds" to rev #5aab5a7997ee
[mbed] WARNING: Cannot find the mbed tools directory in "/Users/jenplu01/Repos/mbed-classic-program"
---
And now I’m stuck in a loop of being unable to do anything with this new Mbed OS 2 directory.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Creating a new program for mbed OS 2, the mbed library isn't ...
macOS Sierra mbed 1.0.0 When I create a new mbed OS 2 program the mbed library isn't downloaded automatically. I execute mbed update...
Read more >cant create or add mbed-os2 with cli - Question
abd@abd-ThinkPad-T480:~/workspace$ mbed new blinky --mbedlib [mbed] Working path ... new program "blinky" (git) [mbed] WARNING: Cannot find the mbed tools ...
Read more >Create - Build tools | Mbed OS 6 Documentation
A detailed command-specific help is available by using mbed <command> --help . Creating a program. You can create new applications as Mbed OS...
Read more >How to correctly start developing an application offline using ...
I'm trying to get my STM32F031 to run Mbed OS 2 for about three ... in mbed.h: No such file or directory with...
Read more >Migration guide - Build tools | Mbed OS 6 Documentation
Green: New Functionality introduced in Mbed CLI 2 (mbed-tools) ... --program : There is no need to specify this. mbed-tools new always creates...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Is this problem still existent? I’ve tried it now with actual mbed-cli 1.8.3 and the mbed libname is correct and also the tools are downloaded. But I prefer to create an empty project and use ‘mbed add https://os.mbed.com/users/mbed_official/code/mbed-dev/’ for the source version which is much leaner than the mbedlib version. There I have no tools and ‘mbed deploy’ does not load them. Mbed deploy detects a mbed classic by checking if file mbed.bld exists. Creating an empty mbed.bld is tweaking the deploy command and it will download the tools. But it would be cleaner if this could be done by a ‘–force-mbed2-tools’ or similar switch. Would this make sense or is there already another trick to achive this?
same for 1.8.0 [Mirrored to Jira]