roll: third_party/pigweed-experimental 6c703b4..bcbc69b (42 commits)

bcbc69b:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/275813 pw_graphics: Pylint fix
a4491db:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/275834 roll: third_party/pigweed cee9c4c..43bcf7e (8 commits)
de6e520:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/275605 roll: third_party/pigweed 54b9b02..cee9c4c (11 commits)
7a78694:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/275752 roll: third_party/pigweed f1b4e9d..54b9b02 (2 commits)
94c57a6:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/275183 roll: third_party/pigweed clang-tidy: Enable bugprone-forwarding-reference-overload
3f0d426:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/275182 roll: third_party/pigweed 4bb2686..f9979ae (4 commits)
b6b64fe:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/275432 roll: third_party/pigweed 9b44d6e..4bb2686 (4 commits)
8ef2757:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/275252 roll: third_party/pigweed 5fdadeb..9b44d6e (6 commits)
012a1ab:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/274997 roll: third_party/pigweed pw_config_loader: Move find_config.py
5656488:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/274873 roll: third_party/pigweed 8610963..8b12608 (3 commits)
54adaee:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/274692 roll: third_party/pigweed 2e15e17..8610963 (2 commits)
98970d0:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/274476 roll: third_party/pigweed b3e7f59..2e15e17 (4 commits)
2ed2bf8:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/274574 roll: third_party/pigweed pw_toolchain: Add msan toolchain feature
0074be8:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/274472 roll: third_party/pigweed 690cacd..15e7d20 (3 commits)
839c889:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/274374 roll: third_party/pigweed roll: go
5bbe6ff:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/274255 roll: third_party/pigweed roll: gn
86d2d47:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/274253 roll: third_party/pigweed 3fa32a8..3c0823b (2 commits)
a49a9be:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/273948 roll: third_party/pigweed 870f8f8..3fa32a8 (7 commits)
f1319ec:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/273941 roll: third_party/pigweed b3bfda8..870f8f8 (12 commits)
7d5f425:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/273932 roll: third_party/pigweed 700d01e..b3bfda8 (5 commits)
faf49ce:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/273485 roll: third_party/pigweed b2ed425..700d01e (4 commits)
bf51b14:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/273632 roll: third_party/pigweed 7d1b8cd..b2ed425 (2 commits)
cff2d11:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/273512 roll: third_party/pigweed 351d6c1..7d1b8cd (4 commits)
49f0823:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/273352 roll: third_party/pigweed 986272f..351d6c1 (4 commits)
80166a5:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/273252 roll: third_party/pigweed c4fca6b..986272f (2 commits)
9f52b0d:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/273117 roll: third_party/pigweed pw_protobuf: Add decoder fuzz test
3c0512b:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/273115 roll: third_party/pigweed 0449995..c783ff2 (3 commits)
04d7c9d:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/273002 roll: third_party/pigweed 386297a..0449995 (2 commits)
c2e53e2:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272899 roll: third_party/pigweed 77ad850..386297a (2 commits)
f9539bd:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272893 roll: third_party/pigweed pw_presubmit: Enable buildifier formatting in Bazel
b4f2516:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272626 roll: third_party/pigweed 04dc1da..d7bdeda (5 commits)
740f9a7:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272576 roll: third_party/pigweed 1a42475..04dc1da (6 commits)
6b03211:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272574 roll: third_party/pigweed d058875..1a42475 (5 commits)
d271b57:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272514 roll: third_party/pigweed 8ffdd15..d058875 (2 commits)
1c5278c:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272223 roll: third_party/pigweed roll: gn
01cc035:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272341 roll: third_party/pigweed roll: luci
d19bb89:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272338 roll: third_party/pigweed 1ba12f0..8b96594 (2 commits)
83c2829:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272335 roll: third_party/pigweed b56458d..1ba12f0 (2 commits)
39a1903:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272332 roll: third_party/pigweed 3e26f94..b56458d (2 commits)
7665460:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272154 roll: third_party/pigweed 3a63bba..3e26f94 (5 commits)
508707b:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272152 roll: third_party/pigweed 2134bf8..3a63bba (2 commits)
74f6e36:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272054 roll: third_party/pigweed pw_bluetooth: Fixup IWYU pragmas

Rolled-Repo: https://pigweed.googlesource.com/pigweed/experimental
Rolled-Commits: 6c703b4232c7a2..bcbc69b777f663
Roll-Count: 1
Roller-URL: https://cr-buildbucket.appspot.com/build/8720391321302196945
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: Ic0471f65e8e8288436d203fe1de169b5cdc52209
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/kudzu/+/275845
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
1 file changed
tree: 0486f7403c581f32d2220b34d7bce8f92deabcce
  1. applications/
  2. build_overrides/
  3. lib/
  4. pcb/
  5. targets/
  6. third_party/
  7. tools/
  8. .bazelignore
  9. .bazelrc
  10. .bazelversion
  11. .gitignore
  12. .gitmodules
  13. .gn
  14. activate.bat
  15. banner.txt
  16. bootstrap.bat
  17. bootstrap.fish
  18. bootstrap.sh
  19. BUILD.gn
  20. BUILDCONFIG.gn
  21. OWNERS
  22. pigweed.json
  23. README.md
  24. WORKSPACE
README.md

Kudzu

Getting Started

Make sure you've set up Pigweed's prerequisites.

If you're on Windows, you can automate the initial setup by downloading the first-time setup script from cmd.exe:

curl https://pigweed.googlesource.com/pigweed/sample_project/+/main/tools/setup_windows_prerequisites.bat?format=TEXT > setup_pigweed_prerequisites.b64 && certutil -decode -f setup_pigweed_prerequisites.b64 setup_pigweed_prerequisites.bat && del setup_pigweed_prerequisites.b64

Then you can run the script with the following command in cmd.exe:

setup_pigweed_prerequisites.bat

Note: You may see a few UAC prompts as the script installs Git, Python, and enables developer mode.

Once that is done, you can clone this project with the following command:

git clone https://pigweed.googlesource.com/pigweed/kudzu

Environment setup

Pigweed uses a local development environment for most of its tools. This means tools are not installed to your machine, and are instead stored in a directory inside your project (Note: git ignores this directory). The tools are temporarily added to the PATH of the current shell session.

To make sure the latest tooling has been fetched and set up, run the bootstrap command for your operating system:

Windows

bootstrap.bat

Linux & Mac

source ./bootstrap.sh

After tooling updates, you might need to run bootstrap again to ensure the latest tools.

After the initial bootstrap, you can use use the activate scripts to configure the current shell for development without doing a full update.

Windows

activate.bat

Linux & Mac

source ./activate.sh

Device tools setup

Install the pico SDK and tool to flash the device.

pw package install pico_sdk
pw package install picotool

These packages will be built and added to the path automatically. There is no need to add these to the gn arguments.

Linux Setup

GLFW Dependency:

Install the GLFW OpenGL library

sudo apt install libglfw3-dev libglfw3

Udev Rules:

Put the following into /usr/lib/udev/rules.d/49-picoprobe.rules

# Pico app mode
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="000a", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="000a", MODE:="0666", SYMLINK+="rp2040"

# RP2 Boot
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0003", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0003", MODE:="0666", SYMLINK+="rp2040"

# Picoprobe
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0004", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0004", MODE:="0666", SYMLINK+="picoprobe"

This will also symlink /dev/picoprobe and /dev/rp2040 to the respective vendor and product ids.

Apply the above rules with:

sudo udevadm control --reload-rules
sudo udevadm trigger

Compile:

pw build

Run:

Host

Run the host app and connect to it via pw console:

./out/gn/host_device_simulator.speed_optimized/obj/applications/badge/bin/badge & \
  pw console --socket-addr default ; \
  killall badge

Kudzu

export ELF=./out/gn/rp2040.size_optimized/obj/applications/badge/bin/badge.elf

picotool reboot -f -u && \
  sleep 3 && \
  picotool load -x $ELF

Connect with pw console:

pw console --verbose \
  --baudrate 115200 \
  --token-databases ./out/gn/rp2040.size_optimized/obj/applications/badge/bin/badge.elf \
  --device /dev/rp2040

From Python Repl window you can issue RPCs interactively:

>>> device.rpcs.kudzu.rpc.Kudzu.PackageTemp()
(Status.OK, kudzu.rpc.PackageTempResponse(temp=27.60657501220703))