Arduino IDE 2.3.4 on MAC with Diamex Programmer

I have a Diamex AVR USB programmer which worked perfectly on previous Arduino IDEs. Now I am trying to make it run with IDE 2.3.4 but I have some problems.

I have added the following lines to my programmers.txt configuration.

diamexavr.name=DIAMEX-AVR
diamexavr.communication=serial
diamexavr.protocol=stk500v2
diamexavr.speed=19200
diamexavr.program.tool=avrdude
diamexavr.program.extra_params=-P{serial.port} -b{program.speed}
diamexavr.program.speed=19200
diamexavr.program.protocol=stk500v2

After that the Diamex programmer appears in the IDE menu tools -> programmer.
But when I try to write a programm into an ATMega I get an error before avrdude is started already:

/Users/holger/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-size -A /Users/holger/Library/Caches/arduino/sketches/97DBB1A67D21B6788758D7F310601822/USB-Thermometer.ino.elf
Der Sketch verwendet 4640 Bytes (14%) des Programmspeicherplatzes. Das Maximum sind 32256 Bytes.
Globale Variablen verwenden 511 Bytes (24%) des dynamischen Speichers, 1537 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.
Eigenschaft 'program.tool.serial' ist nicht definiert

Translated to english this error message means "property 'program.tool.serial' is not defined." I tryed to find an information concerning this property with google but up to now I was not successful. Is there anyone how could help me to solve this problem.

best regards,

Holger

Hi @dh4dai. Try this:

  1. Select Arduino > Quit Arduino from the Arduino IDE menus if it is running.
    All Arduino IDE windows will close.
  2. Add this line to the programmers.txt file:
    diamexavr.program.tool.default=avrdude
    
  3. Save the file.
  4. Start Arduino IDE.

Now try using the programmer again, just as you did before when you encountered that error. Hopefully it will work as expected this time.


Reference:

https://arduino.github.io/arduino-cli/latest/platform-specification/#upload-using-an-external-programmer

Many thanks! This helped, I can operate the programmer now.

best regards,

Holger

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.