9 Star 22 Fork 13

Gitee 极速下载/mbed-os

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/ARMmbed/mbed-os
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Mbed OS development environment Docker image

This Docker image is the official Mbed OS development environment.

  • It is based on Ubuntu 20.04
  • Python and CMake are installed
  • Arm-none-eabi-gcc toolchain is installed
  • Latest released version of mbed-cli and mbed-greentea are installed
  • All other Mbed OS dependency tools are installed.

How to use the Docker image:

Pull the Docker image

docker pull ghcr.io/armmbed/mbed-os-env:<label>

Run Mbed OS environment without HW support (build Mbed images only)

Launch the Docker image by

docker run -it ghcr.io/armmbed/mbed-os-env:<label>

Then you will have a container with an Mbed OS development environment. You should be able to compile Mbed commands/examples as recommended in the documentation e.g.

mbed-tools import mbed-os-example-blinky
cd mbed-os-example-blinky
mbed-tools compile -m <TARGET> -t GCC_ARM

Run Mbed OS environment with HW support (USB pass-through)

This currently works only on Linux host machines with Mbed CLI 1.

If you want to use this Docker image to connect and flash your targets, you will need some extra command line option to pass-through your USB devices.

sudo docker run -it --privileged -v /dev/disk/by-id:/dev/disk/by-id -v /dev/serial/by-id:/dev/serial/by-id ghcr.io/armmbed/mbed-os-env:<label>

Then you will have a container with an Mbed OS development environment. To make sure your Mbed targets have been detected, you might want to manually run the mount command and mbedls to check

mount /dev/sdb /mnt
mbedls

If mbedls detected your connected target, then you should be able to run Mbed tests/examples as recommended in the Mbed documentation.

mbed import mbed-os
cd mbed-os
mbed test -t GCC_ARM -m <target> 
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/mbed-os.git
git@gitee.com:mirrors/mbed-os.git
mirrors
mbed-os
mbed-os
master

搜索帮助