Hi. I just purchased a ChipWhisperer Lite and am trying to get it to run in Windows. I ran
“Chipwhisperer.v5.5.2.Setup.64-bit.exe” from the GitHub release page after enabling long paths and rebooting per the instructions. After rebooting and plugging in the ChipWhisperer, Windows detects the device as a “ChipWhisperer Lite”. Both a blue and green LED are blinking.
When I run the following in “ChipWhisperer Setup Test.ipynb”:
PLATFORM="NOTHING"
%run Setup_Scripts/Setup_Generic.ipynb
I get the following output:
INFO: Found ChipWhisperer😍
---------------------------------------------------------------------------
USBError Traceback (most recent call last)
~\chipwhisperer\jupyter\Setup_Scripts\Setup_Generic.ipynb in <module>
1 import time
2 time.sleep(0.05)
----> 3 scope.default_setup()
4 def reset_target(scope):
5 if PLATFORM == "CW303" or PLATFORM == "CWLITEXMEGA":
i:\chip_whisperer\chipwhisperer5_64\cw\home\portable\chipwhisperer\software\chipwhisperer\capture\scopes\OpenADC.py in default_setup(self)
165
166 self.clock.adc_src = "clkgen_x4"
--> 167 self.io.cdc_settings = 0
168
169 count = 0
i:\chip_whisperer\chipwhisperer5_64\cw\home\portable\chipwhisperer\software\chipwhisperer\common\utils\util.py in __setattr__(self, name, value)
349
350 def __setattr__(self, name, value):
--> 351 if hasattr(self, '_new_attributes_disabled') and self._new_attributes_disabled and not hasattr(self, name): # would this create a new attribute?
352 raise AttributeError("Attempt to set unknown attribute in %s"%self.__class__, name)
353 super(DisableNewAttr, self).__setattr__(name, value)
i:\chip_whisperer\chipwhisperer5_64\cw\home\portable\chipwhisperer\software\chipwhisperer\capture\scopes\cwhardware\ChipWhispererExtra.py in cdc_settings(self)
210 if ver < '0.30':
211 return None
--> 212 return self.cwe.oa.serial.get_cdc_settings()
213
214 @cdc_settings.setter
i:\chip_whisperer\chipwhisperer5_64\cw\home\portable\chipwhisperer\software\chipwhisperer\hardware\naeusb\naeusb.py in get_cdc_settings(self)
670
671 def get_cdc_settings(self):
--> 672 return self.usbtx.readCtrl(self.CMD_CDC_SETTINGS_EN, dlen=2)
673
674 def set_cdc_settings(self, port=[1, 1]):
i:\chip_whisperer\chipwhisperer5_64\cw\home\portable\chipwhisperer\software\chipwhisperer\hardware\naeusb\naeusb.py in readCtrl(self, cmd, value, dlen)
501 """
502 # Vendor-specific, IN, interface control transfer
--> 503 return self.usbdev().ctrl_transfer(0xC1, cmd, value, 0, dlen, timeout=self._timeout)
504
505 def cmdReadMem(self, addr, dlen):
~\WPy64-3771\python-3.7.7.amd64\lib\site-packages\usb\core.py in ctrl_transfer(self, bmRequestType, bRequest, wValue, wIndex, data_or_wLength, timeout)
1077 wIndex,
1078 buff,
-> 1079 self.__get_timeout(timeout))
1080
1081 if isinstance(data_or_wLength, array.array) \
~\WPy64-3771\python-3.7.7.amd64\lib\site-packages\usb\backend\libusb1.py in ctrl_transfer(self, dev_handle, bmRequestType, bRequest, wValue, wIndex, data, timeout)
899 cast(addr, POINTER(c_ubyte)),
900 length,
--> 901 timeout))
902
903 return ret
~\WPy64-3771\python-3.7.7.amd64\lib\site-packages\usb\backend\libusb1.py in _check(ret)
602 raise USBTimeoutError(_strerror(ret), ret, _libusb_errno[ret])
603 else:
--> 604 raise USBError(_strerror(ret), ret, _libusb_errno[ret])
605
606 return ret
USBError: [Errno 32] Pipe error
---------------------------------------------------------------------------
USBError Traceback (most recent call last)
<ipython-input-6-55d47f5b71c5> in <module>
1 PLATFORM="NOTHING"
----> 2 get_ipython().run_line_magic('run', 'Setup_Scripts/Setup_Generic.ipynb')
~\WPy64-3771\python-3.7.7.amd64\lib\site-packages\IPython\core\interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
2346 kwargs['local_ns'] = self.get_local_scope(stack_depth)
2347 with self.builtin_trap:
-> 2348 result = fn(*args, **kwargs)
2349 return result
2350
~\WPy64-3771\python-3.7.7.amd64\lib\site-packages\decorator.py in fun(*args, **kw)
230 if not kwsyntax:
231 args, kw = fix(args, kw, sig)
--> 232 return caller(func, *(extras + args), **kw)
233 fun.__name__ = func.__name__
234 fun.__doc__ = func.__doc__
~\WPy64-3771\python-3.7.7.amd64\lib\site-packages\IPython\core\magic.py in <lambda>(f, *a, **k)
185 # but it's overkill for just that one bit of state.
186 def magic_deco(arg):
--> 187 call = lambda f, *a, **k: f(*a, **k)
188
189 if callable(arg):
~\WPy64-3771\python-3.7.7.amd64\lib\site-packages\IPython\core\magics\execution.py in run(self, parameter_s, runner, file_finder)
722 with preserve_keys(self.shell.user_ns, '__file__'):
723 self.shell.user_ns['__file__'] = filename
--> 724 self.shell.safe_execfile_ipy(filename, raise_exceptions=True)
725 return
726
~\WPy64-3771\python-3.7.7.amd64\lib\site-packages\IPython\core\interactiveshell.py in safe_execfile_ipy(self, fname, shell_futures, raise_exceptions)
2833 result = self.run_cell(cell, silent=True, shell_futures=shell_futures)
2834 if raise_exceptions:
-> 2835 result.raise_error()
2836 elif not result.success:
2837 break
~\WPy64-3771\python-3.7.7.amd64\lib\site-packages\IPython\core\interactiveshell.py in raise_error(self)
329 raise self.error_before_exec
330 if self.error_in_exec is not None:
--> 331 raise self.error_in_exec
332
333 def __repr__(self):
[... skipping hidden 1 frame]
<ipython-input-6-e4c0e15e67da> in <module>
1 import time
2 time.sleep(0.05)
----> 3 scope.default_setup()
4 def reset_target(scope):
5 if PLATFORM == "CW303" or PLATFORM == "CWLITEXMEGA":
i:\chip_whisperer\chipwhisperer5_64\cw\home\portable\chipwhisperer\software\chipwhisperer\capture\scopes\OpenADC.py in default_setup(self)
165
166 self.clock.adc_src = "clkgen_x4"
--> 167 self.io.cdc_settings = 0
168
169 count = 0
i:\chip_whisperer\chipwhisperer5_64\cw\home\portable\chipwhisperer\software\chipwhisperer\common\utils\util.py in __setattr__(self, name, value)
349
350 def __setattr__(self, name, value):
--> 351 if hasattr(self, '_new_attributes_disabled') and self._new_attributes_disabled and not hasattr(self, name): # would this create a new attribute?
352 raise AttributeError("Attempt to set unknown attribute in %s"%self.__class__, name)
353 super(DisableNewAttr, self).__setattr__(name, value)
i:\chip_whisperer\chipwhisperer5_64\cw\home\portable\chipwhisperer\software\chipwhisperer\capture\scopes\cwhardware\ChipWhispererExtra.py in cdc_settings(self)
210 if ver < '0.30':
211 return None
--> 212 return self.cwe.oa.serial.get_cdc_settings()
213
214 @cdc_settings.setter
i:\chip_whisperer\chipwhisperer5_64\cw\home\portable\chipwhisperer\software\chipwhisperer\hardware\naeusb\naeusb.py in get_cdc_settings(self)
670
671 def get_cdc_settings(self):
--> 672 return self.usbtx.readCtrl(self.CMD_CDC_SETTINGS_EN, dlen=2)
673
674 def set_cdc_settings(self, port=[1, 1]):
i:\chip_whisperer\chipwhisperer5_64\cw\home\portable\chipwhisperer\software\chipwhisperer\hardware\naeusb\naeusb.py in readCtrl(self, cmd, value, dlen)
501 """
502 # Vendor-specific, IN, interface control transfer
--> 503 return self.usbdev().ctrl_transfer(0xC1, cmd, value, 0, dlen, timeout=self._timeout)
504
505 def cmdReadMem(self, addr, dlen):
~\WPy64-3771\python-3.7.7.amd64\lib\site-packages\usb\core.py in ctrl_transfer(self, bmRequestType, bRequest, wValue, wIndex, data_or_wLength, timeout)
1077 wIndex,
1078 buff,
-> 1079 self.__get_timeout(timeout))
1080
1081 if isinstance(data_or_wLength, array.array) \
~\WPy64-3771\python-3.7.7.amd64\lib\site-packages\usb\backend\libusb1.py in ctrl_transfer(self, dev_handle, bmRequestType, bRequest, wValue, wIndex, data, timeout)
899 cast(addr, POINTER(c_ubyte)),
900 length,
--> 901 timeout))
902
903 return ret
~\WPy64-3771\python-3.7.7.amd64\lib\site-packages\usb\backend\libusb1.py in _check(ret)
602 raise USBTimeoutError(_strerror(ret), ret, _libusb_errno[ret])
603 else:
--> 604 raise USBError(_strerror(ret), ret, _libusb_errno[ret])
605
606 return ret
USBError: [Errno 32] Pipe error
When I try to connect to the device in “1 - Connecting to Hardware.ipynb”:
import chipwhisperer as cw
scope = cw.scope()
I get the following:
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-1-a074e77f8699> in <module>
1 import chipwhisperer as cw
----> 2 scope = cw.scope()
i:\chip_whisperer\chipwhisperer5_64\cw\home\portable\chipwhisperer\software\chipwhisperer\__init__.py in scope(scope_type, sn)
227 from chipwhisperer.common.utils.util import get_cw_type
228 if scope_type is None:
--> 229 scope_type = get_cw_type(sn)
230 scope = scope_type()
231 try:
i:\chip_whisperer\chipwhisperer5_64\cw\home\portable\chipwhisperer\software\chipwhisperer\common\utils\util.py in get_cw_type(sn)
501 name = ""
502 if len(possible_sn) == 0:
--> 503 raise OSError("USB Device not found. Did you connect it first?")
504
505 if (len(possible_sn) > 1):
OSError: USB Device not found. Did you connect it first?
Any idea what the issue may be? Thanks!