mbed-cli | Arm Mbed Command Line Interface | Command Line Interface library

 by   ARMmbed Python Version: 1.10.5 License: Apache-2.0

kandi X-RAY | mbed-cli Summary

kandi X-RAY | mbed-cli Summary

mbed-cli is a Python library typically used in Utilities, Command Line Interface, Raspberry Pi applications. mbed-cli has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install mbed-cli' or download it from GitHub, PyPI.

Arm Mbed Command Line Interface
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              mbed-cli has a low active ecosystem.
              It has 304 star(s) with 163 fork(s). There are 56 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 56 open issues and 592 have been closed. On average issues are closed in 119 days. There are 12 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of mbed-cli is 1.10.5

            kandi-Quality Quality

              mbed-cli has 0 bugs and 0 code smells.

            kandi-Security Security

              mbed-cli has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              mbed-cli code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              mbed-cli is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              mbed-cli releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              It has 3411 lines of code, 236 functions and 13 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed mbed-cli and discovered the below as its top functions. This is intended to give you an instant insight into mbed-cli implemented functionality, and help decide if they suit your requirements.
            • Create a new project
            • Add mbed2 SDK tools
            • Install mbed tools
            • Returns the path type of the repository
            • Removes a directory tree
            • Return the path to the base directory
            • Run a test suite
            • Check the installed requirements txt file
            • Return a list of requirements files
            • Return the value of a variable
            • Parse command line
            • Returns the protocol code
            • Get IDecode code
            • Get the help text for a given command
            • Clone a remote repository
            • Context manager for cache access
            • Generate the script
            • Generator that yields the progress cursor
            • Configure a toolchain
            • Removes the specified directory
            • Return the path type of the repository
            • Start a STOM process
            • Detect mbed - OS tools
            • Run device management
            • Create a subcommand
            • Export a project
            • Enable the repository cache
            • Define a target
            Get all kandi verified functions for this library.

            mbed-cli Key Features

            No Key Features are available at this moment for mbed-cli.

            mbed-cli Examples and Code Snippets

            No Code Snippets are available at this moment for mbed-cli.

            Community Discussions

            QUESTION

            How do I remove hg-git entirely from Ubuntu 18.04.2
            Asked 2019-Nov-21 at 18:42

            When using mbed-cli to update an Mbed repo, I get the following error:

            ...

            ANSWER

            Answered 2019-Jul-16 at 17:15

            Use apt command to remove hg-git

            Source https://stackoverflow.com/questions/57062354

            QUESTION

            What happens on the background when mbed CLI flashes the chip?
            Asked 2018-Feb-09 at 22:29

            Even though not every detail is relevant for this question, I will list my setup nonetheless:

            To compile my code and flash the binary to the chip, I issue the following command in my cmd terminal:

            ...

            ANSWER

            Answered 2018-Feb-09 at 19:07

            I have not tried all of them but the first and certainly the mbed supported nucleo boards show up as a virtual thumb drive, and you simply copy the .bin file over, no real magic to it from the host side no other software required other than what the operating system already has with respect to mounting usb flash drives. There is a debug header on these boards, and even if not that there is for the ones I know an mcu that manages the debug part I call that the debug mcu, then there is the mcu under test or the demonstration one that you bought the board to play with. The mbed ones have generally been arm and there is an swd (jtag-ish) interface, the debug mcu very likely uses that interface.

            openocd is just one tool that knows the swd protocol, that doesnt mean that they have to run openocd on the mcu. you can write your own software to bit bang or talk to an ftdi chip to use mpsse or other solution to generate the swd protocol transitions on that bus.

            Simplest case the firmware for the specific nucleo board only has to know that one stm32 it is programming, doesnt have to know more than that, but one swd is somewhat generic and may make sense to have a more generic debug mcu firmware.

            Now these NUCLEO and other STM32 debug mcus also speak stlink which is separate from the firmware looks like a thumb drive deal. Stlink a protocol that a host can use to ask the debug mcu to do stuff, just like mpsse is a protocol/instruction set that you use to ask some ftdi parts to do stuff for you (a bit different but in concept speak one protocol to a proxy agent that does something for you).

            This mbed cli could possibly just be copying the file over for you which you could have just done yourself. Or maybe it is speaking some other protocol The first mbeds were based on NXP parts not ST and thus dont have the stlink protocol on the front end. They had/have the just copy the binary which I remember seeing someones blog have so maybe they hired that person or borrowed that open source project.

            While the mbed sandbox may be great I recommend you try out the other options, first mbed to build the binary, then copy it over, mbed to build it and maybe openocd through stlink to write it to flash. ST and NXP parts have traditionally had a bootloader that would support a uart protocol you can try that, as that is something you would very likely use, or swd, to get into a chip on a board if you were working on some product built around or that used chips like these but was not some hobby/eval board like the nucleos. I also recommend trying baremetal without the libraries, just read the manual, I find that easier than the libraries, YMMV, also ST has at least one set of its own libraries I think they are in a transition between to software solutions, perhaps try both or try the new one as the other will lose support.

            You can also get the SWD spec and there are github and other open projects that can help, take your nucleo board and develop a program on one mcu to talk to another (mcus have gpio making it an easy way to bit bang, you can bit bang an ftdi part or do other things dont have to use an mcu) and try to learn/understand that protocol itself. It is used by all the cortex-ms thus far.

            There is also a usb protocol like stlink that is being pushed by arm, the newer MSP432 launchpads use it or support it. The stlink protocol itself for that matter.

            Anyway I digress the nucleo through the (debug) usb has the stlink protocol and has the I am a thumb drive thing, so mbed tools are likely using one of those probably the latter since stlink is likely not found on non-st products. Very likely that the debug mcu is using swd to program the development/demonstration mcu, dont know how else it would be doing it.

            Source https://stackoverflow.com/questions/48711331

            QUESTION

            How to compile hal mbed on mbed-cli
            Asked 2017-Aug-10 at 15:32

            I want to compile and run an example on my nucleo board. I am able to compile and flash using the mbed os api. However I have downloaded the STM32Cube_FW_F4_V1.16.0 package and want to run one of those examples. How do I compile this on mbed-cli or do I have to use an ide like MKD_ARM?

            ...

            ANSWER

            Answered 2017-Aug-10 at 15:32

            you cant compile them on mbed. Mbed uses HAL libraries anyway behind the scenes on STM32 devices but you cant compile those examples on embed.

            The easy way:

            Install openSTM32 package

            Go to import/general/existing projects into workspace

            Find the directory containing your example and SW4STM32 (it contains project files for your IDE)

            Do not tick copy project into the workspace as it breaks include paths.

            Finish and you are done.

            Compile, run, enjoy

            Source https://stackoverflow.com/questions/45617675

            QUESTION

            Path to GCC_ARM (mbed_settings.py)
            Asked 2017-Jul-25 at 05:08

            I've just started to use mbed API, and every time I'm trying to compile my project this happen

            P.S. I'm on arch Linux

            ...

            ANSWER

            Answered 2017-Jul-25 at 05:08

            I've fixed my problem by installing these 2 repositories + my cmake was on pip3 strangely. It had install cmake with pip3 rather than pip2 since python3 is the main python on arch linux.

            • arm-none-eabi-newlib
            • avr-libc

            here's the link that made me fix my problem:

            arm-linux-gnu-gcc fatal error: stdio.h: No such file or directory

            Source https://stackoverflow.com/questions/45207377

            QUESTION

            arm mbed os CoAP missing ns_types.h
            Asked 2017-Mar-09 at 13:57

            I am trying to build the CoAP protocol example for ARM mbed (https://developer.mbed.org/teams/sandbox/code/coap-example/file/0681e205d0e9/) on a K64F board. I am getting this error on compiling:

            ...

            ANSWER

            Answered 2017-Mar-09 at 13:57

            Did you accidentally remove the mbed_app.json file? The COMMON_PAL feature is declared in there.

            This works for me (with mbed CLI):

            Source https://stackoverflow.com/questions/42695223

            QUESTION

            mbed client build error
            Asked 2017-Feb-20 at 12:18

            I am trying to compile the mbed client example on a windows machine for the K64F board. I have installed all the required software as described in the guide https://github.com/ARMmbed/mbed-client-quickstart.

            The commands I have run are the following commands:

            ...

            ANSWER

            Answered 2017-Feb-20 at 12:18

            That's the old example code based on mbed OS 3. Use the example for mbed OS 5 instead.

            Source https://stackoverflow.com/questions/42297012

            QUESTION

            mbed-os compile - library missing in arm-gcc
            Asked 2017-Jan-27 at 14:29

            I am getting the following error message when i have mbed-os and my own library installed side by side

            folder layout:

            ...

            ANSWER

            Answered 2017-Jan-27 at 14:10

            I think this is because you're referencing the mbed.h header (or Callback.h) from a .c file. Rename to C++.

            If you need the file to be C, then wrap in an extern "C" {} block.

            Source https://stackoverflow.com/questions/41895007

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install mbed-cli

            You can install using 'pip install mbed-cli' or download it from GitHub, PyPI.
            You can use mbed-cli like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install mbed-cli

          • CLONE
          • HTTPS

            https://github.com/ARMmbed/mbed-cli.git

          • CLI

            gh repo clone ARMmbed/mbed-cli

          • sshUrl

            git@github.com:ARMmbed/mbed-cli.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Command Line Interface Libraries

            ohmyzsh

            by ohmyzsh

            terminal

            by microsoft

            thefuck

            by nvbn

            fzf

            by junegunn

            hyper

            by vercel

            Try Top Libraries by ARMmbed

            mbed-os

            by ARMmbedC

            mbedtls

            by ARMmbedC

            DAPLink

            by ARMmbedC

            yotta

            by ARMmbedPython

            uvisor

            by ARMmbedC