Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
Page Index Toggle Pages: 1
Send Topic Print
VM do not upload programs via atmel ICE. (Read 1021 times)

Posts: 1
VM do not upload programs via atmel ICE.
Mar 21st, 2018 at 12:40pm
So, for start,  I recently use VM to upload skeches from AS7 via ATMEL ICE directly to board (custom board, but it uses some of arduino libraries) using ISP and it all worked flawlessly. unfortunately my PC gone and i have brand new instane of AS7 witch microchip gallery and install VM pro. when i try to upload program to board i got these message:

Uploading 'X1' to 'Arduino Nano w/ ATmega328' using 'Atmel Studio ATMEL-ICE (ISP)'
[ERROR] An unexpected error occurred when executing.
Traceback (most recent call last):
  File "atmel\atprogram.py", line 48, in run
  File "atmel\avr\cli\commandline.py", line 54, in execute_commands
  File "atmel\avr\cli\commandexecutor.py", line 52, in execute_commands
  File "atmel\avr\cli\resourcemanager.py", line 44, in prepare_resources
  File "atmel\avr\cli\resourcemanager.py", line 51, in _prepare_resource
  File "atmel\avr\cli\resourcecontainers.py", line 55, in allocate
Error during upload using programmer
The uploader process failed

The uploader process failed
The uploader returned an error
  File "atmel\avr\cli\backend.py", line 134, in start
  File "subprocess.py", line 702, in __init__
  File "subprocess.py", line 823, in _get_handles
WindowsError: [Error 6] [bad handling]

I checked every thing on IDE, on forum, and google, and nothing. any help?

Back to top
IP Logged
Visual Micro

Posts: 10753
United Kingdom
Re: VM do not upload programs via atmel ICE.
Reply #1 - Mar 21st, 2018 at 1:36pm

Don't use the ICE programmer option, use the "Atmel Device Programming".

When you use Atmel Device Programming then Visual Micro hands over the upload to Atmel Studio. In this case you can use the standard atmel studio project properties to select your programmer or the sim.

Then everything works as normal for arduino.

The "Atmel Studio ATMEL-ICE (ISP)'" was provided by a user and is only valid if you have arduino usb drivers instead of atmel drivers. Atmel studio replaces all the arduino drivers when it is installed.

Using atmel device programming is a much better solution and works the same as normal arduino from user perspective.
Back to top
IP Logged
Page Index Toggle Pages: 1
Send Topic Print