Skip to content

Commit c87debc

Browse files
committed
box_firmware: update flash script to use gpio
1 parent 28930f4 commit c87debc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

hardware/firmware/tools/flash_rp2040_firmware.sh

+11
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ if [[ -e "${tty}" ]]; then
1919
stty -F "${tty}" 134
2020
fi
2121

22+
if ! lsusb | grep -qE '\<2e8a:0003\>'; then
23+
gpioset gpiochip0 17=1
24+
gpioset gpiochip0 7=1
25+
26+
sleep 1
27+
28+
gpioset gpiochip0 17=0
29+
gpioset gpiochip0 7=0
30+
fi
31+
32+
2233
i=0
2334
while ! lsusb | grep -qE '\<2e8a:0003\>'; do
2435
sleep 0.5

0 commit comments

Comments
 (0)