Small update to make my problem clear:
The command that I’m trying to execute to program the CW308T-FE310 is :
./run_openocd.sh -p /home/alkafa/chipwhisperer/hardware/victims/firmware/simpleserial-glitch-riscv/simpleserial-glitch-CW308_FE310.elf lite jtag -- -f "/home/alkafa/chipwhisperer/openocd/fe310.cfg"
To which I get the error you see at my post, however, besides the error, jupyter also prints :
Setting up MPSSE mode… Done
running -s /home/alkafa/chipwhisperer/openocd -f cw_openocd.cfg -c ‘ftdi vid_pid 0x2b3e 0xace2’ -c ‘transport select jtag’ -f fe310.cfg -c ‘init; targets; halt; program /home/alkafa/chipwhisperer/hardware/victims/firmware/simpleserial-glitch-riscv/simpleserial-glitch-CW308_FE310.elf verify reset exit’
Then the error then :
Disabling MPSSE mode… Done
What I think is wired is that there’s nothing next to -s option. When we look at the run_openocd.sh file, the -s option should be preceded by a path which is the openocd_path, In run_openocd.sh we have :
if [[ -z $OPENOCD_PATH ]]; then
OPENOCD_PATH=`which openocd`
fi
I put an echo in there and it prints which means that OPENOCD_PATH is indeed empty.
I don’t know what I’m doing wrong since in “run_openocd.sh” there’s a provided example which I followed correctly
UPDATE :
I figured why I get no dir before -s, it was because OpenOCD xasn’t installed (stupid error from me), anyway, it is installed now but I get this error :
Setting up MPSSE mode... Done
running /usr/local/bin/openocd -s /home/alkafa/chipwhisperer/openocd -f cw_openocd.cfg -c 'ftdi vid_pid 0x2b3e 0xace2' -c 'transport select jtag' -f /home/alkafa/chipwhisperer/openocd/fe310.cfg -c 'init; targets; halt; program /home/alkafa/chipwhisperer/hardware/victims/firmware/simpleserial-glitch-riscv/simpleserial-glitch-CW308_FE310.elf verify reset exit'
Open On-Chip Debugger 0.12.0+dev-01183-g329b10754 (2023-05-09-16:57)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
none separate
jtag
Error: failed to reset FTDI device: LIBUSB_ERROR_PIPE
Error: unable to open ftdi device with description '*', serial '*' at bus location '*'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/alkafa/chipwhisperer/software/chipwhisperer/__init__.py", line 387, in scope
rtn.con(**kwargs)
File "/home/alkafa/chipwhisperer/software/chipwhisperer/capture/scopes/OpenADC.py", line 625, in con
self.scopetype.con(sn, idProduct, bitstream, force, prog_speed, **kwargs)
File "/home/alkafa/chipwhisperer/software/chipwhisperer/capture/scopes/openadc_interface/naeusbchip.py", line 64, in con
found_id = self.ser.con(idProduct=nae_products, serial_number=sn, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alkafa/chipwhisperer/software/chipwhisperer/hardware/naeusb/naeusb.py", line 696, in con
self.usbtx.open(idProduct=idProduct, serial_number=serial_number, connect_to_first=True, hw_location=hw_location)
File "/home/alkafa/chipwhisperer/software/chipwhisperer/hardware/naeusb/naeusb.py", line 391, in open
self.handle.releaseInterface(0)
File "/home/alkafa/.pyenv/versions/cw/lib/python3.11/site-packages/usb1/__init__.py", line 1155, in releaseInterface
mayRaiseUSBError(
File "/home/alkafa/.pyenv/versions/cw/lib/python3.11/site-packages/usb1/__init__.py", line 127, in mayRaiseUSBError
__raiseUSBError(value)
File "/home/alkafa/.pyenv/versions/cw/lib/python3.11/site-packages/usb1/__init__.py", line 119, in raiseUSBError
raise __STATUS_TO_EXCEPTION_DICT.get(value, __USBError)(value)
usb1.USBErrorNotFound: LIBUSB_ERROR_NOT_FOUND [-5]
Disabling MPSSE mode... Done
And I’m still lost