Arduino nano error

I uploaded a code for a filament heat box to my Arduino Nano. everything compiled fine but when I upload it, it just sits there and comes back with this error

An error occurred while uploading the sketch

I've pushed the reset button, reloaded the software and even changed the version of the software. But I still get this error. Any ideas.

Welcome to the forum

Please post the full error message copied from the IDE using the button provided and post it here in code tags

What have you got the Processor set to in the IDE ?

Arduino: 1.8.19 (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)"

Sketch uses 21828 bytes (71%) of program storage space. Maximum is 30720 bytes.

Global variables use 615 bytes (30%) of dynamic memory, leaving 1433 bytes for local variables. Maximum is 2048 bytes.

An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

maybe it is not old bootloader?

tried the regular ATmega328P and it hung up and was told to use the old bootloader in the instructions

  1. Did the Nano work in the past when you did upload other code?
  2. Which version of the IDE are you using?
  3. Which operating system are you using?
  4. Anything connected to pins 0 and 1? Disconnect it.
  5. Anything else connected? Disconnect it. Please provide a schematic / wiring diagram.
  6. Please enable verbose output during upload and disable verbose output during compilation under file/preferences. Attempt an upload and post the full output using code tags (as described in How to get the best out of this forum).

First time for everything never used the nano berfore
running windows 10 pro
nothing is connected to pins 0 & 1

Arduino: 1.8.19 (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)"

Sketch uses 21828 bytes (71%) of program storage space. Maximum is 30720 bytes.

Global variables use 615 bytes (30%) of dynamic memory, leaving 1433 bytes for local variables. Maximum is 2048 bytes.

C:\Users\Lawrence\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\Lawrence\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM13 -b57600 -D -Uflash:w:C:\Users\Lawrence\AppData\Local\Temp\arduino_build_251019/Code_V1.0.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\Lawrence\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"



     Using Port                    : COM13

     Using Programmer              : arduino

     Overriding Baud Rate          : 57600

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x23

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x23

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00

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

Problem uploading to board. See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Nanos should come with the blink sketch preloaded. Does the L-LED indeed blink during normal use (1 second on, 1 second off)?

What happens when you press and release the reset button? Do you see one quick flash on the L-LED or a couple of quick flashes?

Is COM13 indeed the serial port? Does it disappear when you disconnect the board?

There are 3 options in the processor menu; did you try the 168 option?

What is the processor on the board?
What is the serial-to-usb converter on the bottom of the board?

Add: Is your USB cable for data or just power/charge cable?

the usb cable is for data and power i changed out the cables just in caser and received the same error.

I tried the 168 option and it would not compile

com13 is the port it does disappear and reappear when i unplug and replug the usb cable in

there are 2 red leds, when i push it nothing happens but when i release it 1 light goes out

the leds don't blink at all they just stay steady on

You should run that test with the blink example; sorry for that. Please determine which processor you have on the (top of the) board. If it doesn't read Atmel and 328P, please let us know what it reads.

image

Please determine which serial-to-usb converter you have on the board. Below is from a clone with CH340.

image

That's not good. One LED should be steady on (power), On a new board the sequence after pressing and releasing the reset button the sequence should be

  1. One or a few quick flashes.
  2. L-LED starts blinking (one second on, one second off).

If the first one does not happen, the bootloader is malfunctioning or your board is faulty.
If the second one does not happen, the board was not loaded with the blink sketch or your board is faulty.

Any chance that you electronically damaged the Arduino by connecting things wrong while working on your project?

It's actually a bit surprising that you write a sketch of that size in one go.

Do you have other Arduinos?

I did not write the sketch. This is a heater for a filament drybox which comes as a kit. You 3d print the pieces and the install the electronics and download the code and after watching a lot of videos on how to use Arduino, I tried uploading the code. Assembly no problem running the code and libraries all new to me.

The board does say Ateml 328P

I do not have any other Arduino's but I did order a new one to try to see if it works. If it does I'll send this one back.

It caused me the same problems when I had a usb disk in another USB port