I'm trying to load the Blink.ino sketch, from the File/Examples/Blink link in the IDE. It works in windows. But windows10 is going to die for me when it is no longer supported. I have Linux.
I am using linux Mint MATE 21.1, Arduino Uno WiFi Rev2 will not upload in [Flatpak]Arduino IDE 2.0.3 using Board Manager/megaavr 1.8.8.
I am user in dialout group:
user:~$ groups,
I have selected the correct port dev/ttyACM0: exists in /dev,
user:~$ lsusb
Bus 001 Device 006: ID xx:xx Atmel Corp. ATMEGA328P-XMINI (CDC ACM)
updates and follow device from port to port
I have run the script buried in ~.arduino15/packages/arduino/hardware/megaavr/1.8.8/scripts/create_dfu_udev_rule location.
I did not load a driver for the USB ports CH### [I forgot the numbers] because I AM running a current, up-to-date OS, and the linux-help/chat suggested instead to
sudo apt remove brltty [no change]
i've run dmesg |tail --lines=20, dmesg -w, unplugged the port and followed it all the way around all available ports.
It did: however, upload with the windows Arduino IDE2.
I've read about how it doesn't mean anything, it's just a warning - but I'm pretty sure they are not considering the detail where the upload fails.
I've seen where a chmod or adduser fixed the problem; but, not so in my case. It seems like a new twist on a recurring error.
Here is the message I get.
Sketch uses 1510 bytes (3%) of program storage space. Maximum is 48640 bytes.
Global variables use 22 bytes (0%) of dynamic memory, leaving 6122 bytes for local variables. Maximum is 6144 bytes.
"/home/name/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" "-C/home/name/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D "-Uflash:w:/home/name/.var/app/cc.arduino.IDE2/cache/arduino-sketch-1B4912996D9E15F3B056FC1C75BA93E3/Blink.ino.hex:i" "-Ufuse2:w:0x01:m" "-Ufuse5:w:0xC9:m" "-Ufuse8:w:0x02:m" "-Uflash:w:/home/name/.arduino15/packages/arduino/hardware/megaavr/1.8.8/bootloaders/atmega4809_uart_bl.hex:i"
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/home/tux/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
User configuration file is "/home/tux/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : usb
Using Programmer : xplainedmini_updi
Overriding Baud Rate : 115200
avrdude: usbdev_open(): cannot open device: Permission denied
avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2145
avrdude done. Thank you.
Failed uploading: uploading error: exit status 1
I could not find /home/tux/.avrduderc and wouldn't know how to update it if I did.
I think it has something to do with permissions or a name jtag3 is looking for, that is missing or in the wrong location.
avrdude. what does that mean?