Skip to content

mbed sterm needs mbed-os project imported #880

@coisme

Description

@coisme

I installed Mbed CLI into a new Windows 10 environment with executable binary Mbed_installer_v0.4.10.exe. Right after that, I tried connecting to K64F via serial terminal using mbed sterm command. The command resulted in error.

However, if I import mbed-os, the command works. Once installed mbed-os was installed, the mbed sterm command works even if I delete the mbed-os directory. Does this mean the Mbed CLI installer doesn't install necessary Python modules and mbed import resolved it?

(K64F is already connected to my PC. COM port can be seen on Device Manager.)

C:\Users\Owner>mbed sterm -b 115200
[mbed] Working path "C:\Users\Owner" (directory)
[mbed] Program path "C:\Users\Owner"
[mbed] Detecting connected targets/boards to your system...
[mbed] ERROR: Couldn't detect connected targets/boards to your system.
       You can manually specify COM port via the '--port' option.
---

C:\Users\Owner>mbed import https://github.com/ARMmbed/mbed-os.git
[mbed] Working path "C:\Users\Owner" (directory)
[mbed] Program path "C:\Users\Owner"
[mbed] Importing program "mbed-os" from "https://github.com/ARMmbed/mbed-os.git" at latest revision in the current branch
[mbed] Auto-installing missing Python modules (colorama, urllib3, prettytable, junit_xml, pyyaml, jsonschema, future, six, mbed_cloud_sdk, requests, idna, pyserial, jinja2, intelhex, mbed_ls, mbed_host_tests, mbed_greentea, beautifulsoup4, pyelftools, manifest_tool, icetea, pycryptodome, pyusb, cmsis_pack_manager)...

C:\Users\Owner>mbed sterm -b 115200
[mbed] Working path "C:\Users\Owner" (directory)
[mbed] Program path "C:\Users\Owner"
[mbed] Detecting connected targets/boards to your system...
[mbed] Opening serial terminal to "K64F"
--- Terminal on COM4 - 115200,8,N,1 ---
ato connect to network (-3014). Retrying...                                <-- Serial output
Unable to connect to network (-3014). Retrying...                     <-- Serial output
Unable to connect to network (-3014). Retrying...                     <-- Serial output
Unable to connect to network (-3014). Retrying...                     <-- Serial output

C:\Users\Owner> rd /s /q mbed-os

C:\Users\Owner> mbed sterm -b 115200
[mbed] Working path "C:\Users\Owner" (directory)
[mbed] Program path "C:\Users\Owner"
[mbed] Detecting connected targets/boards to your system...
[mbed] Opening serial terminal to "K64F"
--- Terminal on COM4 - 115200,8,N,1 ---
Unable to connect to network (-3014). Retrying...                       
Unable to connect to network (-3014). Retrying...                  

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions