Uploading error

guys, I am a student . In class 11 , haryana state in india and my english not good i'm facing error while uploading code in arduino nano
here is error
Sketch uses 18374 bytes (59%) of program storage space. Maximum is 30720 bytes.
Global variables use 948 bytes (46%) of dynamic memory, leaving 1100 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\lenovo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\lenovo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM4" -b115200 -D "-Uflash:w:C:\Users\lenovo\AppData\Local\Temp\arduino\sketches\EC4846F5110403F95027674D4CE1552E/OttoS_BLE.ino.hex:i"

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Users\lenovo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

     Using Port                    : COM4
     Using Programmer              : arduino
     Overriding Baud Rate          : 115200

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x18
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x18

avrdude done. Thank you.

Failed uploading: uploading error: exit status 1

Hi @22shivanshu. You described the Arduino board you are uploading to as "Nano". Something that can be confusing is there are multiple boards with "Nano" 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.

Thanks for reply! Problem shorted sir

Maybe provide some feedback as to how you solved it. Others that encounter the same problem and find this topic might find that information useful.

can you send the error without verbose output? after that i may give suggestions

Hi @sterretje . I identified the issue after rechecking my board settings in the Arduino IDE. I was using a classic Nano clone with an old bootloader, but the IDE was configured for the new bootloader.

I resolved it by selecting:

  1. Board: Arduino Nano
  2. Processor: ATmega328P (Old Bootloader)
  3. Port: [COM Port assigned to the Nano]

After making these changes, the upload worked perfectly. I hope this helps others who encounter a similar issue