VS Arduino
Visual Micro >> Microchip Studio (Atmel Studio 7) >> VM do not upload programs via atmel ICE.
https://www.visualmicro.com/forums/YaBB.pl?num=1521636049

Message started by LVY on Mar 21st, 2018 at 12:40pm

Title: VM do not upload programs via atmel ICE.
Post by LVY on 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?


Title: Re: VM do not upload programs via atmel ICE.
Post by Visual Micro on Mar 21st, 2018 at 1:36pm
Hi,

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.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.