From 1ec6d01acae3f4ef90a579384ed647e9526aa9f8 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Sun, 7 Mar 2010 21:50:36 +0100 Subject: atmega: remove presence check It doesn't really work and it's not portable Signed-off-by: Michael Buesch --- tests/top2049/001-atmega32dip40.test | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tests') 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" } -- cgit v1.2.3