AVR Board 1.8.6 update breaks Burn Bootloader for ATTiny85 on RPi

I am using Arduino IDE 1.8.19 on a Rpi 4 with Linux Bookworm 64-bit.

I am using an Arduino Nano burned to look like an Arduino UNO ( as per NIck Gammon's instructions) as an ISP - "Arduino as ISP".

I have added this board so that I can program an ATTiny85:
https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json

This process has worked OK in the past though with earlier levels of software but I wanted to change the ATTiny85 clock speed from 16MHz to 8Mhz.

The compile process has worked fine as far as I can tell - error free.

However, when I come to use the "Burn Bootloader" function it fails with these messages:

REMOVE/bin/avrdude -C/etc/avrdude.conf -v -v -v -v -pattiny85 -cstk500v1 -P/dev/ttyUSB0 -b19200 -e -Uefuse:w:0xff:m -Uhfuse:w:0xdf:m -Ulfuse:w:0xe2:m
java.io.IOException: Cannot run program "REMOVE/bin/avrdude": error=2, No such file or directory
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at java.base/java.lang.Runtime.exec(Runtime.java:594)
at java.base/java.lang.Runtime.exec(Runtime.java:453)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:11)
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:129)
at cc.arduino.packages.uploaders.SerialUploader.runCommand(SerialUploader.java:383)
at cc.arduino.packages.uploaders.SerialUploader.burnBootloader(SerialUploader.java:372)
at processing.app.Editor.lambda$handleBurnBootloader$61(Editor.java:2385)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.io.IOException: error=2, No such file or directory
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.(ProcessImpl.java:314)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
... 9 more

I have tried the same process on a desktop PC with an AMD chip running Linux Mint 20 64-bit with the same versions of Arduino IDE and board levels and the "Burn Bootloader" process runs successfully.

I then reverted the AVR board on the Rpi to 1.8.5 from 1.8.6 and both processes completed successfully.

I conclude that something has changed in the 1.8.6 version of the AVR board but I have insufficient knowledge of how it works to determine the actual problem. From Google searches I understand the "REMOVE" means the IDE is unable to find AVRDUDE in the "Burn Bootloader" phase yet it uses "/usr/bin/avrdude" for the compile phase.

Can anyone advise on next step?

This indicates that you installed Arduino IDE via a package manager. The 3rd party maintainers of these packages make unknown modifications to Arduino IDE that can result in strange problems like the one you encountered. I recommend installing the official Arduino IDE. You can download it from the links on the "Software" page of arduino.cc here:

https://www.arduino.cc/en/software#legacy-ide-18x

Make sure to use the "Linux ARM 64 bits" download link.

After that, try the "Burn Bootloader" operation again. Hopefully this time it will be successful.

1 Like

Hi. Thank you for that. You are correct. It looks like this is the first time I have used the Linux package manager to install the IDE - probably seemed convenient at the time. Anyway, all is now well so thanks again.

You are welcome. I'm glad it is working now.

Regards, Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.