So I am not convinced i am posting this is in the right place but I think its ok here.
I want to program a mega1284 chip from the Arduino IDE.
two options: a) use the arduino as an ISP and have the chip on the breadboard, or b) use my AVRISPMKII to program it.
I am using Arduino 1.0 for this.
So far I have added the following to the boards.txt file
##############################################################
mighty.name=Original Mighty 1284p 16MHz
mighty.upload.protocol=stk500
mighty.upload.maximum_size=129024
mighty.upload.speed=57600
mighty.upload.using=avrispmkii
mighty.bootloader.low_fuses=0xff
mighty.bootloader.high_fuses=0xdc
mighty.bootloader.extended_fuses=0xfd
mighty.bootloader.path=stand1284
mighty.bootloader.file=ATmegaBOOT_1284P.hex
mighty.bootloader.unlock_bits=0x3F
mighty.bootloader.lock_bits=0x0F
mighty.build.mcu=atmega1284p
mighty.build.f_cpu=16000000L
#mighty.build.core=arduino:arduino
mighty.build.core=stand1284
mighty.build.variant=stand1284
I have added folders stand1284 etc to the correct places (cores/variants etc) I also edited the signature in the avrdude.config to match the 1284 instead of the 1284p.
I have then tried to program it using the avrispmkii. I have no problem burning a bootloader but when I try to program the blink example to it, I get the error:
avrdude: stk500_getsync(): not in sync: resp=0x00
although it does say upload done, but the led doesnt flash...
So now I am trying to do it using Arduino as ISP. Can I just connect the 6 pins of the ICSP header on the arduino to the correct pins on the mega1284?