This tool will help local development of mbed.
- Copy the source of mbed's specified target only
- CMake Build boilerplate to generate
- Windows
*nix
- Python2.7 or 3.x
- Git
- mbed-cli
- GNU Arm Embedded Toolchain
- CMake
- ccache
- Ninja
$ pip install git+https://github.com/maskedw/xmbedinit -U
$ xmbedinit -h
usage: xmbedinit [-h] -m TARGET -T TAG [-d DEST] [-v]
This tool will help local development of mbed
optional arguments:
-h, --help show this help message and exit
-m TARGET, --target TARGET
Compile target MCU. @see https://github.com/ARMmbed/mbed-cli (default: None)
-T TAG, --tag TAG Tag of mbed @see https://github.com/ARMmbed/mbed-os/releases (default: None)
-d DEST, --dest DEST Directory of export destination (default: .)
-v, --verbose Verbose output (default: False)
$ mkdir PROJECT-DIR
$ cd PROJECT-DIR
$ xmbedinit -m NUCLEO_L476RG -T mbed-os-5.7.2
$ ls -1
CMake/
CMakeLists.txt
build-compile_commands.sh
build-debug.bat
build-debug.sh
build-release.bat
build-release.sh
build.sh
linker_script.ld
main.cpp
mbed-os
xmbedinit.log
$ ./build-debug.sh