Trouble uploading sketch to Nano

I have a Arduino Nano that I keep getting this error when trying to upload a sketch I made.

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

Build options changed, rebuilding all
C:\Users\mdkgr\Desktop\My Arduino Sketches\MyKeypadExp02\MyKeypadExp02.ino:7:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

 char* secretCode = "AD227529";

                    ^

Sketch uses 3470 bytes (11%) of program storage space. Maximum is 30720 bytes.
Global variables use 343 bytes (16%) of dynamic memory, leaving 1705 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x0f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x0f
avrdude: stk500_recv(): programmer is not responding
Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x0f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x0f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x0f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x0f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x0f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x0f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x0f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x0f

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

As of a few months ago, official Nano boards have a new bootloader - if you're using one of those, you need to update the AVR board package using board manager.

Or maybe you've done that already, but the nano you have is one with the old bootloader - in that case, from the Tools -> Processor menu, select the (Old Bootloader) version.

The warning is nothing to worry about.

Thanks,
Yup, that's exactly what needed to be done :slight_smile:
It's working now :slight_smile: