I was uploading a sketch onto my arduino UNO working fine when the IDE suddenly reported the programmer is out of sync error.
I was using the same board for hours before that for a similar sketch.
Now what happened was the sketch was uploading, for which it erased the board first, according to the process and was uploading the new one when the error was reported.
Now when i plug in my arduino, the 13 pin LED blinks once after intializing and then, if i press the reset button, it blinks normally.
When i try to upload a sketch though, even the Blink sketch, the IDE reports an error and the 13 pin LED then stays on. Also the reset button stops responding.
another update,
I have another arduino UNO which is working absolutely fine. I switched the ATmega328ps on both the Arduinos and found out that the ATmega328p makes the board function like that.
Also when i enabled the show verbose option, the data according to me shows that communication between the board and my PC is working.
But there is a slight revision for IDE 1.05 where in Step 7 where the actual order of selection is Tools>Programmer>Arduino as ISP, and after this is selected, then run the Tools> Burn Bootloader command.