Hi,
I’m having a problem where the Chipwhisperer Husky appears to crash and the usb /dev disappears. Any guidance would be appreciated.
I used the Husky without issue last year so it has worked in the past. I was attempting to use the PicoEMP on an external target the other day when the problems started. Hopefully I didn’t fry something.
The information below is on macOS (M1, but not seeing any arch issues) but I’ve also tried on an Ubuntu machine with similar symptoms. This is a using a fresh clone of chipwhisperer repo as of today.
I’ve reset the device firmware using the button and successfully flashed a fresh firmware with:
import chipwhisperer as cw
cw.program_sam_firmware(hardware_type=‘cwhusky’)
When I plug in the Husky (without the CW313 board or anything else attached) these devices show up as expected:
/dev/cu.usbmodem2102
/dev/tty.usbmodem2102
The status light blinks, capturing, adc and glitch are lit. All good.
When I run the following tiny snippet from a debug notebook:
SCOPETYPE = ‘OPENADC’
PLATFORM=“CWHUSKY”
SS_VER = ‘SS_VER_2_1’
%run “./Setup_Scripts/Setup_Generic.ipynb”
Everything initially looks good:
INFO: Found ChipWhisperer😍
scope.gain.mode changed from low to high
scope.gain.gain changed from 0 to 22
scope.gain.db changed from 15.0 to 25.091743119266056
scope.adc.samples changed from 131124 to 5000
scope.clock.clkgen_freq changed from 0 to 7370129.87012987
scope.clock.adc_freq changed from 0 to 29480519.48051948
scope.clock.extclk_monitor_enabled changed from True to False
scope.clock.extclk_tolerance changed from 1144409.1796875 to 13096723.705530167
scope.io.tio1 changed from serial_tx to serial_rx
scope.io.tio2 changed from serial_rx to serial_tx
scope.io.hs2 changed from None to clkgen
scope.io.cdc_settings changed from bytearray(b’\x01\x00\x00\x00’) to bytearray(b’\x00\x00\x00\x00’)
scope.glitch.phase_shift_steps changed from 0 to 4592
scope.trace.capture.trigger_source changed from trace trigger, rule #0 to firmware trigger
However just a few seconds later the usb devices disappear from /dev.
All the LEDs on the Husky are off. I can unplug and replug the husky and redo the same thing with the same results. I’ve tried another USB cable as well.
Any information on how to debug what exactly is happening inside the Husky as it crashes would be appreciated.