I'm currently working on an Atmega1284P projet. I have design my own board, and i have a very very strange bug.
I'm stil working on my board, i plan to add a enc28j60 chip, a full POE (802.af) system, a ssd1306 screen and lot of sensor. But now i have just a led on lthe pin 31, the oscilator and the ISP header.
I have 5 atmega1284P :
One from a vendor on ebay, this one work without issue
Four from another vendor on ebay, they works to, but ten time slower than the first one ... WTF
Either way, the low fuse is set wrong - the divide by 8 bit is programmed, and you may also have it using internal 8mhz clock instead of a crystal (if you're using a crystal). The chip defaults to 1mhz operation (8mhz internal divided by 8 ), so it will run at the lowest supported voltage. You should be able to correct this by selecting the board and clock speed/source you want from the boards menu, and doing 'burn bootloader' (even if not using the bootloader, this sets the fuses to use the clock source you want.