ATMega1284P with Arduino IDE?

Try this.