Thank you for your help. Please find answers below:
1.
Tim@Visual Micro wrote on Jan 5
th, 2018 at 9:42pm:
Is "atmel device programming" selected
Yes.
Tim@Visual Micro wrote on Jan 5
th, 2018 at 9:42pm:
is "always use programmer for upload" checked?
No. I checked that option and I now see some errors in the Micro Build output window. Please see below:
Uploading 'PQV_Firmware' to 'Arduino Due (Native USB Port)' 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
Error during upload using programmer
The uploader process failed
The uploader process failed
The uploader returned an error
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
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] The handle is invalid
2.
Tim@Visual Micro wrote on Jan 5
th, 2018 at 9:42pm:
switch on vmicro>uploader verbose then upload.
Same issues apparently. Judging by that command line, it seems to be trying to use the hardware debugger. Please find output below, also please note lines 4 and 5 below are actually one line only. I think the site editor split them.
Uploading 'PQV_Firmware' to 'Arduino Due (Native USB Port)' using 'Atmel Studio ATMEL-ICE (ISP)'
Uploader started for board Arduino Due (Native USB Port)
Uploader will use programmer name: atprogram_atmelice_isp
C:\Program Files (x86)\Atmel\Studio\7.0\atbackend\atprogram -d cortex-m3 -v -t atmelice -i ISP program -c -f PQV_Firmware.ino.hex"
[DEBUG] Starting execution of "program"
[DEBUG] Starting process 'C:\Program Files (x86)\Atmel\Studio\7.0\atbackend\atbackend.exe'
[ERROR] An unexpected error occurred when executing.
Traceback (most recent call last):
File "atmel\atprogram.py", line 48, in run
Error during upload using programmer
The uploader process failed
File "atmel\avr\cli\commandline.py", line 54, in execute_commands
The uploader process failed
The uploader returned an error
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
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] The handle is invalid