Could not find avr dude

Hi everyone,

I'm stuck with this problem and I've already tried so many things...

I'm running Arduino 1.8.13 on Windows 10. I can compile and upload my differents sketches on Uno, Controllino.... without any problem.

BUT I'm trying to burn the bootloader of controllino maxi using an arduino uno board as isp programmer (https://forum.controllino.biz/viewtopic.php?f=6&t=2199) :

----> I always get the following error : "Could not find too avrdude".

I tried to remove the Arduino15 folder in AppData without success, to re install the Arduino software without success, to modify the avrdude.conf without success, .... Maybe is there someone who encountered and solved this problem ?

Thanks ! :(

Please post the full and exact output when you get the error.

A paraphrased fragment of an error doesn't give us much to work with.

Ok,

please finf attached the screencapture : |500x77

This is the error I get when a click on "Burn Bootloader". The port com is correctly set for the Arduino UNO I use as programmator. And the board selected in Tools>Board is Controllino Maxi.

I found !!! I precise how, to help if others have the same problem :

I modified firstly the file boards.txt (in C:....\Arduino\hardware\arduino\avr\boards.txt) because I don't know why but when you install the controllino libraries with de board manager in arduino, it doesn't update this file.... I found another "board.txt" file in AppData (C:\Users....\AppData\Local\Arduino15\packages\CONTROLLINO_Boards\hardware\avr\3.1.0).

I copy pasted this content in the first board.txt mentionned :

############################################################## controllino_maxi.name=CONTROLLINO MAXI controllino_maxi.vid.0=0x2341 controllino_maxi.pid.0=0x0010 controllino_maxi.vid.1=0x2341 controllino_maxi.pid.1=0x0042 controllino_maxi.vid.2=0x2A03 controllino_maxi.pid.2=0x0010 controllino_maxi.vid.3=0x2A03 controllino_maxi.pid.3=0x0042 controllino_maxi.upload.tool=arduino:avrdude controllino_maxi.upload.maximum_data_size=8192 controllino_maxi.bootloader.tool=arduino:avrdude controllino_maxi.bootloader.low_fuses=0xFF controllino_maxi.bootloader.unlock_bits=0x3F controllino_maxi.bootloader.lock_bits=0x0F controllino_maxi.build.f_cpu=16000000L controllino_maxi.build.core=arduino:arduino controllino_maxi.build.variant=Controllino_maxi controllino_maxi.build.board=AVR_MEGA2560 #controllino_maxi.build.board=AVR_UNO controllino_maxi.upload.protocol=arduino controllino_maxi.upload.maximum_size=253952 controllino_maxi.upload.speed=115200 controllino_maxi.bootloader.high_fuses=0xD8 controllino_maxi.bootloader.extended_fuses=0xFD controllino_maxi.bootloader.file=stk500v2/maxi/Bootloader_CONTROLLINO_MAXI.hex controllino_maxi.build.mcu=atmega2560 ##############################################################

Then the "Could not find avr dude error" disappeared but the bootloader update still didn't worked. It was because some of the previous lines I pasted above was in comment... At least, I've modified the file programmers.txt (same location than the first boards.txt) :

arduinoasisp.name=Arduino as ISP arduinoasisp.communication=serial arduinoasisp.protocol=stk500v1 arduinoasisp.speed=115200 arduinoasisp.program.protocol=stk500v1 arduinoasisp.program.speed=115200 arduinoasisp.program.tool=avrdude arduinoasisp.program.extra_params=-P{serial.port} -b{program.speed}

The speed was to low, so I increased to 115200.

Hope that will help

P.S.- The reason why the file boards.txt stays unchanged after an update from the Board Manager in Arduino stays a mystery...

Quentin

qduhamel: The speed was to low, so I increased to 115200.

I can't imagine how that would work. The baud rate the ArduinoISP sketch communicates at is 19200: https://github.com/arduino/Arduino/blob/master/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino#L142

qduhamel: P.S.- The reason why the file boards.txt stays unchanged after an update from the Board Manager in Arduino stays a mystery...

This path: C:\Users....\AppData\Local\Arduino15\packages\CONTROLLINO_Boards\hardware\avr is where Boards Manager installations and updates are done.

This path: C:....\Arduino\hardware\arduino\avr\boards.txt

I'm guessing C:....\Arduino is your installation of the Arduino IDE, right?

This is the copy of Arduino AVR Boards bundled with the Arduino IDE. That location is not touched by the Arduino Boards Manager. Even if it was, it wouldn't be touched by an installation or update of the Controllino boards platform, because these are two completely separate boards platforms.

qduhamel: I copy pasted this content in the first board.txt mentionned :

That's a bad idea. For one thing, it's completely unnecessary. You already have installed the Controllino boards platform the correct way via Boards Manager, so there should be no need for this hacky approach of copy pasting it into the Arduino AVR Boards platform.

It's also a bad idea because whenever you update the Arduino IDE or Arduino AVR Boards your modifications will be lost.

Hello,

Thanks for answering !

I understand that I was wrong with those modifications. So, to go forward, would you have advices to solve my initial problem ?