summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2010-03-07 21:50:36 +0100
committerMichael Buesch <mb@bu3sch.de>2010-03-07 21:50:36 +0100
commit1ec6d01acae3f4ef90a579384ed647e9526aa9f8 (patch)
treee8638e3822d8c2738a56ac0f177d330b44ba3150 /tests
parent58371a2bacde48172a0219e372551c9b3bb276e4 (diff)
downloadtoprammer-1ec6d01acae3f4ef90a579384ed647e9526aa9f8.tar.xz
toprammer-1ec6d01acae3f4ef90a579384ed647e9526aa9f8.zip
atmega: remove presence check
It doesn't really work and it's not portable Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/top2049/001-atmega32dip40.test13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/top2049/001-atmega32dip40.test b/tests/top2049/001-atmega32dip40.test
index ccaac4f..a6581f5 100644
--- a/tests/top2049/001-atmega32dip40.test
+++ b/tests/top2049/001-atmega32dip40.test
@@ -12,7 +12,7 @@ function test_run
# Check signature
toprammer $args --read-sig "$tmpfile"
- compare_file_to_hex $tmpfile "1E9502" || die "signature mismatch"
+ compare_file_to_hex "$tmpfile" "1E9502" || die "signature mismatch"
toprammer $args --erase
@@ -25,4 +25,15 @@ function test_run
toprammer $args --write-eeprom "$testfile_1k"
toprammer $args --read-eeprom "$tmpfile"
compare_files "$testfile_1k" "$tmpfile" || die "EEPROM mismatch"
+
+ # Check fuses
+ testfuses="A4D9"
+ echo "0x0000: $testfuses .." | toprammer $args -I hex --write-fuse -
+ toprammer $args --read-fuse "$tmpfile"
+ compare_file_to_hex "$tmpfile" "$testfuses" || die "fuses mismatch"
+
+ # Check lockbits
+ toprammer $args --read-lock "$tmpfile"
+ compare_file_to_hex "$tmpfile" "FF" || die "fuses mismatch"
+ toprammer $args --write-lock "$tmpfile"
}
bues.ch cgit interface