Skip to content

python script error when reading back SRAM #1

@doegox

Description

@doegox

Trying the script, loading SRAM to the board worked fine, pressing Enter (without even EMFI), getting this error

ChipSHOUTER-ballisticgel/ballisticgel$ python ballisticgel.py 
 CW521 Ballistic Gel Example Script 
  by NewAE Technology Inc
 This script will continue until you exit with Ctrl-C
Settings: 
  Using slow (raw) mode  : True
  Showing plot of results: False
  Results filename       : None
Starting main loop now: 

LOOP START: Writing data to SRAM...
 Hit enter when glitch inserted
 Reading SRAM data...
Traceback (most recent call last):
  File "ballisticgel.py", line 329, in <module>
    results = cw521.raw_test_compare()
  File "ballisticgel.py", line 243, in raw_test_compare
    din = cw521.read_pattern()
  File "ballisticgel.py", line 102, in read_pattern
    din = self.usb.cmdReadMem(start_addr, len_to_read)
  File "/home/qb/00hardware_guilde/haqerspace/tools/chipshouter/ChipSHOUTER-ballisticgel/ballisticgel/naeusb.py", line 228, in cmdReadMem
    data = self.usbdev().read(self.rep, dlen, timeout=self._timeout)
  File "/home/phil/.local/lib/python2.7/site-packages/usb/core.py", line 988, in read
    self.__get_timeout(timeout))
  File "/home/phil/.local/lib/python2.7/site-packages/usb/backend/libusb0.py", line 542, in bulk_read
    timeout)
  File "/home/phil/.local/lib/python2.7/site-packages/usb/backend/libusb0.py", line 627, in __read
    timeout
  File "/home/phil/.local/lib/python2.7/site-packages/usb/backend/libusb0.py", line 431, in _check
    raise USBError(errmsg, ret)
usb.core.USBError: [Errno None] Connection timed out

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions