Skip to content

Commit

Permalink
feat: Udpate testing elfs
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Feb 7, 2025
1 parent b5119f3 commit 12fb4b2
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/hil.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env:
jobs:
build-espflash:
name: Build espflash
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -94,16 +94,16 @@ jobs:
- name: monitor test
run: bash espflash/tests/scripts/monitor.sh

# - name: erase-flash test
# run: bash espflash/tests/scripts/erase-flash.sh
- name: erase-flash test
run: bash espflash/tests/scripts/erase-flash.sh

- name: save-image/write-bin test
run: |
bash espflash/tests/scripts/save-image_write-bin.sh ${{ matrix.board.mcu }} ${{ matrix.board.flag }} ${{ env.ESPFLASH_APP }}
bash espflash/tests/scripts/save-image_write-bin.sh ${{ matrix.board.mcu }} ${{ env.ESPFLASH_APP }}
bash espflash/tests/scripts/monitor.sh
# - name: erase-region test
# run: bash espflash/tests/scripts/erase-region.sh
- name: erase-region test
run: bash espflash/tests/scripts/erase-region.sh

- name: hold-in-reset test
run: bash espflash/tests/scripts/hold-in-reset.sh
Expand Down
7 changes: 7 additions & 0 deletions espflash/tests/data/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
The elf files under this folder have been generated using `[email protected]`:

```
esp-generate --chip=$CHIP --headless $CHIP
cd $CHIP
cargo build --release
```
Binary file modified espflash/tests/data/esp32
Binary file not shown.
Binary file modified espflash/tests/data/esp32c2
Binary file not shown.
Binary file modified espflash/tests/data/esp32c3
Binary file not shown.
Binary file modified espflash/tests/data/esp32c6
Binary file not shown.
Binary file modified espflash/tests/data/esp32h2
Binary file not shown.
Binary file modified espflash/tests/data/esp32s2
Binary file not shown.
Binary file modified espflash/tests/data/esp32s3
Binary file not shown.
7 changes: 6 additions & 1 deletion espflash/tests/scripts/save-image_write-bin.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/usr/bin/env bash

result=$(espflash save-image --merge --chip $1 $2 $3 app.bin 2>&1)
# if $1 is esp32c2, create an variable that contains `-x 26mhz`
if [[ $1 == "esp32c2" ]]; then
freq="-x 26mhz"
fi

result=$(espflash save-image --merge --chip $1 $freq $2 app.bin 2>&1)
echo "$result"
if [[ ! $result =~ "Image successfully saved!" ]]; then
exit 1
Expand Down

0 comments on commit 12fb4b2

Please sign in to comment.