This Docker image is the official Mbed OS development environment.
docker pull ghcr.io/armmbed/mbed-os-env:<label>
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
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>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。