I am hoping that someone can point me in the right direction for a solution to my problem. I have the following setup.
ATMEGA1284P on a custom board (very simple).
I am using an Atmel ICE ISP to program teh chip via the SPI port.
I have installed the latest version of the Arduino IDE v1.5.8 with the latest Atmel Studio v6.2.1502 SP1.
I installed 1284 support from here.
https://github.com/JChristensen/mighty-1284p My sketch compiles OK.
I can read the chip with the programmer OK.
I can upload the .elf file directly to the chip via the programmer OK.
When I try to use upload via "start without debugging" I get an error.
Binary sketch size: 1,158 bytes (used 1% of a 130,048 byte maximum) (0.38 secs)
Uploading to I/O board using 'atprogram_atmelice_isp'
Uploader started for board Mighty 1284p 16MHz using Optiboot
Uploader sometimes uses programmer name: atprogram_atmelice_isp
Uploader will attempt to use programmer name: atprogram_atmelice_isp
Upload failed. Did you select the correct upload method for this board?
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(String buildPath, String className, Boolean verbose, Boolean ProgrammerUploadUsing, String mcuProgrammerOverrideName)
at processing.app.SketchEditor.Upload(Boolean verbose)