Arduino Nano stuck at uploading

HELP please: One Arduino Nano stuck at uploading after successful compile while other Nano board got uploaded no issue.

Arduino: 1.8.10 (Windows 10), Board: "Arduino Nano, ATmega328P"

Sketch uses 3154 bytes (10%) of program storage space. Maximum is 30720 bytes.
Global variables use 222 bytes (10%) of dynamic memory, leaving 1826 bytes for local variables. Maximum is 2048 bytes.
C:\Users\Vinh Dam\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\Vinh Dam\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\VINHDA~1\AppData\Local\Temp\arduino_build_223621/stepper_oneStepAtATime.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\Vinh Dam\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM3
         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=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x31

avrdude done.  Thank you.

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.

Hi @mrvinh. I'm going to ask you to post the full output from the upload when in verbose mode.


:exclamation: NOTE: These instructions will not solve the problem. They are only intended to gather more information which might provide a clue that eventually leads to a solution.


Please do this:

  1. Select File > Preferences from the Arduino IDE menus.
  2. Uncheck the box next to Show verbose output during: compilation.
  3. Check the box next to Show verbose output during: ☐ upload.
  4. Click the OK button.
  5. Attempt an upload to the board that exhibits the "stuck at uploading" behavior, just as you did before.
  6. Wait for the upload process to finish.
  7. Click on the black console panel at the bottom of the Arduino IDE window.
  8. Press Ctrl+A to select all the text.
  9. Press Ctrl+C.
    This will copy the selected text to the clipboard.
  10. Open a forum reply here by clicking the Reply button.
  11. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code tags icon on toolbar
  12. Press Ctrl+V.
    This will paste the error output from the upload into the code block.
  13. Move the cursor outside of the code tags before you add any additional text to your reply.
  14. Click the Reply button to post the output.

Please let me know if you have any questions or problems while following those instructions.

was this board programmed before or it is first time?
does it appear in COM port list on connect to computer?
some board have old bootloader, did you already tried this option?
изображение

Hi Kolaha. This board was programmed many times before same set up as you described. I replaced with another Nano board and it got uploaded, this is the proof that the setup of IDE is good.

/*
 Stepper Motor Control - one step at a time

 This program drives a unipolar or bipolar stepper motor.
 The motor is attached to digital pins 8 - 11 of the Arduino.

 The motor will step one step at a time, very slowly.  You can use this to
 test that you've got the four wires of your stepper wired to the correct
 pins. If wired correctly, all steps should be in the same direction.

 Use this also to count the number of steps per revolution of your motor,
 if you don't know it.  Then plug that number into the oneRevolution
 example to see if you got it right.

 Created 30 Nov. 2009
 by Tom Igoe

 */

#include <Stepper.h>

const int stepsPerRevolution = 200;  // change this to fit the number of steps per revolution
// for your motor

// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);

int stepCount = 0;         // number of steps the motor has taken

void setup() {
  // initialize the serial port:
  Serial.begin(9600);
}

void loop() {
  // step one step:
  myStepper.step(1);
  Serial.print("steps:");
  Serial.println(stepCount);
  stepCount++;
  delay(500);
}
Arduino: 1.8.10 (Windows 10), Board: "Arduino Uno"

Sketch uses 3154 bytes (9%) of program storage space. Maximum is 32256 bytes.
Global variables use 222 bytes (10%) of dynamic memory, leaving 1826 bytes for local variables. Maximum is 2048 bytes.
C:\Users\Vinh Dam\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\Vinh Dam\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\VINHDA~1\AppData\Local\Temp\arduino_build_20917/stepper_oneStepAtATime.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\Vinh Dam\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM3
         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=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xc8
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xc8

avrdude done.  Thank you.

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.

BTW, The one Nano that was working now has stop working, same behavior.

I think is it possible that the previous running program's blocks the upload transfer? I wish there is a way to stop that program from running to try a new upload.

yes, it is possible, by watchdog enabling, sometime by Serial.begin to quick called, fuses change f.example reset disabling, etc.

I was trying to burn bootloader to reset it but there is issue with the ID number I don't know how to deal with. I think I bricked those Nanos. What do you think?

Either the wiring was wrong or you have blown the 328P.

When posting code or error messages, please see point 11 in post #2 to apply so-called code tags. It makes it easier to read, easier to copy and the forum software will display it correctly.

type or paste code here
```Use code tags to format code for the forum
Sorry I don't see any code. How do I attach code now?
I am sure the wring was right. The 328p was still running on the previous program so it is not blown.

You posted code and errors in post #5 :wink:

You can edit that post, select all code and click the <CODE> button. Repeat for the error message.
Next save your post.

There is a limitation of 120,000 characters for a post. When you reach that, you can attach; but it's preferred that you insert in the post.

1127765

That was a quote.

1 Click the pencil under the post in question
image

2 Your post will be shown the composer window
image

3 Select the code; below only shows part of the code selected
image

4 Click the code button
image

5 Repeat for the error message

6 Click the "Save Edit" button under the composer.

Try it; if you don't come right, let me know and I will do it for you.

Did as your instruction and it appears as Pos #1

Great :+1: I've modified your post #5.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.