Unable to Upload A New Sketch to an Arduino Nano V3

Just started playing with Arduino, but now I can no longer upload. In hindsight I believe I have locked up the serial output. The Arduino still runs the last Sketch I loaded at the time I was able to view the output via the COM port but after disconnecting the Nano and the reconnecting it was unable to connect. Eventually I managed to get it to re appear in device manager by downloading the FTDI drivers from the FTDI website (pointing at the Arduino IDE installation did not work) and manually adding the device.

I only put the print to serial in to assist with debugging a problem with loop. When the sketch runs initially there is a small delay in output to the serial, but after a very short while there is no delay, hence I effectively see the tx light stay on with the following error:-

avrdude: stk500_getsync(): not in sync: resp=0x00

I have tried the following, from similar information I have found.

  1. Tried uploading the minimal sketch, connecting/release reset button at the point the actual upload starts.
  2. Shorting the TX to ground, so as not to flood the output.
  3. Program via a Atmel AVR JTAGICE mkII programmer connected to the icp pins (I could not get this to identify the connection).

The sketch is below (it drives NeoPixlels /WS2812B Leds).

// NeoPixel Ring simple sketch (c) 2013 Shae Erisson
// released under the GPLv3 license to match the rest of the AdaFruit NeoPixel library
#include <Adafruit_NeoPixel.h>

// Which pin on the Arduino is connected to the NeoPixels?
#define PIN            5

// How many NeoPixels are attached to the Arduino?
#define NUMPIXELS      5

// Preset Reg, Green, Blue values
int R = 0;
int G = 0;
int B = 100;

// When we setup the NeoPixel library, we tell it how many pixels, and which pin to use to send signals.
// Note that for older NeoPixel strips you might need to change the third parameter--see the strandtest
// example for more information on possible values.
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

int delayval = 50; // delay for half a second

void setup() {
  pixels.begin(); // This initializes the NeoPixel library.
   Serial.begin(9600);
}

void loop() {
  // For a set of NeoPixels the first NeoPixel is 0, second is 1, all the way up to the count of pixels minus one.
  //for(int i=0;i<NUMPIXELS;i++){
    
    //for (int thisPin = 2; thisPin < 8; thisPin++)  {
    
    //for (int R = 0; R < 150; R++)
    // pixels.Color takes RGB values, from 0,0,0 up to 255,255,255
   if (B > 5)
{
 // int RA = random(0,10);
 //int GA = random(0,10);
 // int BA = random(0,10);
 // int RB = random(0,10);
 // int GB = random(0,10);
 // int BB = random(0,10);
  
    Serial.println(B, DEC);
    pixels.setPixelColor(0, pixels.Color(0,B,B)); // Moderately bright green color.
    
    pixels.setPixelColor(1, pixels.Color(0,B,B));
    
    
    pixels.setPixelColor(2, pixels.Color(0,B,B));
    
    pixels.setPixelColor(3, pixels.Color(0,B,B));
    
    pixels.setPixelColor(4, pixels.Color(0,B,B));
    
    delay(50);
     pixels.show(); // This sends the updated pixel color to the hardware.

B=B-1;
}

else
Serial.println("Subtract");



  
    }

Any help most appreciated.

Press and hold the Reset button.
Unplug the USB cable (this clears the flooded USB input buffers).
Plug in the USB cable.
Make sure the correct board type and serial port are selected.
Click on the sketch's upload button.
When you see the "Binary sketch size:" message (or see the RX light blink) release the Reset button.

Thanks for the reply. It turned out my problem was compounded by the Windows update and FTDI driver problem listed in subsequent posts. I managed to recover it by following the procedure in a YouTube video that was posted (though I just used the method with the drivers included with the original Arduino IDE), then upload the most minimal sketch. All OK now, though I will also be contacting SainSmart for an explanation as to why the FTDI chips are functioning the way they are!!!!!!

Windows 10
IDE V. 1.8.5

What worked for me is:

Tools> Board: Arduino Nano> Processor: ATmega328P (Old Bootloader)> Port: (Select whichever is available)> Verify sketch> Upload sketch> Done.

1 Like

DR2727:
Windows 10
IDE V. 1.8.5

What worked for me is:

Tools> Board: Arduino Nano> Processor: ATmega328P (Old Bootloader)> Port: (Select whichever is available)> Verify sketch> Upload sketch> Done.

The "old bootloader" option was not available in 2014 when this thread was started :wink:

@ sterretje

Thanks for the info buddy.
I just added it into the thread because I came across an issue last night where I couldn't upload to my Nano (first time using it) and thought it might help someone in the future.

I have the same problem.

I tried the reset buttons as suggested, but no luck.
I can only update the skecth if Nano is unplugged from the PCB with leds.

For the moment, I can follow this way, but when Nano is installed in a 3D model for a student, it may be not so easy.

PD: It is a Navo v3 clon.
IDE 1.8.10
Procesador: ATmega328P (old bootloader)
Programador: ArduinoISP

@cgfuentetaja

Anything connected to pin 0 and 1?
2)
How is your Nano powered when it's placed in the board?
3)
What else is on the PCB?

A circuit diagram can be extremely useful.