today i tried to upload a sketch to my arduino uno using the nano as isp. it didnt work becaus emy uno was broken but now im trying to get may nano back to normal but i can't upload any sketch.
is there any solution?
my IDE shows this when i try tio upload a sketch...
Sketch uses 924 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 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=0x98
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x98
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x98
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x98
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x98
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x98
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x98
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x98
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x98
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x98
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.
Sketch uses 924 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
An error occurred while uploading the sketch
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
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.
If you load a sketch via a programmer , then you will overwrite the bootloader with the sketch ;this may have happened in your case . Without the bootloader installed you cannot upload a program via the USB.
So ... you need to upload the bootloader again using a programmer( another Arduino as isp or a programmer).
Out of interest why were you trying to program it this way ?
hammy:
If you load a sketch via a programmer , then you will overwrite the bootloader with the sketch ;this may have happened in your case . Without the bootloader installed you cannot upload a program via the USB.
So ... you need to upload the bootloader again using a programmer( another Arduino as isp or a programmer).
Out of interest why were you trying to program it this way ?
The OP was using the Nano, loaded with the ArduinoISP sketch, to program an UNO, and is now trying to load another sketch onto the Nano. There is no danger of the Nano bootloader having been overwritten.
To the OP:
Do you have a capacitor connected to the RESET pin of the Nano (that is sometimes needed while using as an ISP programmer)? If so, you need to remove it.
What was the problem with the UNO? It is remotely possibly the Nano may have been damaged during the attempted programming of the UNO.
Sorry got it the wrong way around - it will be the UNO that has lost its bootloader, nano should not have been affected. Note to self : read slowly.....
Having said that , if I have an unresponsive board I would try a bootloader upload - I’ve had a Chinese clone where I accidentally spiked a port and somehow corrupted the bootloader ( well reloading fixed it ).