Uploading sketch to Nano yet another problem

Using either Visual Studio Code or Arduino IDE 2, I cannot upload to any nano boards.

Sketch uses 15864 bytes (51%) of program storage space. Maximum is 30720 bytes.
Global variables use 491 bytes (23%) of dynamic memory, leaving 1557 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\jcoco\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\jcoco\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM7" -b115200 -D "-Uflash:w:C:\Users\jcoco\AppData\Local\Temp\arduino\sketches\8286BA38D4AA54796654E53A8787E41E/ukmarsey.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\jcoco\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM7
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x53
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x65
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x69
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x6e
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x67
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x73
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x6c

avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1

I have AVR Boards 1.8.6 installed and the Arduino Nano selected. The application already running on the Nano displays data on the serial port so I think my cable is a data cable that I'm trying to use to program it. Same thing on my Linux box as my Windows box. I can upload the same sketch to a Uno successfully. What's up?

Joe

You mentioned that there was a sketch already running on the Nano. Did you upload that with your current setup? Also, have you closed the connection you mentioned that was open on the serial port?

Eject the Nano to stop the sketch.

It was uploaded from the vendor I purchased a complete unit from that is powered by a Nano and must be configured to properly operate by modifying parameters as a result of data read back from the unit and recompiled. The data was copied down. The configuration edited. And the Serial Monitor closed before compiling and uploading. I will keep trying. I'm probably doing something dumb like that but I usually forget one IDE is already opened causing a port not accessible error.

So you've never programmed it yourself? Have you tried selecting the old bootloader?

I just tried your suggestion with positive results. Thanks. I saw that in other posts I searched before I made mine but did not recognize my board as requiring it. Thanks for the intuitive help.

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