Skip to content

Commit

Permalink
Improvement for flashing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed May 4, 2023
1 parent fa80f55 commit e2b55da
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
8 changes: 1 addition & 7 deletions flash-launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,4 @@ set -ex
make system76/launch_3:default

FIRMWARE="$(realpath .build/system76_launch_3_default.elf)"
cd openocd
sudo src/openocd \
-f interface/cmsis-dap.cfg \
-c "adapter speed 5000" \
-f target/rp2040.cfg \
-s tcl \
-c "program ${FIRMWARE} verify reset exit"
./openocd.sh -c "program ${FIRMWARE} verify reset exit"
8 changes: 1 addition & 7 deletions flash-virgo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,4 @@ set -ex
make system76/virgo_keyboard_test_1:default

FIRMWARE="$(realpath .build/system76_virgo_keyboard_test_1_default.elf)"
cd openocd
sudo src/openocd \
-f interface/cmsis-dap.cfg \
-c "adapter speed 5000" \
-f target/rp2040.cfg \
-s tcl \
-c "program ${FIRMWARE} verify reset exit"
./openocd.sh -c "program ${FIRMWARE} verify reset exit"
11 changes: 11 additions & 0 deletions openocd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

set -ex

cd openocd
sudo src/openocd \
-f interface/cmsis-dap.cfg \
-c "adapter speed 1000" \
-f target/rp2040.cfg \
-s tcl \
"$@"

0 comments on commit e2b55da

Please sign in to comment.