I am trying to follow the following notebook to debug a target:
I have chipwhisperer installed in a Ubuntu 22.04 through WSL.
However I get the following error:
jtag
Info : DEPRECATED target event trace-config; use TPIU events {pre,post}-{enable,disable}
Error: failed to reset FTDI device: LIBUSB_ERROR_PIPE
Error: unable to open ftdi device with vid 2b3e, pid ace5, description ‘', serial '’ at bus location ‘*’
Could it be that you need to reattach the device in usbipd-win after switching to MPSSE mode? Due to limited endpoints/USB memory on the SAM3U, we need to disconnect the ChipWhisperer and reenumerate as composite device with two custom vendor interfaces.
From what I understand, the USB server on the Windows end leaves devices alone until you attach them, so it might not auto reattach when the reenumeration happens.
Thanks Alex for your support. I will try that and let you know as I don’t have the hardware with me right now.
Do you think that it could be possible to debug a target using OpenOCD and gdb but with VScode visual interface through WSL?
Yeah, I agree that would be nice. I think I looked at that a while back and all the gdb support seemed to be targeting the x86/64 binary itself and so wasn’t compatible with arm-none-eabi-gdb and other embedded gdbs.
gdb does have a Python interface, but it was disabled for the windows build at least, so I didn’t have any luck there either. Basically, it seemed possible, but wasn’t really practical; I might’ve missed something, or wsl might change things there, though.
Yeah, the scope firmware. There’s been some fixes in software and firmware since the 5.6.1 release.
That should be the latest scope firmware. Can you try pulling the latest commit (ChipWhisperer Updating.ipynb should help) and seeing if that fixes your issue?
In that case, I’m not too sure. I’ll run through again, just to make sure everything works. Are you using the UserIO header, or are you going over the 20-pin?
I’ve uploaded an update notebook. Basically, the fix is just to use scope.setup_MPSSE(1, husky_userio='jtag'), which wasn’t around when that notebook was made.