I am trying to use the ATMEGA 1284p. First I tried burning the arduino bootloader on, and it said it worked, but then wouldn't let me program it. I tried to burn the bootloader on again and start from scratch, but now I get the error:
Error while burning bootloader.
I have checked my wiring about 100 times and also used 4 different sources of bootloader code. Nothing makes a difference. I am even uninstalled the Arduino program and begun again, and still I get this error.