import chipwhisperer as cw
scope = cw.scope()
(ChipWhisperer NAEUSB WARNING|File naeusb.py:713) Your firmware (0.62) is outdated - latest is 0.64 See Updating Firmware — ChipWhisperer 5.7.0 documentation for more information
scope.upgrade_firmware()
Entering bootloader mode…
Detected com port /dev/ttyACM0
Loading cwlite firmware…
Opened!
Connecting…
Traceback (most recent call last):
File “/home/qyh/anaconda3/envs/cw/lib/python3.10/site-packages/serial/serialposix.py”, line 322, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
PermissionError: [Errno 13] Permission denied: ‘/dev/ttyACM0’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “”, line 1, in
File “/home/qyh/anaconda3/envs/cw/lib/python3.10/site-packages/chipwhisperer/capture/scopes/OpenADC.py”, line 961, in upgrade_firmware
prog.auto_program()
File “/home/qyh/anaconda3/envs/cw/lib/python3.10/site-packages/chipwhisperer/capture/scopes/cwhardware/ChipWhispererSAM3Update.py”, line 195, in auto_program
self.program(com, hardware_type=self._hw_type)
File “/home/qyh/anaconda3/envs/cw/lib/python3.10/site-packages/chipwhisperer/capture/scopes/cwhardware/ChipWhispererSAM3Update.py”, line 266, in program
sam.con(port)
File “/home/qyh/anaconda3/envs/cw/lib/python3.10/site-packages/chipwhisperer/hardware/naeusb/bootloader_sam3u.py”, line 222, in con
ser = serial.Serial(
File “/home/qyh/anaconda3/envs/cw/lib/python3.10/site-packages/serial/serialutil.py”, line 244, in init
self.open()
File “/home/qyh/anaconda3/envs/cw/lib/python3.10/site-packages/serial/serialposix.py”, line 325, in open
raise SerialException(msg.errno, “could not open port {}: {}”.format(self._port, msg))
serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: ‘/dev/ttyACM0’
lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 054: ID 03eb:6124 Atmel Corp. at91sam SAMBA bootloader
I just want to use the basic cwlite, how can I exit the bootloader inside of upgrade