ATmega1284P: End to End using 1.0 IDE

CrossRoads:
This one?
http://arduino.cc/en/Main/USBSerial
Should be.

Ya, but the thing is that it's not working (uploading sketches) for me when I'm using "Mighty 1284P 16MHz optiboot bootloader". All I get is the programmer not in sync error that everyone is getting here.

But if I use the modified "Mighty 1284P 16MHz optiboot bootloader" namely the "Piccaso Mighty 1284P 16MHz SLOW optiboot bootloader (28800 baudrate)" then uploading sketches is possible but with variable results. Sometimes the upload is successful and sometimes I get the pogrammer not in sync error.

I've setup everything as Mighty suggested on his blogg. And I'm using Arduino 1.0.1 IDE for uploading the sketches. The bootloader was burned with the ArduinoISP sketch on my Arduino Mega R3.

Edit: here is the error:

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