Nano Loading Problem

I have a Nano that i bought a while ago and never used. I have a simple sketch that compiles without errors. When I try to upload it to the Nano it hangs, although i Get two flashes of the LED.

My programer is AVRISP mkII

I see an error message that says 'not in sync:resp 0x91'

Other Uno boards and Teensy2 program ok.

Can someone please advise me what to do.

Thank you.

Have you tried changing to OldBootloader?

I don't have that option showing for the Nano. Just ATMega328P and ATMega 168. I'm using verson 1.8.5. How can I get that menu option? Thanks for any help.

sparkle99: I don't have that option showing for the Nano. Just ATMega328P and ATMega 168. I'm using verson 1.8.5. How can I get that menu option? Thanks for any help.

You write that you are using the AVRISP mkII programmer.

If that is not true, and you are trying to program via the USB port, then you need to update the Board Manager for AVR boards.

.

Tools > Board: ??? > Boards Manager

Many thanks to all that provided help to me. Nano loading OK now.

Thanks again.