Programmer.program doesn't finish

In Jupyter use programmer.program(’/dev/ttyACM0’, hardware_type=‘cwlite’), and wait a long time but still

Loading cwlite firmware…
Opened!
Connecting…

and it doesn’t finish at all.

When I interrupt it, result is:

KeyboardInterrupt Traceback (most recent call last)
in
----> 1 programmer.program(’/dev/ttyACM0’, hardware_type=‘cwlite’)

~/work/projects/chipwhisperer/software/chipwhisperer/capture/scopes/cwhardware/ChipWhispererSAM3Update.py in program(self, port, fw_path, hardware_type, bypass_warning)
266
267 self.logfunc(“Opened!\nConnecting…”)
–> 268 sam.con(port)
269 self.logfunc(“Connected!\nErasing…”)
270 sam.erase()

~/work/projects/chipwhisperer/software/chipwhisperer/hardware/naeusb/bootloader_sam3u.py in con(self, port, usbmode)
66 # Binary mode
67 ser.write(“N#”.encode(“ascii”))
—> 68 res = ser.read(2)
69 print(res)
70

~/.pyenv/versions/3.7.7/envs/cw/lib/python3.7/site-packages/pyserial-3.5-py3.7.egg/serial/serialposix.py in read(self, size)
563 while len(read) < size:
564 try:
–> 565 ready, _, _ = select.select([self.fd, self.pipe_abort_read_r], [], [], timeout.time_left())
566 if self.pipe_abort_read_r in ready:
567 os.read(self.pipe_abort_read_r, 1000)

KeyboardInterrupt:

I think driver is OK, and USB connection is OK also. What could be problem?

Hi,

This has come up a few times before and only seems to happen on VMs. Unfortunately, I’ve never been able to replicate this, so I don’t really know what causes this. The last Windows firmware uploader is kind of old, but you should be able to use it to upload an older firmware to your device: https://github.com/newaetech/chipwhisperer/releases/tag/5.5

Alex