Import blinky into MBED_CLI

import errors:
this machine has Yotta installed. So I am running a Yotta Venv Workspace.

:: Copyright © 2015 ARM Limited. All rights reserved. :: SPDX-License-Identifier: Apache-2.0
@echo off rem This file is the script to set path for yotta toolchain

set PATH=%YOTTA_PATH%;%PATH%
:: start yotta venv
cmd /K “cd %HOMEPATH% & %YOTTA_INSTALL_LOCATION%\workspace\Scripts\activate & cd\workspace & dir”

this is the result :frowning:

What must i do to fix this ?

(workspace) C:\workspace>mbed new blinky
[mbed] Creating new program “blinky” (git)
[mbed] Adding library “mbed-os” from “https://github.com/ARMmbed/mbed-os” at latest revision in the current branch
[mbed] Updating reference “mbed-os” -> “https://github.com/ARMmbed/mbed-os/#0712b8adf6bbc7eb796d5dac26f95d79d40745ef
warning: LF will be replaced by CRLF in mbed-os.lib.
The file will have its original line endings in your working directory.

(workspace) C:\workspace>mbed import http://mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky/
[mbed] Importing program “mbed-os-example-blinky” from “https://mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky” at latest revision in the current branch
[mbed] ERROR: Could not execute “hg”.
[mbed] ERROR: Please verify that it’s installed and accessible from your current path by executing “hg”.

(workspace) C:\workspace>cd blinky

(workspace) C:\workspace\blinky>mbed import http://mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky/
[mbed] ERROR: Cannot import program in the specified location “C:\workspace\blinky\mbed-os-example-blinky” because it’s already part of a program “blinky”.
[mbed] ERROR: Please change your working directory to a different location or use “mbed add” to import the URL as a library.

(workspace) C:\workspace\blinky>mbed add http://mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky/
[mbed] Adding library “mbed-os-example-blinky” from “https://mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky” at latest revision in the current branch
[mbed] ERROR: Could not execute “hg”.
[mbed] ERROR: Please verify that it’s installed and accessible from your current path by executing “hg”.

(workspace) C:\workspace\blinky>

You’ll need to install Mercurial (also known as hg). We’ll publish a Windows installer shortly which will automatically install this for people.

I installed Mercurial without success.

I am running the new MBED in a Yotta Venu workspace… I guess this is the problem.

not sure what to do…

What is the output that you see?

Hi, thanks for looking in on me…
which is the most active forum ?,
this one seems like a poor cousins bedroom… no one wants to go there.

umm, it seems that Bill required a reboot after Mercurial was installed.

it seems to compile Blinky now… 56K of program storage and 8K of RAM
is this what is expected ?.

Thanks for your support. please tell me a more active site for MBED-OS

results;
.
.
Compile: rt_Timer.c
Compile: test_env.cpp
Link: mbed-os-example-blinky
Elf2Bin: mbed-os-example-blinky
±--------------------±------±------±-----+
| Module | .text | .data | .bss |
±--------------------±------±------±-----+
| Fill | 111 | 0 | 9 |
| Misc | 38281 | 2200 | 2172 |
| features/frameworks | 3814 | 92 | 832 |
| hal/common | 2595 | 4 | 269 |
| hal/targets | 6262 | 4 | 332 |
| rtos/rtos | 26 | 4 | 0 |
| rtos/rtx | 5725 | 20 | 2170 |
| Subtotals | 56814 | 2324 | 5784 |
±--------------------±------±------±-----+
Allocated Heap: unknown
Allocated Stack: unknown
Total Static RAM memory (data + bss): 8108 bytes
Total RAM memory (data + bss + heap + stack): 8108 bytes
Total Flash memory (text + data + misc): 59138 bytes
Image: …build\NUCLEO_F072RB\GCC_ARM\mbed-os-example-blinky.bin

You’ll probably get answers faster at http://developer.mbed.org right now.

But that forum is lacking some features which I like a lot (like proper notifications), so it’s harder for me to keep track of what’s happening. So maybe we should move all posts from there and import here. The web team will make a call on that.

install mercurial with pip command

pip install mercurial

and then do

mbed import https://developer.mbed.org/users/mbed_demo/code/mbed_blinky/