Skip to content

Commit 39a37d8

Browse files
committed
change rp2040 hw test to use pyocd for better stability/performance than openocd
1 parent cf162e2 commit 39a37d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build_arm.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ jobs:
171171
# - pico-probe is /dev/ttyACM0
172172
# ---------------------------------------
173173
hw-rp2040-test:
174-
# Limit the run to only hathach due to limited resource on RPI4
174+
# run only with hathach's commit due to limited resource on RPI4
175175
if: github.repository_owner == 'hathach'
176176
needs: build-arm
177177
runs-on: [self-hosted, Linux, ARM64, rp2040]
@@ -190,7 +190,8 @@ jobs:
190190

191191
- name: Create flash.sh
192192
run: |
193-
echo > flash.sh 'cmdout=$(openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program $1 reset exit")'
193+
#echo > flash.sh 'cmdout=$(openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program $1 reset exit")'
194+
echo > flash.sh 'pyocd flash -t rp2040 $1'
194195
echo >> flash.sh 'if (( $? )) ; then echo $cmdout ; fi'
195196
chmod +x flash.sh
196197

0 commit comments

Comments
 (0)