arduino / ArduinoCore-avr

The Official Arduino AVR core
https://www.arduino.cc
1.24k stars 1.05k forks source link

Upload fails when AVRDUDE 8.x format global `.avrduderc` is present on system #576

Open UffeJakobsen opened 1 week ago

UffeJakobsen commented 1 week ago

Subject: Avrdude is incompatible - please update to version 7.3+

Arduino-supplied Avrdude (6.3.0-arduino17) installed with core arduino:avr is incompatible with (modern) user environments

The main problem is that Arduino-supplied avrdude insists on loading the user .avrduderc

And with avrdude 8.0 as the latest current release - a contemporary .avrduderc contains statements that prevents the (old) Arduino-supplied Avrdude from running/working in such user environment.

Avrdude version 7.3 (and forward) introduces an option -N - that will prevent Avrdude from loading the user .avrduderc

Once you update to Avrdude version 7.3 or higher you can introduce option -N into platform.txt - and make your environment co-exist with modern user environments

Related info: https://github.com/avrdudes/avrdude/issues/1548

UffeJakobsen commented 1 week ago

Please note that the new title (Upload fails when AVRDUDE 8.x format global .avrduderc is present on system) is not entirely correct...

Arduino-supplied avrdude is already invoked with -C option pointing to an alternative global avrdude.conf

I my original issue - I'm referring to the user-local resource ~/.avrduderc - and not the global /etc/avrdude.conf