Just found solution for the same problem, maybe could be usefull to somebody
In my case it was Atmega 328P with Uno preloaded. Any combination of board selection or programmer didnt help, always got "Not in sync" error.
Than I tested it with older versions of Arduion 0021 and 0022 and I was able to upload sketch with 0022 version.
My solution for the problem was:
- open txt file boards.txt located in \arduino-1.0.4\hardware\arduino\
Change following line:
save file and restart application.
after i fixed on my board.txt and i was using programming usbasp then click burn bootloader got this error by this avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
Double check chip, or use -F to override this check.
i went into my board.txt change to uno.upload.protocal=usbasp. it does not working i got this same error.
i check on my control panel to find usbasp properties and i looked at location Location 0 (Port_#0004.Hub_#0001). wont able to change to COM port is that ok?