Widen chip erase tests to also capture -c urclock emulation

This commit is contained in:
stefanrueger
2024-02-27 22:51:36 +13:00
parent cd41d2b4e2
commit efd6bab19c
23 changed files with 70 additions and 4 deletions

View File

@@ -355,7 +355,8 @@ for (( p=0; p<$arraylength; p++ )); do
#
if [ $benchmark -eq 0 ]; then
specify="chip erase"
command=(${avrdude[@]} -e)
# Emulated chip erase needs a tiny file be uploaded
command=(${avrdude[@]} -e -A -U $tfiles/flash_one_byte_0xff_${flash_size}B.hex)
execute "${command[@]}"
result [ $? == 0 ]
fi
@@ -454,7 +455,9 @@ for (( p=0; p<$arraylength; p++ )); do
# Chip erase and verify
#
specify="chip erase and spot check flash is actually erased"
command=(${avrdude[@]} -e -Uflash:v:$tfiles/holes_flash_0xff_${flash_size}B.hex)
command=(${avrdude[@]} -e -A
-U $tfiles/flash_one_byte_0xff_${flash_size}B.hex
-U flash:v:$tfiles/holes_flash_0xff_${flash_size}B.hex)
execute "${command[@]}"
result [ $? == 0 ]
if [[ $? == 0 && $check_eeprom -eq 1 && $is_bootloader -eq 0 && $benchmark -eq 0 ]]; then

View File

@@ -0,0 +1,3 @@
:020000040000FA
:010A0000FFF6
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01010000FFFF
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01800000FF80
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01880000FF78
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01100000FFF0
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01C80000FF38
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01140000FFEC
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01020000FFFE
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040001F9
:01000000FF00
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040001F9
:01080000FFF8
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01200000FFE0
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01240000FFDC
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040001F9
:01880000FF78
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01280000FFD8
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01040000FFFC
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01300000FFD0
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01008000FF80
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040002F8
:01000000FF00
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01400000FFC0
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01440000FFBC
:00000001FF

View File

@@ -0,0 +1,3 @@
:020000040000FA
:01080000FFF8
:00000001FF

View File

@@ -39,6 +39,8 @@ for i in ${flashsizes[@]}; do
-generate $((i-i/3)) $((i-i/4-2)) -repeat-data 0xff \
-generate $((i-i/4-1)) $((i-i/4)) -repeat-data 0xff \
-o holes_flash_0xff_${i}B.hex -Intel
# A file with a single 0xff byte
srec_cat -generate $((i/4)) $((i/4+1)) -repeat-data 0xff -o flash_one_byte_0xff_${i}B.hex -Intel
done
###
@@ -50,5 +52,3 @@ for i in ${usersigsizes[@]}; do
# Empty memory
srec_cat -generate 0x00 $i -repeat-data 0xff -o 0xff_${i}B.hex -Intel
done