Difficulty Uploading Code to Rev 3 Uno

hiya, ive been trying to upload code to my rev 3 uno using arduino ide, this has proved unsuccessful as it states i have a clock frequency that isnt suitable for it. i try running the following command to do it manually and face a whole new issue.

Command Line:
avrdude -C /usr/share/arduino/hardware/tools/avrdude.conf -v -patmega328p -c arduino -P /dev/ttyACM0 -b 115200 -D -Uflash:w:/tmp/arduino_build_729696/rev3.ino.hex:i -B 95kHz -F

error:
avrdude: Version 7.1
Copyright the AVRDUDE authors;
see avrdude/AUTHORS at main · avrdudes/avrdude · GitHub

     System wide configuration file is /etc/avrdude.conf
     User configuration file is /home/owen/.avrduderc
     User configuration file does not exist or is not a regular file, skipping

     Using Port                    : /dev/ttyACM0
     Using Programmer              : arduino
     Overriding Baud Rate          : 115200
     Setting bit clk period        : 10.5
     AVR Part                      : ATmega328P
     Chip Erase delay              : 9000 us
     PAGEL                         : PD7
     BS2                           : PC2
     RESET disposition             : possible i/o
     RETRY pulse                   : SCK
     Serial program mode           : yes
     Parallel program mode         : yes
     Timeout                       : 200
     StabDelay                     : 100
     CmdexeDelay                   : 25
     SyncLoops                     : 32
     PollIndex                     : 3
     PollValue                     : 0x53
     Memory Detail                 :

                                       Block Poll               Page                       Polled
       Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       eeprom                 65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
       flash                  65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
       lfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
       hfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
       efuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
       lock                    0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
       signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
       calibration             0     0     0    0 no          1    1      0     0     0 0x00 0x00

     Programmer Type : Arduino
     Description     : Arduino for bootloader using STK500 v1 protocol
     Hardware Version: 3
     Firmware Version: 4.4

avrdude stk500_recv() error: programmer is not responding
avrdude main() error: initialization failed, rc=-1
- double check the connections and try again
- use -B to set lower ISP clock frequency, e.g. -B 125kHz
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x000000 (retrying)
avrdude: device signature = 0x000000 (retrying)
avrdude: device signature = 0x000000
avrdude main() error: Yikes! Invalid device signature.
avrdude main() warning: expected signature for ATmega328P is 1E 95 0F
avrdude stk500_recv() error: programmer is not responding

avrdude done. Thank you.

anyone know how to fix this?

Welcome! What do you expect. Why not set the clock to something the tools can use then change it back when done uploading/testing?

if you re-read through the post, i have attempted to do so with the command i have been entering, when i change it, it doesnt have much of a effect, i get the same error whether its 50kHz or 125kHz. This is why i am unsure as to how to get around this issue

Which problem are you trying to solve?

How? Using a programmer or over USB? The -B parameter is only applicable when using a programmer as far as I know.

I've moved your topic to a more suitable location on the forum.

im trying to upload to my arduino so subsiquently i will need to solve all the errors it would seem for this to work. I did try using the Arduino IDE application but it didnt work from pressing the upload button so i switched to terminal to attempt to manually upload the code with arduino as the programmer

I recommend focusing on solving that problem. It is unlikely that you will have any more luck uploading via the command line if you aren't able to do so from Arduino IDE, and you introduce a lot of additional complexity into the situation by using the command line. We can be confident that Arduino IDE will generate a 100% valid AVRDUDE command every time.

I'm going to ask you to post the full verbose output from an upload attempt using Arduino IDE.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Uncheck the box next to Show verbose output during: compilation in the "Preferences" dialog.
  3. Check the box next to Show verbose output during: ☐ upload.
  4. Click the "OK" button.
    The "Preferences" dialog will close.
  5. Attempt an upload, as you did before.
  6. Wait for the upload to fail.
  7. You will see a "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
  8. Open a forum reply here by clicking the "Reply" button.
  9. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block icon on toolbar
  10. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the error output from the upload into the code block.
  11. Move the cursor outside of the code block markup before you add any additional text to your reply.
  12. Click the "Reply" button to post the output.

Arduino: 1.8.19 (Linux), Board: "Arduino Uno"

Sketch uses 16258 bytes (50%) of program storage space. Maximum is 32256 bytes.
Global variables use 1312 bytes (64%) of dynamic memory, leaving 736 bytes for local variables. Maximum is 2048 bytes.
/usr/bin/avrdude -C/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyACM0 -b115200 -D -Uflash:w:/tmp/arduino_build_431942/rev3.ino.hex:i

avrdude: Version 7.1
Copyright the AVRDUDE authors;
see avrdude/AUTHORS at main · avrdudes/avrdude · GitHub

     System wide configuration file is /etc/avrdude.conf
     User configuration file is /home/owen/.avrduderc
     User configuration file does not exist or is not a regular file, skipping

     Using Port                    : /dev/ttyACM0
     Using Programmer              : arduino
     Overriding Baud Rate          : 115200
     AVR Part                      : ATmega328P
     Chip Erase delay              : 9000 us
     PAGEL                         : PD7
     BS2                           : PC2
     RESET disposition             : possible i/o
     RETRY pulse                   : SCK
     Serial program mode           : yes
     Parallel program mode         : yes
     Timeout                       : 200
     StabDelay                     : 100
     CmdexeDelay                   : 25
     SyncLoops                     : 32
     PollIndex                     : 3
     PollValue                     : 0x53
     Memory Detail                 :

                                       Block Poll               Page                       Polled
       Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       eeprom                 65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
       flash                  65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
       lfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
       hfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
       efuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
       lock                    0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
       signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
       calibration             0     0     0    0 no          1    1      0     0     0 0x00 0x00

     Programmer Type : Arduino
     Description     : Arduino for bootloader using STK500 v1 protocol
     Hardware Version: 3
     Firmware Version: 4.4

avrdude stk500_recv() error: programmer is not responding
avrdude main() error: initialization failed, rc=-1
- double check the connections and try again
- use -B to set lower ISP clock frequency, e.g. -B 125kHz
- use -F to override this check

athe selected serial port a does not exist or your board is not connected
vrdude stk500_recv() error: programmer is not responding

avrdude done. Thank you.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Please try this experiment and then report back with the results:


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


  1. Connect the Arduino board to your computer with a USB cable.
  2. Press and release the button on the Arduino board that is marked "RESET".

Now please reply here on the forum thread with the answer to the following question:

  • Did you see the "L" LED blink multiple times quickly immediately after you released the "RESET" button?

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