| commit | 908fcdd5986215f23b87d77f081c8d8c0caf579a | [log] [tgz] | 
|---|---|---|
| author | pigweed-roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> | Sun May 26 01:21:01 2024 +0000 | 
| committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sun May 26 01:21:01 2024 +0000 | 
| tree | ed280342e66d9f487b21eaa97754e83027a1606f | |
| parent | 1f483fa77c462046aa60a2fbef3c01b2840f2b56 [diff] | 
[roll third_party/pigweed] [fuchsia_infra] Roll 29 commits edb37415fa6a9bc [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 8f41fa1062ede5b [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 732b3942746a27c [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci e7575eef6997705 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci eb2797d555f4d54 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci cb78a1330344172 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci d2649f5aed8a997 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 730496c011fe6d9 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 57d80f96eca4528 [roll] Roll fuchsia-infra-bazel-rules-clang-cipd p 601d41d932d5560 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 12644a3640415ac [roll] Roll fuchsia-infra-bazel-rules-buildifier-c 479f315b12f6869 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci cab3fea7ad474c7 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci b85a468bc151a40 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci eab9138b42a63d9 [roll] Roll fuchsia-infra-bazel-rules-luci-auth-ci 82ff8d63b9e5a5a [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 6e17a26f3c03a5d [debug] Use FuchsiaDebugSymbolInfo. 0265f70559d0b51 [roll] Roll fuchsia-infra-bazel-rules-shac-cipd pa 106b71f7a98b545 [roll] Roll fuchsia-infra-bazel-rules-luci-auth-ci 385ca37632b74bf [roll] Roll fuchsia-infra-bazel-rules-shac-cipd pa 8c269144d135f07 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci eed6c19016707c7 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci b51b1860e9c6df9 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 0c3ff3d79798ca3 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 137a979ee62387f [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 7c69feb0d52af94 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 83f9a5da5c273ad [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci 679f32de1125c91 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci c3ed3dc3812c5ca [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci https://fuchsia.googlesource.com/a/fuchsia-infra-bazel-rules fuchsia_infra Rolled-Commits: 52383ad4d22365c..edb37415fa6a9bc Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/211631 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: c5c79519d115f29..94e4d0343de0191 Roller-URL: https://ci.chromium.org/b/8746917609020556993 GitWatcher: ignore CQ-Do-Not-Cancel-Tryjobs: true Change-Id: I0592a84f3f3571081559cef08e0a923e1a1e7e14 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/quickstart/bazel/+/211671 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!