Skip to content

Commit 757ba06

Browse files
quadEpcsTester: Ready for shifters
1 parent 1d32cb8 commit 757ba06

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

femb_python/test_measurements/quadEpcsTester/testQuadEPCS.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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("\nWaiting %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("\nTested %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("\nInitial 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

Comments
 (0)