Can't upload code to Nano

Hey, as title says, I cannot upload to my Nano, but can upload to 5 or so Uno's and a Mega, I followed the other posts instructions, but I don't know much about arduinos in general.
Here's a list of things I did.

Windows 10

Installed CH340
Back of Chip says FT232RL, didn't know how to check if I have a clone before installing drivers.
Installed FTDI drivers,
Tried different USB port, not different cable. Cable says "high speed data", and was brand new (opened last night).
Updated the AVR Boards to 1.8.6 (but also tried prev version and a random much older one.
Arduino was on version 2.0.3 (afaik, previous to 2.0.4) updated to newer version (2.0.4)
Before Updating IDE I didn't get any board info, now;
image

Lists the port as 12, when I unplug it disappears.
Device manager shows the device as USB Serial Converter

Currently trying to upload code using old bootloader and it uploads forever, but TX pin is flashing.
New bootloader gives this error code (did not give this before IDE update).

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\name\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM12
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 4.4
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\Users\name\AppData\Local\Temp\arduino\sketches\1394086210E4FCC2FEFDA25770D1AA0E/code.ino.hex"
avrdude: writing flash (3504 bytes):

Writing | ################################################## | 100% 1.34s

avrdude: 3504 bytes of flash written

avrdude done.  Thank you.

Any help appreciated!

Why do you think that the upload using "New Bootloader" is a failure ?

avrdude: 3504 bytes of flash written

avrdude done.  Thank you.

Looks OK to me

1 Like

I was using the "show verbose output" which i've never used before. Was using a bare Arduino with no pins so I assumed it was an error, re-plugged everything and it works! All those hours just to find its the IDE version :face_holding_back_tears:

Thank you though, never would have figured it out it was working now hahaha.

A simple test is to upload the Blink example. If the LED blinks then the upload probably worked. To make sure, change the delay() interval and upload again to make sure that the blink rate changes

2 Likes

Hi,

Sorry to bring up the issue again after marking as solved, it worked when I replied, but the day after it stopped. I decided to leave it, as I went to my University to try the Nano on a different computer to see if the issue was my PC, and it worked fine. So know I'm not sure, do you have any idea why it might be my computer specifically? Obviously, my Uno's work completely fine, so I'm just going to use those and then transfer everything over when I'm done in the lab. But it is a pain. And over this semester I've worked a lot using Arduino and I really enjoy it, I'd like to use more Nano's for cool things in the coming months, so any suggestion on a potentional solution would be great!

Also worth noting, I am using RF and realised sometimes uploading new code does not actually upload it and I've had to reset it (both UNO and Nano) but resetting only worked for my Uno's whereas obviously with my Nano this issue occurs. Some people have mentioned that simply resetting it and then uploading fixes it. I'm using my Nano for RF transmission. But as advised I've tried both Blink and LCD code but that still fails to upload. Is there any pins (except hardware serial 0/1) that I should avoid using?

Here's the error,

avrdude: ser_open(): can't open device "\\.\COM12": Access is denied.


Failed uploading: uploading error: exit status 1

Again, thanks for any help.

Edit: The Arduino version in my University is over 2 years old. However, all the code was written at home anyway as the older version only allows use of one serial monitor simultaneously which Is obviously annoying.

Edit2: Tried another Nano and same issue but on COM13
Error code;

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\Oskar\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM13
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: ser_open(): can't open device "\\.\COM13": Access is denied.



avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1

When using IDE 1.8.x if you open 2 or more instances of the IDE rather than opening one then doing File/New then each instance can use a different COM port and/or board, if that is what you mean

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