commit | a3a1ed57f8a64a86b85c1acd1e8ff71366a3a002 | [log] [tgz] |
---|---|---|
author | pigweed-roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> | Fri Feb 28 14:03:25 2025 -0800 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Feb 28 14:03:25 2025 -0800 |
tree | 7e8008b464cab721780e18e685cfed4a074bcffc | |
parent | d648c0679c9d6274fe23186e26ca061c7168824c [diff] |
roll: third_party/pigweed-experimental e8b0ee0..6c703b4 (27 commits) 6c703b4:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272015 bazel: Tidy up pw_assert dep 55bb0c7:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/272014 bazel: Fix all buildifier warnings 76e8a40:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/271992 roll: third_party/pigweed c39f223..8f3a705 (3 commits) b9ba5d1:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/271895 roll: third_party/pigweed fb7c6e5..c39f223 (3 commits) a64599d:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/271893 roll: third_party/pigweed b4a0ee4..fb7c6e5 (6 commits) e5e6daa:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/271794 roll: third_party/pigweed ec058ef..b4a0ee4 (3 commits) 99e20bf:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/271634 roll: third_party/pigweed e3c7b6b..ec058ef (9 commits) 481cb24:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/271692 roll: third_party/pigweed c75b4f3..e3c7b6b (3 commits) 3bbe48b:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/271394 roll: third_party/pigweed pw_bluetooth_proxy: Deliver pending events for all controller events 8b0abf1:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/271335 roll: third_party/pigweed bed66f8..0a1b485 (3 commits) 1acd9a9:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/271393 roll: third_party/pigweed 8388d9e..bed66f8 (6 commits) e061b33:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/271008 roll: third_party/pigweed pw_env_setup: Add debug info a5e2baa:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/271113 roll: third_party/pigweed f60af3a..454233c (3 commits) 0ee5c8c:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/270999 roll: third_party/pigweed 420e39b..f60af3a (4 commits) 94c8b68:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/271032 roll: third_party/pigweed pw_kernel: Add conditional log_if macros 6b5c0fb:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/270777 roll: third_party/pigweed c53611c..474f5e4 (4 commits) 3452d93:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/270932 roll: third_party/pigweed 98c880b..c53611c (6 commits) acdb127:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/270794 roll: third_party/pigweed 66f0d06..98c880b (4 commits) 917d0fc:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/270792 roll: third_party/pigweed c12c17d..66f0d06 (2 commits) 6c863ee:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/270575 roll: third_party/pigweed roll: luci adff0db:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/270573 roll: third_party/pigweed roll: ninja 20589fc:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/270340 roll: third_party/pigweed 61138fd..7eb28ce (5 commits) 37abb9d:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/270392 roll: third_party/pigweed a4549e5..61138fd (9 commits) 0ddd6ab:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/270233 roll: third_party/pigweed f364df6..a4549e5 (4 commits) ceba59f:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/270012 roll: third_party/pigweed 4ff6944..f364df6 (2 commits) c7eab81:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/269932 roll: third_party/pigweed 85ab4d3..4ff6944 (9 commits) 8de0635:https://pigweed-review.googlesource.com/c/pigweed/experimental/+/269812 roll: third_party/pigweed 0012099..85ab4d3 (7 commits) Rolled-Repo: https://pigweed.googlesource.com/pigweed/experimental Rolled-Commits: e8b0ee01fd1ea5..6c703b4232c7a2 Roll-Count: 1 Roller-URL: https://cr-buildbucket.appspot.com/build/8721654359279539969 GitWatcher: ignore CQ-Do-Not-Cancel-Tryjobs: true Change-Id: I93ff6ad91092a3ad1ef1859ae0d03e84806e1bd6 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/kudzu/+/271938 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>
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
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
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.
Install the GLFW OpenGL library
sudo apt install libglfw3-dev libglfw3
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
pw build
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
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))