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…

and it doesn’t finish at all.

When I interrupt it, result is:

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

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

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

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


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


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: