Im simply just trying to upload a test sketch to my arduino nano (Nano 3.0 ATmega328P CH340) and its stuck on uploading.
The Port is set properly, the board is set properly, but it still refuses to load the sketch onto the nano.
I enabled verbose logging and this is what shows up at the end:
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\xhick\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=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x8a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x8a
Things I've already tried:
Pressing the reset button while uploading/as soon as it starts
Trying a different usb port
Trying a different usb cable entirely
Trying a different processor (old bootloader)
Different sketches
Can someone please help?
Hi @pompanomike. Please try this experiment and then report the results:
This procedure is not intended to solve the problem. The purpose is to gather more information.
- Connect the Arduino board to your computer with a USB cable.
- Press and release the button on the Arduino board that is marked "RESET".
Now please reply here on this forum topic with the answers to the following questions:
- Did you see the LED marked "L" on the board blink immediately after you released the "RESET" button?
- Did the LED blink only once, or did it blink multiple times quickly immediately after releasing the button?
It only blinks 1 time quickly and then goes to blinking on and off every second
A program called a "bootloader" is stored in a special area of memory in the Nano board's microcontroller. The classic Nano (as well as its 3rd party derivatives) have been manufactured with two different types of bootloader installed.
You must configure the Tools > Processor menu in Arduino IDE according to which bootloader is installed on your Nano. Having the incorrect configuration selected in this menu is one of the potential causes of uploads failing with the "avrdude: stk500_recv(): programmer is not responding" error.
The single blink on reset tells us that your Nano board has the "old" bootloader installed.
I can see from the verbose upload output that you have Arduino IDE incorrectly configured for use with the Nano boards that have the modern bootloader.
Select Tools > Processor > ATmega328P (Old Bootloader) from the Arduino IDE menus and then try uploading again.
Hopefully this time the upload will finish successfully.
If it still fails, please provide the full verbose output that is produced from the upload attempt with the corrected Tools > Processor configuration. Please note that it is expected that uploads will fail when using a board with the "old" bootloader while you have Arduino IDE in the Tools > Processor > ATmega328P configuration, so it is essential for you to leave it in the Tools > Processor > ATmega328P (Old Bootloader) during all subsequent troubleshooting efforts.
This worked, thank you
the past few times ive used the old bootloader it would throw a random error, but after it threw the error this time i tried to just reupload and it went through perfectly.
You are welcome. I'm glad it is working now.
If you encounter this problem again, just let us know and we'll investigate further. It might have been caused by some completely separate problem that will have its own distinct solution.