Avrdude: no programmer has been specified on the command line or config file

Dear forum users,
I have a problem with uploading a HEX-file to my Arduino Uno atmega 328p. The HEX-file has been copied to the "bin" folder of the Arduino software, according to the instruction. My Arduino works fine with other sketches and has a good connection (COM29) with the software.
When I type behind the command prompt the following (according to the instruction):
"C:>cd C:\Program Files (x86)\Arduino\hardware\tools\avr\bin"
and then: "Avrdude -v –patmega328p –carduino –PCOM29 –b115200 D Uflash:w:hobbingcontroller.hex" , I get the notification:
"Avrdude: no programmer has been specified on the command line or config file. Specify a programmer using the -c option and try again."

Uploading the HEX-file via Xloader doesn't give a better result, it keeps on uploading. I tried difference versions of the Arduino software but all no result.

Please help.

You are missing the - prefix on the -D and -U flags in your command.

Try this:

avrdude -v –patmega328p –carduino –PCOM29 –b115200 -D -Uflash:w:hobbingcontroller.hex

Documentation available here:

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