This example is based on mbed-ce-custom-targets and demonstrate how to run custom targets under MbedCE. For example BluePill STM32F103
This guide assumes you are familiar with the MbedCE build system, if not, please visit https://github.com/mbed-ce/mbed-os/wiki
- Open OS Command line and navigate to your workspace, for exampe
C:\MbedCE_projects\ - Into Command line type
git clone --no-recurse-submodules https://github.com/mbed-ce-libraries-examples/Custom-target-example-Extended.git HerePlaceMyProjectNamecd HerePlaceMyProjectName && git submodule update --init -- mbed-os custom_targets- if you want to move MbedOS to the latest tracked commit without fetching nested submodules inside
mbed-os, usegit submodule update --remote -- mbed-os - nested submodules inside
mbed-osare intentionally not downloaded here because the build system handles them automatically
- On the last line of cmake-variants.yaml file set your upload method. Default is NONE = it generates just .bin file. Optimal for external loaders like DFU method and so on (I personaly prefer STM32CUBE).
- Build the project