Build with Mbed-cli
1. Install mbed-cli.msi in Windows 10
with the fowllowint components,
The python 2.7.10 is installed and ruin my previous python 3.6.x ENV. I have to reinstalled python 3.7 in anaconda ENV in isolated environments. It is suggested to install Mbed CLI from within a virtual environment and run all commands from within your virtual environment. Other lib includes git. mercury, arm-gcc...
Then install pyocd , update libusb https://github.com/libusb/libusb/releases/tag/v1.0.21 properly.
pip install -U pyocd
After you install pyOCD via pip or setup.py, you will be able to execute the following in order to start a GDB server powered by pyOCD:
pyocd gdbserver
To use the GCC 7.2.1 distribution bundled with ModusToolbox, run the mbed config command as appropriate for Windows :
mbed config -G GCC_ARM_PATH ~/ModusToolbox/tools_2.1/gcc-7.2.1/bin
Then,
mkdir mbed-examples cd mbed-examples mbed import mbed-os-example-blinky cd mbed-os-example-blinky mbed compile --target CY8CPROTO_062_4343W --toolchain GCC_ARM mbed export -i eclipse_gcc_arm -m CY8CPROTO_062_4343W
Finally, the exported project can be imported into Modus Toolbos for further steps.
Otherwise, work with mbed-cli is still fine. Any text-editor can do, and MS Visual Code is especilly recommended. Just follow https://os.mbed.com/docs/mbed-os/v5.15/tools/working-with-mbed-cli.html