Skip to content

Commit

Permalink
XXX test-avrdude: debug output for flash detection error
Browse files Browse the repository at this point in the history
  • Loading branch information
ndim committed Aug 19, 2024
1 parent c481539 commit b28b78c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/test-avrdude
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,13 @@ for (( p=0; p<$arraylength; p++ )); do
bench_eewr_size=$((ee_size/6)) # Approximate(!) size of file holes_pack_my_box_${ee_size}B.hex

if [[ -z "$flash_size" ]]; then
echo "Cannot detect flash; check that \"${pgm_and_target[$p]}\" are valid avrdude options; skipping this test"
continue
echo "Cannot detect flash; check that \"${pgm_and_target[$p]}\" are valid avrdude options; skipping this test"
set -ex
$avrdude_bin $avrdude_conf -c dryrun -p $part -T 'part -m'
$avrdude_bin $avrdude_conf -c dryrun -p $part -T 'part -m' 2>/dev/null | grep flash
$avrdude_bin $avrdude_conf -c dryrun -p $part -T 'part -m' 2>/dev/null | grep flash | awk '{print $2}'
set +ex
continue
fi

# Memories that may or may not be present
Expand Down

0 comments on commit b28b78c

Please sign in to comment.