@@ -17,7 +17,7 @@ def __init__(self, datadir="data", outlabel="OscillatorTesting"):
1717 self .nFlashes = 4
1818 self .nPages = 20
1919 self .nWriteTries = 3
20- self .nTimeToErase = 240 #Erase bulk cycle time for EPCS64 is 160s max
20+ self .nTimeToErase = 180 #Erase bulk cycle time for EPCS64 is 160s max
2121
2222 self .powerSupplyDevice = None
2323 self .printData = False
@@ -71,17 +71,19 @@ def doTesting(self):
7171
7272 print ("\n Waiting %s seconds for flashes to be erased\n " % (self .nTimeToErase ))
7373 print ("*" * 75 )
74-
74+
75+ #This loop takes up to 268 seconds
7576 startTime = time .time ()
7677 for t in range (self .nTimeToErase ):
78+ print (time .time ())
79+ time .sleep (1 )
7780 for iFlash in range (self .nFlashes ):
7881 if flashToSkip [iFlash ] == False : continue
7982 status = self .femb_config .readStatus (iFlash )
8083 if (status == 0 ):
8184 flashToSkip [iFlash ] = False
8285 timeToErase [iFlash ] = time .time () - startTime
83- time .sleep (1 )
84-
86+
8587 #Check a page (page 5 here) to make sure if things make sense; memory should be erased to 0xFFFFFFFF
8688 for iFlash in range (self .nFlashes ):
8789 if flashToSkip [iFlash ]:
@@ -168,7 +170,7 @@ def doTesting(self):
168170 print ("*" * 75 )
169171 print ("Printing results:" )
170172 print ("\n Tested %s flashes over %s pages (with %s write tries)." % (self .nFlashes , self .nPages , self .nWriteTries ))
171- print ("Initial voltage: %s, final voltage: %s" % (initialVoltage , finalVoltage ))
173+ print ("\n Initial voltage: %s, final voltage: %s" % (initialVoltage , finalVoltage ))
172174 print ("Initial current: %s, final current: %s" % (initialCurrent , finalCurrent ))
173175
174176 for iFlash in range (self .nFlashes ):
0 commit comments