mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-06-02 09:46:34 +03:00
Widen chip erase tests to also capture -c urclock emulation
This commit is contained in:
@@ -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
|
||||
|
||||
3
tools/test_files/flash_one_byte_0xff_10240B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_10240B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:010A0000FFF6
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_1024B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_1024B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01010000FFFF
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_131072B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_131072B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01800000FF80
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_139264B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_139264B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01880000FF78
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_16384B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_16384B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01100000FFF0
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_204800B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_204800B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01C80000FF38
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_20480B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_20480B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01140000FFEC
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_2048B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_2048B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01020000FFFE
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_262144B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_262144B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040001F9
|
||||
:01000000FF00
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_270336B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_270336B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040001F9
|
||||
:01080000FFF8
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_32768B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_32768B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01200000FFE0
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_36864B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_36864B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01240000FFDC
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_401408B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_401408B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040001F9
|
||||
:01880000FF78
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_40960B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_40960B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01280000FFD8
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_4096B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_4096B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01040000FFFC
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_49152B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_49152B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01300000FFD0
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_512B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_512B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01008000FF80
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_524288B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_524288B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040002F8
|
||||
:01000000FF00
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_65536B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_65536B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01400000FFC0
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_69632B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_69632B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01440000FFBC
|
||||
:00000001FF
|
||||
3
tools/test_files/flash_one_byte_0xff_8192B.hex
Normal file
3
tools/test_files/flash_one_byte_0xff_8192B.hex
Normal file
@@ -0,0 +1,3 @@
|
||||
:020000040000FA
|
||||
:01080000FFF8
|
||||
:00000001FF
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user