I GOT IT!!!!!!!
What I was doing before was burning bootloader, setting fuses then uploading firmware. After setting fuses to disable JTAG, you can't upload firmware.
What I did now was burn bootloader, upload firmware then set fuses.
In order to make changes to firmware, which I did have to do, I had to reset the fuses back to the original settings, re-upload edited firmware then set fuses back again to disable JTAG.
Using an Arduino Uno as an ISP device with AVRDude from command prompt:
Original settings:
avrdude -B 8 -p m1284P -c arduino -P com4 -v -b 19200 -U lfuse:w:0xFF:m -U hfuse:w:0x9A:m -U efuse:w:0xFF:m
Disable JTAG:
avrdude -B 8 -p m1284P -c arduino -P com4 -v -b 19200 -U lfuse:w:0xFF:m -U hfuse:w:0xDC:m -U efuse:w:0xFD:m
Now everything works fine!
Edited 3 time(s). Last edit at 05/01/2014 12:58PM by kevbme.