Hi,
I am trying to use Visual Micro for debugging, but am not having any luck.
I have Atmel Studio 7 + "Arduino IDE for Atmel Studio 7" V 1811.24.0 installed.
I want to use my jtagice mk2 in DebugWire mode to debug an arduino .ino project (blinky example) on a custom board with a ATMega328PB.
I have a know good hardware setup and can debug native Atmel Studio project without a problem.
Is this supported?
There doesn't seem to be an option for it in vMicro - Uploader - Programmer:
The closest is "Atmel Studio JTAG ICE MK2 (ISP)"
I have already fused my target micro for DebugWire (thus disabling ISP) so I wasn't surprised it didn't download, but don't know how to proceed.
Any help would be appreciated.
If I try to debug, the message window shows this:
Uploading 'Sketch1' to 'Atmel atmega328pb Xplained mini' using 'Atmel Studio JTAG ICE MK2 (ISP)'
[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
The uploader process failed
File "atmel\avr\cli\commandline.py", line 54, in execute_commands
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 54, 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