It's been a couple years since I've used the arduino IDE, I'm having trouble getting things to program in Linux. Windows works fine with everything.
I have an Uno, a Mega2560, and even a ATMEGA4808 I program with an Atmel ICE programmer. They all work fine in Windows, but I can only get the Uno to work in Linux. The Uno shows up a port, and I can get board info. The Mega doesn't see a port, and obviously without that, you can't get info. I'm not able to use the Atmel ICE to program either. When I started this process, the Uno wouldn't program either, but it magically started working on its own.
The one I'm dealing with right now is the Atmel ICE programmer. I get the following error:
avrdude: Version 7.1-arduino.1
Copyright the AVRDUDE authors;
see https://github.com/avrdudes/avrdude/blob/main/AUTHORS
System wide configuration file is /home/poduck/.arduino15/packages/MegaCoreX/hardware/megaavr/1.1.2/avrdude.conf
User configuration file is /home/poduck/.avrduderc
User configuration file does not exist or is not a regular file, skipping
Using Port : usb
Using Programmer : atmelice_updi
avrdude usbhid_open() warning: USB device with VID: 0x03eb and PID: 0x2141 not found
avrdude usbdev_open() error: cannot open device: Permission denied
avrdude jtag3_open_common() error: no device found matching VID 0x03eb and PID list: 0x2141
avrdude main() error: unable to open programmer atmelice_updi on port usb
avrdude done. Thank you.
Failed programming: uploading error: exit status 1
When I check lsusb, it shows the debugger "Bus 003 Device 003: ID 03eb:2141 Atmel Corp. ICE debugger", which shows the correct VID and PID.
With the Mega, I show no serial port for it at all. I see ttys0, which is always there, so I assume that's going to be the serial port on my computer, and selecting it does nothing. It just times out.
I was originally thinking that the Mega might be bad, or need a new bootloader, but when I checked it in Windows, everything worked fine. The same with the Atmel ICE programmer.
I have added my user to the dialout and tty groups, and I have rebooted. I'm not sure what else to check at this point.
