Unable to upload sketch with IDE 2 in Linux

Hi, I try to upload the nicla blink test to my new board. I am on Linux Ubuntu 22.04 with the IDE v2. The board is recognized, but I have an error if I try to upload the sketch.

Lo sketch usa 56160 byte (10%) dello spazio disponibile per i programmi. Il massimo è 527616 byte.
Le variabili globali usano 12080 byte (18%) di memoria dinamica, lasciando altri 52208 byte liberi per le variabili locali. Il massimo è 64288 byte.
Open On-Chip Debugger 0.11.0+dev-gab95bac57-dirty (2021-05-11-10:49)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
debug_level: 0

adapter speed: 1000 kHz

Error: unable to open CMSIS-DAP device 0x2341:0x60
Error: unable to find a matching CMSIS-DAP device

Caricamento non riuscito: errore durante il caricamento: exit status 1

There is no problem with the cable and the system because I have tried with a Windows VM (USB pass trough to guest) and it work.

Do you have some idea what I can do?

Same problem with IDE v2 as Flatpak, AppImage or .zip

Same issue, have tried with different cables and also using the web ui

Hi, in between I have opened a ticket by Arduino. I'm in contact with someone, but at the moment I have no solution to the problem. Which system do you use? I have Ubuntu 20.04 and 22.04.

You need to be in the dialout group. Try this:
sudo usermod -a -G dialout yourUserName
Then you must Log off and log on again for the changes to take effect.

More information can be found at: Arduino Playground - All

Sorry that did not fix it. I use Linux on several machines and different versions, this has mint 20.3. I am using the 1.8.18 IDE, it works fine. I also have different versions all above 1.6 but nothing at 2.0 or greater, there appears to be to many problems. I am not familiar with the Nicla board. God Luck!

Hi, this is already done in my system, because I program already esp32 and Arduino Uno (and it works).

Do you use a Linux system and program a Nicla board? If yes which Linux distro do you have?

I have fount the solution to the problem!

You need to add the a udev rule like described in this page from Arduino. But there are some errors, the text for the rule should be:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", MODE="0666"

Pay attention to the S at the end of SUBSYSTEMS (1. error) and the S at the end of ATTRS (2. error).

I have made a pull request on GitHub to correct the documentation.

Hi there,

Me and my partner working on the Nicla Sense ME had the exact same problem with Arch based distros (Manjaro and EndeavourOS) as in post #1. I am using the Arduino IDE 2.1.1 and my partner 1.8.18, in our cases we were able to solve the problem by installing openocd.

sudo pacman -S openocd

Kind regards
nulldayo

I needed openocd in addition to the udev rule above in Ubuntu 22.04. Thanks @nulldayo