Fix build 1. The pigweed_config no longer exists in ToT Pigweed. 2. The BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN setting is required on dev VMs with no local gcc. Bug: b/299994234 Change-Id: I14c40622eb6d6034433e49da34d230dff6a620d7 Reviewed-on: https://pigweed-review.googlesource.com/c/example/echo/+/174556 Reviewed-by: Armando Montanez <amontanez@google.com> Commit-Queue: Ted Pudlik <tpudlik@google.com>
This repository contains a minimal example of a Bazel-based Pigweed project. It's an echo application for the STM32F429 Discovery Board.
git clone --recursive https://pigweed.googlesource.com/example/echo
If you already cloned but forgot to include --recursive, run git submodule update --init to pull all submodules.
TODO: b/300695111 - Don't require submodules for this example.
To build for the host, run
bazel build //...
To build for the STM32 Discovery Board:
bazel build --platforms=//target:stm32 //...
TODO: b/299994234 - Add tools and instructions for flashing.
TODO: b/299994234 - Add tools and instructions for talking to the device after flashing.