commit | 8529ceac680f5bc78c2d20f6852755b0c009cf34 | [log] [tgz] |
---|---|---|
author | pigweed-roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> | Sun May 12 01:10:12 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sun May 12 01:10:12 2024 +0000 |
tree | 0175c3fe30846086b8567e73e6bb6b1f8c2a7a2c | |
parent | 61492eb350e13d5c7703d29fca3648e548997ffd [diff] |
[roll third_party/pigweed] [fuchsia_infra] Roll 15 commits 8f25f36af3fa207 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 89f0abc7851319e [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 38a9124b034d926 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 4f7140801cf7dc0 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 03c6ce88dcd8a74 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 365fe6a9da16adc [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 14b81258c254bee [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci d90e46a47dc5fcc [roll] Roll fuchsia-infra-bazel-rules-luci-auth-ci a4a2e961ef66ec5 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 87b6bfb2b24d5e3 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 9cefd38cb95a04f [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 823d7aae89f3544 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 3c79262d54e3c17 [roll] Roll fuchsia-infra-bazel-rules-luci-auth-ci b6b4e13f949f118 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 2bcc1af58003781 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci https://fuchsia.googlesource.com/a/fuchsia-infra-bazel-rules fuchsia_infra Rolled-Commits: bb7e1a43cedcf99..8f25f36af3fa207 Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/209656 Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com> https://pigweed.googlesource.com/pigweed/pigweed third_party/pigweed Rolled-Commits: 253204ef5bcda85..f8ccffa43290479 Roller-URL: https://ci.chromium.org/b/8748186624478549857 GitWatcher: ignore CQ-Do-Not-Cancel-Tryjobs: true Change-Id: I4353e6d88edb69c3b4e56e890fab7781b54c39b3 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/quickstart/bazel/+/209658 Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.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/pigweed/quickstart/bazel
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.
We‘ll assume you already have Bazel on your system. If you don’t, the recommended way to get it is through Bazelisk.
To build the entire project (including building the application for both the host and the STM32 Discovery Board), run
bazel build //...
To run the application locally on your machine, run,
bazel run //src:echo
To flash the firmware to a STM32F429 Discovery Board connected to your machine, run,
bazel run //tools:flash
Note that you don't need to build the firmware first: Bazel knows that the firmware images are needed to flash the board, and will build them for you. And if you edit the source of the firmware or any of its dependencies, it will get rebuilt when you flash.
Run,
bazel run //tools:miniterm -- /dev/ttyACM0 --filter=debug
to communicate with the board. When you transmit a character, you should get the same character back!