This repository provides an example project which uses rules_mbed (https://github.com/mjbots/rules_mbed) to build mbed based STM32F4 projects. It configures two build targets for two different mbed targets, and a target for host based testing.
To compile and run all host based tests:
tools/bazel test //...
To compile all mbed targets in optimized mode:
tools/bazel test -c opt --cpu=stm32f4 //...
ll bazel-bin/example/*.bin