Code not uploading

I was able to upload code on arduino a while ago but now I am getting this error message:
Sketch uses 1022 bytes (3%) 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.
Error: programmer is not responding
Warning: attempt 1 of 10: not in sync: resp=0x00
Error: programmer is not responding
Warning: attempt 2 of 10: not in sync: resp=0x00
Error: programmer is not responding
Warning: attempt 3 of 10: not in sync: resp=0x00
Error: programmer is not responding
Warning: attempt 4 of 10: not in sync: resp=0x00
Error: programmer is not responding
Warning: attempt 5 of 10: not in sync: resp=0x00
Error: programmer is not responding
Warning: attempt 6 of 10: not in sync: resp=0x00
Error: programmer is not responding
Warning: attempt 7 of 10: not in sync: resp=0x00
Error: programmer is not responding
Warning: attempt 8 of 10: not in sync: resp=0x00
Error: programmer is not responding
Warning: attempt 9 of 10: not in sync: resp=0x00
Error: programmer is not responding
Warning: attempt 10 of 10: not in sync: resp=0x00
Error: unable to open port COM5 for programmer arduino
Failed uploading: uploading error: exit status 1

Welcome to the forum

More details please

Which Arduino board are you using ?
Does the PC create a COM port when you plug in the board ?
Can you see the COM port in Device Manager ?
Have you selected the current COM port and board in the IDE ?
If you are using a classic Nano board, which processor have you selected in the IDE and have you tried the alternative options ?
Is anything connected to pins 0 and 1 of the board ?

You didn't say, so let me guess.

Windows 11?

Nano clone?

I had this happening on a Nano (Atmega328PB) with the MCUdude's MiniCore

Some suggested to change the menu Tools->BaudRate from default to lower values. I picked 115200 and it worked.

Of course, it wasn't that simple, it took me a while to find out that having the AVR ISP connected would not allow uploading via serial.

At the same time, a similar Nano Atmega328PB board which somehow has the signature of the Atmega328P works fine with the regular AVR core and with the AVR ISP connected.

go figure

Thanks for your reply!
Arduino UNO
Yes ,COM 5.
YES , I can see it in device manager.
yes , Ive selected the board and COM.
Nothing is connected to pins 0,1.

Win 10
Arduino UNO

I am sorry, but i dont get that!
gpt is saying this:
In the official Arduino IDE 2.3.10, there is no Tools → BaudRate menu for upload speed on an Arduino Uno.

The only baud rate you can change is in the Serial Monitor, and that does not affect uploading.

@user_128

Did you verify you are using a USB DATA cable, and not a USB POWER cable?

If plugging in the USB lead creates a COM port then @user_128 is using a data cable

@UKHeliBob

Often, on my Windows computer, if I change the sketch or unplug/insert the USB cable, I must reset TOOLS >> BOARD >> AVR BOARD >> (my board) and TOOLS >> PORT >> (my port) between sketches, even when "board" or "port" are indicated, but grayed-out.

(assuming COM5 was valid at the last use of the IDE)

You described the Arduino board you are uploading to as "Uno". Something that can be confusing is there are multiple boards with "UNO" in their name. We need to be certain of exactly which one you have. The reason is that the problem might be caused by the IDE not being correctly configured for your specific board.

Please tell us which of the following boards you are attempting to upload to:

If you aren't sure which one you have, you can provide a picture of the board or a link to the place you bought it from and we'll see if we can identify it.

the baud rate only appears if you are using the "mini core"

Yes , It is USB DATA CABLE, As, I told earlier my arduino was working fine and i was able to upload the code but all of a sudden, I dunno what happened and now it is giving this error :
"Programmer is not responding"

The IDE is perfectly configured with my board because it was able to upload the code till yesterday but now it gives the error:
"Programmer isnt responding"
The board i am using is attatched.

The error snap shot is attactched:

Please try this experiment and then report the results:


:red_exclamation_mark: 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 this forum topic with the answer to the following question:

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