commit | 0297f60398038e7ba72ac8bb2f4b7c5629c54455 | [log] [tgz] |
---|---|---|
author | Anthony DiGirolamo <tonymd@google.com> | Thu Oct 12 19:20:18 2023 +0000 |
committer | Anthony DiGirolamo <tonymd@google.com> | Thu Oct 12 19:20:18 2023 +0000 |
tree | d0c3a7d847b0bfaeb50150be831fbe7a7ea39f73 | |
parent | 172cd97add88a8c752224593111cce0a5e02fa4d [diff] |
Initial RGB Status, IMU, fuel guage, and IO expander tests Change-Id: I583f019d942eac36420763d866c5a68dd9cdb337 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/kudzu/+/175352 Reviewed-by: Armando Montanez <amontanez@google.com>
pw build
Run either of the host build apps:
./out/gn/host_debug/obj/applications/terminal_display/bin/terminal_demo
./out/gn/host_debug/obj/applications/32blit_demo/bin/32blit_demo
picotool reboot -f -u sleep 3 picotool load -x ./out/gn/rp2040/obj/applications/terminal_display/terminal_demo.uf2
picotool reboot -f -u sleep 3 picotool load -x ./out/gn/rp2040/obj/applications/32blit_demo/32blit_demo.uf2
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