mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-06-02 09:46:34 +03:00
Change 1-byte file upload for emulated chip erase
This commit is contained in:
@@ -372,7 +372,7 @@ for (( p=0; p<$arraylength; p++ )); do
|
||||
if [ $benchmark -eq 0 ]; then
|
||||
specify="chip erase"
|
||||
# Emulated chip erase needs a tiny file be uploaded
|
||||
command=(${avrdude[@]} -e -A -U $tfiles/flash_one_byte_0xff_${flash_size}B.hex)
|
||||
command=(${avrdude[@]} -e -FAU flash:w:0xff:m)
|
||||
execute "${command[@]}"
|
||||
result [ $? == 0 ]
|
||||
fi
|
||||
@@ -472,8 +472,7 @@ for (( p=0; p<$arraylength; p++ )); do
|
||||
#
|
||||
if [[ $benchmark -eq 0 ]]; then
|
||||
specify="chip erase and spot check flash is actually erased"
|
||||
command=(${avrdude[@]} -e -A
|
||||
-U $tfiles/flash_one_byte_0xff_${flash_size}B.hex
|
||||
command=(${avrdude[@]} -e -FAU flash:w:0xff:m
|
||||
-U flash:v:$tfiles/holes_flash_0xff_${flash_size}B.hex)
|
||||
execute "${command[@]}"
|
||||
result [ $? == 0 ]
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:010A0000FFF6
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01010000FFFF
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01800000FF80
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01880000FF78
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01100000FFF0
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01C80000FF38
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01140000FFEC
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01020000FFFE
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040001F9
|
||||
:01000000FF00
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040001F9
|
||||
:01080000FFF8
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01200000FFE0
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01240000FFDC
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040001F9
|
||||
:01880000FF78
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01280000FFD8
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01040000FFFC
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01300000FFD0
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01008000FF80
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040002F8
|
||||
:01000000FF00
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01400000FFC0
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01440000FFBC
|
||||
:00000001FF
|
||||
@@ -1,3 +0,0 @@
|
||||
:020000040000FA
|
||||
:01080000FFF8
|
||||
:00000001FF
|
||||
@@ -39,8 +39,6 @@ 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
|
||||
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user