Problem uploading sketch to Nano but Uno is ok

I have an Uno and a Nano and I have no problem uploading to Uno. But after I change in Tools to use Nano (328) and different serial port, it tries to upload. I get to about 90% on the bar, and 2 green flashing LEDs on the nano before it stops working with error message:

avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: stk500_cmd(): programmer is out of sync

What am I doing wrong? Nano is new just got it today.

Looks like the programmer is not recognizing the device it's programming to. Either the settings in the programmer aren't right, or you didn't connect the nano properly to your computer.

David

Would bad USB cable cause that as well? I had the right setting in the software and still couldn't upload. On a hunch, I used the USB cable that came with my camera as it used the same plug style. Then I tried again, it worked.

I tried the old cable, same USB port, same setting, still errors out. I'm just going to throw out the USB cable, 18 inches is too short for some desktop that don't have front USB port. My camera USB cable is a more reasonable 3 feet.

Cable failure is certainly possible... I had to throw out one myself as well a while ago.

Good luck with your project!

David