roll: third_party/pigweed-experimental 9356f2a..8f8e09c (44 commits)

8f8e09c:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/268155 roll: .bazelversion: 8.1.0
c7be1e0:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/268192 roll: third_party/pigweed 4167b59..416b03b (3 commits)
fac398c:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/267860 roll: third_party/pigweed bfc7d9e..4167b59 (3 commits)
ae619be:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/267838 roll: third_party/pigweed 7ab1856..bfc7d9e (3 commits)
a22d48e:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/267857 roll: third_party/pigweed pw_interrupt_freertos: Add pw_interrupt backend for FreeRTOS
d9d4b26:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/267835 roll: third_party/pigweed 4fc31df..0481c3f (3 commits)
2e5774f:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/267833 roll: third_party/pigweed a8a94ac..4fc31df (11 commits)
025b5ad:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/267853 roll: third_party/pigweed e1e82ce..a8a94ac (11 commits)
3b8ef4e:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/267555 roll: third_party/pigweed pw_bluetooth_sapphire: Fix incoming BR/EDR connection stats
83fe9d4:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/267594 roll: third_party/pigweed 0da60b1..34fafbc (3 commits)
62ec369:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/267593 roll: third_party/pigweed c5edf98..0da60b1 (6 commits)
fe3068d:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/267218 roll: third_party/pigweed df4de4b..c5edf98 (2 commits)
518670e:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/267217 roll: third_party/pigweed 6aeb739..df4de4b (3 commits)
3665190:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/267214 roll: third_party/pigweed 85ff31d..6aeb739 (6 commits)
8aed01b:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/267212 roll: third_party/pigweed 9ea3210..85ff31d (3 commits)
5a7722b:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/267132 roll: third_party/pigweed pw_ide: Add VSC end-to-end extension testing
669b4c8:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/266955 roll: third_party/pigweed f9a09e0..cb8a650 (6 commits)
1faa560:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/266935 roll: third_party/pigweed 72b0188..f9a09e0 (7 commits)
872bbdd:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/266952 roll: third_party/pigweed ea358b7..72b0188 (6 commits)
6498ceb:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/266832 roll: third_party/pigweed roll: go
6f81d47:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/266692 roll: third_party/pigweed roll: buildifier
9ad702e:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/266340 roll: third_party/pigweed roll: luci
2afc8d3:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/266372 roll: third_party/pigweed 0c4197b..0c62aa4 (2 commits)
d694640:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/266057 roll: third_party/pigweed 6bfc7bd..0c4197b (3 commits)
5d2f299:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/266313 roll: third_party/pigweed 4223869..6bfc7bd (3 commits)
0ccc23f:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/266292 roll: third_party/pigweed 82c223e..4223869 (8 commits)
17ea608:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/266212 roll: third_party/pigweed 6681e2e..82c223e (9 commits)
1e95994:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/266052 roll: third_party/pigweed pw_containers: Refactor docs
79c734f:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/265854 roll: third_party/pigweed pw_allocator: Remove SynchronizedAllocatorForTest
c7a5328:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/265797 roll: third_party/pigweed 15611b6..063865c (3 commits)
c5d0ec3:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/265795 roll: third_party/pigweed 5ca7ab7..15611b6 (4 commits)
3e8f315:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/265793 roll: third_party/pigweed 6c6ca80..5ca7ab7 (6 commits)
2c228c4:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/265712 roll: third_party/pigweed 23e713a..6c6ca80 (2 commits)
f3a9955:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/265433 roll: third_party/pigweed 5f9420a..23e713a (5 commits)
9089fdf:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/265472 roll: third_party/pigweed 89a3c9c..5f9420a (4 commits)
118c3ec:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/265332 roll: third_party/pigweed d9dc917..89a3c9c (4 commits)
2fa61dd:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/265114 roll: third_party/pigweed cf0119c..d9dc917 (5 commits)
f719e39:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/265112 roll: third_party/pigweed 832ab7f..cf0119c (2 commits)
deb0044:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/264820 roll: third_party/pigweed 384f8c9..832ab7f (2 commits)
22cadcd:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/265012 roll: third_party/pigweed 304e574..384f8c9 (8 commits)
5bf2370:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/264816 roll: third_party/pigweed 809d32b..304e574 (5 commits)
3ea0da8:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/264812 roll: third_party/pigweed docs: Add Bazel migration blog post
3c47043:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/264419 roll: third_party/pigweed 31494ac..3587a70 (8 commits)
c168947:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/264417 roll: third_party/pigweed c1467e3..31494ac (5 commits)

Rolled-Repo: https://pigweed.googlesource.com/pigweed/experimental
Rolled-Commits: 9356f2ac0da218..8f8e09c741d588
Roll-Count: 1
Roller-URL: https://cr-buildbucket.appspot.com/build/8722873869151957601
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I46e15d98cc126fe1c7c2374e104b139fb362c384
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/kudzu/+/268024
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>
1 file changed
tree: 4ed9450e99e852d7df53cd7fed4b1d87c7d9dee4
  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))