Hi, when i do a scope.upgrade_firmware() i do get an error as:
PermissionError: [Errno 13] Permission denied: ‘/dev/ttyACM0’
I have seen the other cases and i have installed it and when i do a
cw.program_sam_firmware(hardware_type=‘cwlite’ it do work fine to get it back.
I have tried the chmod 666 on the /dev/ttyACM0. The roles are in the directory as i should and i have done it moth manually and the script. I am running on Linum Mint (Ubuntu) and not in a VM.
The full error i get is:
(.cwvenv) sek@Hacking:~/chipwhisperer$ python
Python 3.12.3 (main, Jun 18 2025, 17:59:45) [GCC 13.3.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import chipwhisperer as cw
/home/sek/chipwhisperer/software/chipwhisperer/capture/trace/TraceWhisperer.py:31: UserWarning: pkg_resources is deprecated as an API. See Package Discovery and Resource Access using pkg_resources - setuptools 80.9.0 documentation. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources # type: ignore
scope = cw.scope()
scope.upgrade_firmware()
Entering bootloader mode…
Detected com port /dev/ttyACM0
Loading cwlite firmware…
Opened!
Connecting…
Traceback (most recent call last):
File “/home/sek/.cwvenv/lib/python3.12/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/sek/chipwhisperer/software/chipwhisperer/capture/api/cwcommon.py”, line 187, in upgrade_firmware
prog.auto_program(fw_path)
File “/home/sek/chipwhisperer/software/chipwhisperer/capture/scopes/cwhardware/ChipWhispererSAM3Update.py”, line 202, in auto_program
self.program(com, hardware_type=self._hw_type)
File “/home/sek/chipwhisperer/software/chipwhisperer/capture/scopes/cwhardware/ChipWhispererSAM3Update.py”, line 260, in program
sam.con(port)
File “/home/sek/chipwhisperer/software/chipwhisperer/hardware/naeusb/bootloader_sam3u.py”, line 222, in con
ser = serial.Serial(
^^^^^^^^^^^^^^
File “/home/sek/.cwvenv/lib/python3.12/site-packages/serial/serialutil.py”, line 244, in init
self.open()
File “/home/sek/.cwvenv/lib/python3.12/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’
Please help on this so i can get it up and running and test it.