Fail to upload

Arduino: 1.8.13 (Windows 7), Board: "Arduino Uno"

Sketch uses 922 bytes (2%) of program storage space. Maximum is 32256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xee

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xee

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xee

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xee

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xee

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xee

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xee

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xee

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xee

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xee

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

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

This throws me out when I upload the program
program is so easy

void setup() {
// put your setup code here, to run once:
pinMode(8,OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(8,HIGH);
delay(200);
digitalWrite(8,LOW);
delay(200);
}
pls help me :slight_smile:

Remove any connections to pins 0 and 1 on your Arduino board. These pins are used for communication with your computer, including uploads. Connecting anything to these pins can interfere with uploads.

Make sure you have the correct board selected from the Tools > Board menu.

Make sure you have selected the port of your Arduino board from the Tools > Port menu.

Sometimes the port will be labeled with the board name in the menu. Other times it will not. If you don’t know which port is your Arduino board, you can find it like this:

  • Unplug your Arduino board from the computer.
  • Tools > Port
  • Note the ports, if any, listed in the menu.
  • Close the Tools menu. The ports list is only updated when the Tools menu is re-opened, so this step is essential.
  • Plug your Arduino board into the computer.
  • Tools > Port - The new port listed in the menu is your Arduino board.

i reset the computer but it pulls me out

Arduino: 1.8.13 (Windows 7), Board: "Arduino Uno"

Sketch uses 922 bytes (2%) of program storage space. Maximum is 32256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

An error occurred while uploading the sketch

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

what should i put tools>programmer> ??? (avr isp?)

I am having a similar problem with a new Nano. It hangs on uploading then I get error messages same as post above. I have an Uno that works. I checked the port numbers and can read the Board Info OK

I'm using Windows 10, IDE ver 1.8.13, Programmer avrisp mkII, this is the first time I've tried to upload code to the Nano, I'm using the Blink sketch for testing, I have nothing else connected to the Nano, I installed the CH341SER driver (I think...) - not sure I need this.

If nothing else, given the above info, I'm looking for things I probably don't need to worry about checking.

Thankyou.

Further to my above post, I changes com port to 2 and went back to Windows driver for the com port. I tried to upload and got this msg:
Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "Arduino Nano, ATmega328P"

An error occurred while uploading the sketch

avrdude: ser_open(): can't open device "\.\COM2": The system cannot find the file specified.

If I hit the reset button on the Nano while uploading nothing happens. If I unplug the USB cable the uploader crashes out with error msgs.

Dan_Ward:
I changes com port to 2

How did you do that?

ilicc:
what should i put tools>programmer> ??? (avr isp?)

The Tools > Programmer menu selection is only used when you are doing Tools > Burn Bootloader or "Upload Using Programmer". When you're doing a standard "Upload", the Tools > Programmer menu selection is completely ignored. So it makes no difference at all what you have selected from the Tools > Programmer menu.

I selected Port 2 through the Device Manager (g oto Settings and search for Device Manager).

Have the Arduino plugged in and you should see it under USB Ports. Click the Advanced tab and you will see Port setting.

I found this out when using a USB-RS232 adapter cable. It would not work with Com Port > 4.

Dan_Ward:
I selected Port 2 through the Device Manager (g oto Settings and search for Device Manager).

Have the Arduino plugged in and you should see it under USB Ports. Click the Advanced tab and you will see Port setting.

I found this out when using a USB-RS232 adapter cable. It would not work with Com Port > 4.

Try restarting your computer. I found that to be necessary after changing the port number in Device Manager.

I think I solved this ???

I'm using a Nano Every and I had selected the Arduino AVR Boards/Arduino Nano in the IDE. When I selected Arduino megaAVR Boards/Arduino Nano Every it uploaded OK but I got this message: "avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description"

I also went back to COM9 which is where it seemed to want to be...

It works. Can anybody explain this message I got ?

Thanks.

Dan_Ward:
I think I solved this ???

I'm using a Nano Every and I had selected the Arduino AVR Boards/Arduino Nano in the IDE. When I selected Arduino megaAVR Boards/Arduino Nano Every it uploaded OK

Yay! Thank you for taking the time to post an update with your solution. I'm sure those who find this thread while searching for a solution to the same problem will be very grateful.

Dan_Ward:
but I got this message: "avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description"

...

Can anybody explain this message I got ?

I don't have an explanation for you, but I can tell you that this is normal and expected. You can safely ignore this message.

Perhaps another forum member will be able to provide a real explanation of this to satisfy our curiousity.