How to program atmega1284?

How can I program an atmega1284?
Is there a super cheap way, like, not using some expensive programmer?


If you have an Arduino UNO, you can burn a bootloader to 1284.

If you have an Arduino you can use it as an “Arduino as ISP” programmer.

If you want to buy a dedicated programmer I recommend the 6 pin USBasp. You can get them for <$3 USD w/ free shipping on eBay.