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 Error during download using programmer, Atmel-ICE (Read 4485 times)
Wolfie2016
Newbies
*
Offline


Posts: 2
Joined: Jan 31st, 2017
Error during download using programmer, Atmel-ICE
Jan 31st, 2017 at 7:36am
Print Post  
I have some issues when I want to download my ruin sketch code to the target.
I have contact with the ICE in Atmel Studio 7 and can download and set/reset the registers but when I am trying to download with the Visualmicro downloader I got the below message.


Compiling debug version of 'sketch_jan29a' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'

Program size: 2 658 bytes (used 1% of a 253 952 byte maximum) (4,69 secs)
Minimum Memory Usage: 321 bytes (4% of a 8192 byte maximum)
 
Uploading 'sketch_jan29a' to 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)' using 'Atmel Studio ATMEL-ICE (ISP)'
Firmware check OK
Error during upload using programmer
Upload failed

Upload failed
[ERROR] Could not establish connection to device. Please check input parameters, hardware connections, security bit, target power, and clock values.
The uploader returned an error
Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00 (Command has failed to execute on the tool). (TCF Error code: 1)

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error during download using programmer, Atmel-ICE
Reply #1 - Jan 31st, 2017 at 12:21pm
Print Post  
Hi,

The Atmel Studio ATMEL-ICE (ISP)' was submitted by a user and maybe doesn't work with your board.

In the programmers list you should see a programmer called "Use atmel studio device programming". this is the best option because visual micro leaves the upload to atmel studio. This would be the same as clicking "tools>device programming".

For device programming to work you should ensure your standard atmel studio project properties have the correct settings.
  
Back to top
IP Logged
 
Wolfie2016
Newbies
*
Offline


Posts: 2
Joined: Jan 31st, 2017
Re: Error during download using programmer, Atmel-ICE
Reply #2 - Feb 1st, 2017 at 7:23am
Print Post  
Thank you for the info. Now it's downloading and I can debug.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint