From: travisutk Date: Wed, 25 Nov 2009 16:23:17 +0000 (+0000) Subject: Reports, just glitching for now. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=d747c1fc586cabc5258931d6e438601403abd4ef Reports, just glitching for now. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@241 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/reports/avr/glitch/Makefile b/reports/avr/glitch/Makefile new file mode 100644 index 0000000..398ebfd --- /dev/null +++ b/reports/avr/glitch/Makefile @@ -0,0 +1,12 @@ +graphs: + gnuplot stability.txt diff --git a/reports/avr/glitch/graphs.gnuplot b/reports/avr/glitch/graphs.gnuplot new file mode 100644 index 0000000..1f85343 --- /dev/null +++ b/reports/avr/glitch/graphs.gnuplot @@ -0,0 +1,10 @@ +# Generates graphs about glitching an Atmel AVR + + +#Stability graph. +set term post eps +set output 'stability.eps' +set xlabel "Voltage" +set ylabel "P[identify]" +set title "Atmel AVR Stability" +plot 'stability.txt' diff --git a/reports/avr/glitch/stability.py b/reports/avr/glitch/stability.py new file mode 100755 index 0000000..8554f47 --- /dev/null +++ b/reports/avr/glitch/stability.py @@ -0,0 +1,40 @@ +#!/usr/bin/env python + +import sys; +import binascii; + +sys.path.append('../../../client/') + +from GoodFETAVR import GoodFETAVR; +from intelhex import IntelHex16bit, IntelHex; + +#Initialize FET and set baud rate +client=GoodFETAVR(); +client.serInit() + +#Connect to target +client.start(); + +trials=100; #10,000 is smooth +skip=0x1; + +start=0x860; +stop=0x890; + + + +print "# Threshold voltage test." +print "# %i trials/point, %i steps/point" % (trials, skip); +print "# DAC Range %04x to %04x" % (start, stop); +print "# Generated by GoodFET, http://goodfet.sf.net/" +for voltage in range(start,stop,skip): + + + client.glitchVoltages(voltage, voltage); + count=0; + for i in range(1,trials): + client.start(); + if(client.lockbits()==0xFF): + count+=1; + print "%f, %f" % (voltage*(3.3/4096.0),count*1.0/trials); + diff --git a/reports/avr/glitch/stability.txt b/reports/avr/glitch/stability.txt new file mode 100644 index 0000000..4dba581 --- /dev/null +++ b/reports/avr/glitch/stability.txt @@ -0,0 +1,52 @@ +# Threshold voltage test. +# 10000 trials/point, 1 steps/point +# DAC Range 0860 to 0890 +# Generated by GoodFET, http://goodfet.sf.net/ +1.727344, 0.137300 +1.728149, 0.171200 +1.728955, 0.189500 +1.729761, 0.200700 +1.730566, 0.214200 +1.731372, 0.217900 +1.732178, 0.226700 +1.732983, 0.230500 +1.733789, 0.237000 +1.734595, 0.240800 +1.735400, 0.244200 +1.736206, 0.253300 +1.737012, 0.255600 +1.737817, 0.258800 +1.738623, 0.269800 +1.739429, 0.277600 +1.740234, 0.279500 +1.741040, 0.285300 +1.741846, 0.290100 +1.742651, 0.292500 +1.743457, 0.294600 +1.744263, 0.298800 +1.745068, 0.300200 +1.745874, 0.295600 +1.746680, 0.281400 +1.747485, 0.256200 +1.748291, 0.225000 +1.749097, 0.190700 +1.749902, 0.182000 +1.750708, 0.240200 +1.751514, 0.410800 +1.752319, 0.522600 +1.753125, 0.622200 +1.753931, 0.690000 +1.754736, 0.748900 +1.755542, 0.781400 +1.756348, 0.833700 +1.757153, 0.856600 +1.757959, 0.886400 +1.758765, 0.908300 +1.759570, 0.923300 +1.760376, 0.949000 +1.761182, 0.964900 +1.761987, 0.975800 +1.762793, 0.985400 +1.763599, 0.991200 +1.764404, 0.994300 +1.765210, 0.996600 diff --git a/reports/avr/glitch/stock/stability.txt b/reports/avr/glitch/stock/stability.txt new file mode 100644 index 0000000..4dba581 --- /dev/null +++ b/reports/avr/glitch/stock/stability.txt @@ -0,0 +1,52 @@ +# Threshold voltage test. +# 10000 trials/point, 1 steps/point +# DAC Range 0860 to 0890 +# Generated by GoodFET, http://goodfet.sf.net/ +1.727344, 0.137300 +1.728149, 0.171200 +1.728955, 0.189500 +1.729761, 0.200700 +1.730566, 0.214200 +1.731372, 0.217900 +1.732178, 0.226700 +1.732983, 0.230500 +1.733789, 0.237000 +1.734595, 0.240800 +1.735400, 0.244200 +1.736206, 0.253300 +1.737012, 0.255600 +1.737817, 0.258800 +1.738623, 0.269800 +1.739429, 0.277600 +1.740234, 0.279500 +1.741040, 0.285300 +1.741846, 0.290100 +1.742651, 0.292500 +1.743457, 0.294600 +1.744263, 0.298800 +1.745068, 0.300200 +1.745874, 0.295600 +1.746680, 0.281400 +1.747485, 0.256200 +1.748291, 0.225000 +1.749097, 0.190700 +1.749902, 0.182000 +1.750708, 0.240200 +1.751514, 0.410800 +1.752319, 0.522600 +1.753125, 0.622200 +1.753931, 0.690000 +1.754736, 0.748900 +1.755542, 0.781400 +1.756348, 0.833700 +1.757153, 0.856600 +1.757959, 0.886400 +1.758765, 0.908300 +1.759570, 0.923300 +1.760376, 0.949000 +1.761182, 0.964900 +1.761987, 0.975800 +1.762793, 0.985400 +1.763599, 0.991200 +1.764404, 0.994300 +1.765210, 0.996600