Skip to content

Commit

Permalink
change rp2040 hw test to use pyocd for better stability/performance t…
Browse files Browse the repository at this point in the history
…han openocd
  • Loading branch information
hathach committed Feb 10, 2023
1 parent cf162e2 commit 39a37d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_arm.yml
Expand Up @@ -171,7 +171,7 @@ jobs:
# - pico-probe is /dev/ttyACM0
# ---------------------------------------
hw-rp2040-test:
# Limit the run to only hathach due to limited resource on RPI4
# run only with hathach's commit due to limited resource on RPI4
if: github.repository_owner == 'hathach'
needs: build-arm
runs-on: [self-hosted, Linux, ARM64, rp2040]
Expand All @@ -190,7 +190,8 @@ jobs:

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

0 comments on commit 39a37d8

Please sign in to comment.