Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problem programming ATMEGA1284P with Atmel ICE (Read 2736 times)
Auto Commander
Newbies
*
Offline


Posts: 1
Joined: Jan 5th, 2015
Problem programming ATMEGA1284P with Atmel ICE
Jan 5th, 2015 at 10:34pm
Print Post  
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)

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem programming ATMEGA1284P with Atmel ICE
Reply #1 - Jan 6th, 2015 at 12:21pm
Print Post  
Hi,

I think this "possibly" because you are using a custom processor that normal Arduino upload tools do not understand.

It sounds like normally you are not using visual micro to upload but instead using the atmel studio device programming window.

It's okay to use atmel as long as you first performed the build with visual micro. I am assuming this is what you are doing?

Currently Visual micro does expect to perform the upload for the debug version however you can work around that by attempting a debug upload, letting it fail and then using atmel to upload the hex.

Then upload the hex using the atmel tools and open the serial monitor to start the debug. 

I don't know if this will work, have not tested it. After doing this let if the debugger does not start-up when you open the serial monitor.

Alternatively you can create your own atmel isp programmer entry on the visual micro menus which i can explain if required

Thanks

« Last Edit: Jan 6th, 2015 at 12:22pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint