follow instruction in https://github.com/ARMmbed/mbed-cli
- requires Python 2.7.11+, mercurial(from pip), git
pip install mercurial
pip install mbed-cli
$ mbed import https://developer.mbed.org/users/k4zuki/code/DA7212hello_dev/
[mbed] Importing program "DA7212hello_dev" from "https://developer.mbed.org/users/k4zuki/code/DA7212hello_dev" at latest revision in the current branch
[mbed] Adding library "C12832" from "https://developer.mbed.org/users/chris/code/C12832" at rev #7de323fa46fe
[mbed] Adding library "da7212dev" from "https://github.com/K4zuki/da7212dev" at rev #b0614de5c301
[mbed] Adding library "frdm_i2s" from "https://github.com/K4zuki/frdm_i2s" at rev #43a4384dfa00
[mbed] Adding library "FXAS21002" from "https://developer.mbed.org/users/AswinSivakumar/code/FXAS21002" at rev #c9ebfc81e8b6
[mbed] Adding library "FXOS8700" from "https://developer.mbed.org/users/AswinSivakumar/code/FXOS8700" at rev #df2167370234
[mbed] Adding library "mbed" from "https://mbed.org/users/mbed_official/code/mbed/builds" at rev #794e51388b66
[mbed] Downloading library build "794e51388b66" (might take a minute)
[mbed] Unpacking library build "794e51388b66" in "C:\workspaces\DA7212hello_dev\mbed"
[mbed] Adding library "sinelookup" from "https://mbed.org/users/p07gbar/code/sinelookup" at rev #9099a1ada151
[mbed] Adding library "TLV320" from "https://mbed.org/users/p07gbar/code/TLV320" at rev #3ee50344f8f4
[mbed] Couldn't find build tools in your program. Downloading the mbed 2.0 SDK tools...
[mbed] Auto-installing missing Python modules...
install extra packages which does not look explained(otherwise mbed detect
does not work)
$ pip install bs4
$ pip install fuzzywuzzy
detect mbed target
$ mbed detect
[mbed] Detected K66F, port COM4, mounted F:
[mbed] Supported toolchains for K66F
+--------+-----------+-----------+-----------+-----------+-----------+
| Target | mbed OS 2 | mbed OS 5 | ARM | GCC_ARM | IAR |
+--------+-----------+-----------+-----------+-----------+-----------+
| K66F | Supported | Supported | Supported | Supported | Supported |
+--------+-----------+-----------+-----------+-----------+-----------+
Supported targets: 1
Supported toolchains: 3
try compile(fails as compiler not installed)
$ mbed compile -m K66F -t ARM
usage: make.py [-h] [-m MCU] [-t TOOLCHAIN] [--color] [--cflags CFLAGS]
[--asmflags ASMFLAGS] [--ldflags LDFLAGS] [-c]
[--profile PROFILE] [--app-config APP_CONFIG] [-p PROGRAM]
[-n PROGRAM] [-j JOBS] [-v] [--silent] [-D MACROS]
[-S [{matrix,toolchains,targets}]] [-f GENERAL_FILTER_REGEX]
[--automated] [--host HOST_TEST] [--extra EXTRA]
[--peripherals PERIPHERALS] [--dep DEPENDENCIES]
[--source SOURCE_DIR] [--duration DURATION] [--build BUILD_DIR]
[-N ARTIFACT_NAME] [-d DISK] [-s SERIAL] [-b BAUD] [-L] [--rpc]
[--usb] [--dsp] [--testlib] [--build-data BUILD_DATA]
[-l LINKER_SCRIPT]
make.py: error: Could not find executable for ARM.
Currently set search path: No path set
[mbed] ERROR: "P:\Python27\python.exe" returned error code 2.
[mbed] ERROR: Command "P:\Python27\python.exe -u C:\workspaces\DA7212hello_dev\.temp\tools\make.py -t ARM -m K66F --source . --build .\BUILD\K66F\ARM" in "C:\workspaces\DA7212hello_dev"
get GCC6-ARM from following
https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
Windows version seems 32bit only. take sha2 option