#pe() # #cap.proj.setFilename("../capturev2/test_live.cwp") # #pe() # #cap.saveProject() pe() print "***** Ending User Script *****" if __name__ == '__main__': #Make the application app = cwc.makeApplication() #If you DO NOT want to overwrite/use settings from the GUI version including #the recent files list, uncomment the following: #app.setApplicationName("Capture V2 Scripted") #Get main module capture = cwc.ChipWhispererCapture() #Show window - even if not used capture.show() #NB: Must call processEvents since we aren't using proper event loop pe() #Call user-specific commands usercommands = userScript(capture)
time.sleep(0.05) usi.read(16, startonly=True) usi.write([0x80,0xC0, 0x00, 0x00, 0x10]) p = bytearray(usi.read(16, waitonly=True)) for t in p: print "%2x "%t, #End commands here print "***** Ending User Script *****" #Make the application app = cwc.makeApplication() #If you DO NOT want to overwrite/use settings from the GUI version including #the recent files list, uncomment the following: #app.setApplicationName("Capture V2 Scripted") #Get main module capture = cwc.ChipWhispererCapture() #Show window - even if not used capture.show() #NB: Must call processEvents since we aren't using proper event loop pe() #Call user-specific commands usercommands = userScript(capture)