Line 469... |
Line 469... |
print "Board test options: "
|
print "Board test options: "
|
print " -t Marching one and zero test. Device must be empty"
|
print " -t Marching one and zero test. Device must be empty"
|
print " To test dongle erase the flash with command -e"
|
print " To test dongle erase the flash with command -e"
|
print " Enables dongle memory tests to be executed by user"
|
print " Enables dongle memory tests to be executed by user"
|
print " "
|
print " "
|
print " -b Leave flash blanc after test. Used with option -t"
|
print " -b Leave flash blank after test. Used with option -t"
|
print " -l Fast poll loop test. Does poll loop 1024 times"
|
print " -l Fast poll loop test. Does poll loop 1024 times"
|
print " used to stress test connection"
|
print " used to stress test connection"
|
print ""
|
print ""
|
print "Examples:"
|
print "Examples:"
|
print ""
|
print ""
|
Line 892... |
Line 892... |
else:
|
else:
|
don.mode = mode
|
don.mode = mode
|
print 'Dongle HW version code is smaller than 05 some features have been improved on'
|
print 'Dongle HW version code is smaller than 05 some features have been improved on'
|
print 'HW code and Quartus FPGA binary file are available at:'
|
print 'HW code and Quartus FPGA binary file are available at:'
|
print 'http://www.opencores.org/projects.cgi/web/usb_dongle_fpga/overview'
|
print 'http://www.opencores.org/projects.cgi/web/usb_dongle_fpga/overview'
|
print 'Programming is possible with Altera Quartus WE and BYTEBLASTER II cable'
|
print 'Programming is possible with Altera Quartus WE and BYTEBLASTER II cable or'
|
|
print 'compatible clone like X-Blaster http://www.customcircuitsolutions.com/cable.html'
|
|
|
if mode.q == 1: # perform a query from dongle
|
if mode.q == 1: # perform a query from dongle
|
|
|
buf=don.read_data(4,0x0) # word count and word address
|
buf=don.read_data(4,0x0) # word count and word address
|
don.write_command(0x0050) # 0x0098
|
don.write_command(0x0050) # 0x0098
|