Hi there,
I used my Husky to complete the FAULT101 labs, up until which I had no issues with my setup. Then I disconnected my CW313 target from the Husky and used the 20pin connector to power my custom board. Since then, my Husky has no other lights glowing except Status, that blinks every second or so.
I tried checking whether I am able to connect to the scope() but I get this error:
ChipWhisperer Target ERROR|File fpga.py:127) FPGA programming failed. Typically either bad bitstream or prog speed too high (current 10000000)
(ChipWhisperer Scope ERROR|File init.py:402) ChipWhisperer error state detected. Resetting and retrying connection…
cw.list_devices() shows my Husky as a connected device:
[{'name': 'ChipWhisperer-Husky', 'sn': '502032204c5846303230373137313038', 'hw_loc': (1, 37)}]
but I am unable to get power from the 20pin connector anymore & can no longer power my target board.
I am very confused as to what has caused this state.
So far I have tried:
- Entering the bootloader state by pressing the RESET pin on my Husky and reprogramming my SAM3U using
cw.program_sam_firmware(hardware_type='cwhusky'), which brought it to the same state it is now. - I also tried directly programming the Husky bitstream using
cw.scope(bitstream="/software/chipwhisperer/hardware/firmware/cwhusky/bitstream.bit”, prog_speed=10e4)and while that keeps theStatusLED constantly on instead of blinking, after 2-3 mins, the run errors out with the same error as above (with only the program speed seeming lower). - As a final attempt, I tried:
cw.scope(sn=“502032204c5846303230373137313038”)also to no avail.
The complete stack trace looks like this for any of the cw.scope() calls:
(ChipWhisperer Target ERROR|File fpga.py:127) FPGA programming failed. Typically either bad bitstream or prog speed too high (current 10000000)
(ChipWhisperer Scope ERROR|File init.py:402) ChipWhisperer error state detected. Resetting and retrying connection…
Traceback (most recent call last):
File “/home/user/workspace/chipwhisperer/software/chipwhisperer/init.py”, line 400, in scope
rtn.con(**kwargs)
File “/home/user/workspace/chipwhisperer/software/chipwhisperer/capture/scopes/OpenADC.py”, line 690, in con
self.scopetype.con(sn, idProduct, bitstream, force, prog_speed, **kwargs)
File “/home/user/workspace/chipwhisperer/software/chipwhisperer/capture/scopes/openadc_interface/naeusbchip.py”, line 84, in con
self.fpga.FPGAProgram(self.getFWConfig().loader.fpga_bitstream(), prog_speed=prog_speed)
File “/home/user/workspace/chipwhisperer/software/chipwhisperer/hardware/naeusb/fpga.py”, line 128, in FPGAProgram
raise IOError(“FPGA Done pin failed to go high, bad bitstream?”, bitstream)
OSError: [Errno FPGA Done pin failed to go high, bad bitstream?] <zipfile.ZipExtFile [closed]>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “”, line 1, in
File “/home/user/workspace/chipwhisperer/software/chipwhisperer/init.py”, line 403, in scope
rtn._getNAEUSB().reset()
File “/home/user/workspace/chipwhisperer/software/chipwhisperer/hardware/naeusb/naeusb.py”, line 1161, in reset
if self.check_feature(“RESET”, True):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/user/workspace/chipwhisperer/software/chipwhisperer/hardware/naeusb/naeusb.py”, line 1168, in check_feature
prod_id = self.usbtx.device.getProductID()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘NoneType’ object has no attribute ‘getProductID’
I have exhausted all possible ideas, so any pointers would be super useful. Thanks in advance!