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
Hot Topic (More than 8 Replies) Re: Amtel Ice not appearing as a debugger option in Vs2019 (Read 3040 times)
smal
Junior Member
**
Offline


Posts: 23
Joined: Mar 17th, 2021
Re: Amtel Ice not appearing as a debugger option in Vs2019
Mar 17th, 2021 at 10:48pm
Print Post  
Hi
I just want to add to the thread here, as I am facing the same problems. 

I have an Atmel-ICE Jtag download/Debug box (In fact a white Atmel SAM AVR JTag box) connected to an AtMega2560 board and my PC. This setup is working perfect, when I am working in "pure" Atmel Studio mode. As shown in the  figure here, where I have downloaded code to my AtMega2560 board

When using Visual Micro in either Atmel Studio (7) or Visual Studio (2019), I can't upload my sketch to my AtMega2560 target using F5 (start Debugging and Break). Hence loosing the JTag debugging facilities. In Both Visual Micro for Atmel Studio and Visual Studio, I have tried all possibilities for selecting the correct Hardware Programmer. But with a negative result for all of them.

The reason for me/us that we want to have JTag debugging capabilies up running in Visual Micro, is that we have to show these in an educational purpose. We are planning to buy a bunch of NodeMCU micros and a bunch of the white Atmel SAM AVR JTag box as well. As the NodeMCU device isn't supported in Atmel Studio, we had to find another development environment to put focus on. Hence we are now investigating Visual Micro. If the chances having our current choice of Micro and JTag box working in JTag debug mode is to low, we have planned to look at the ESP 32 device with another JTag box.

I know the last part of my post is a bit unaligned with the first part of my post. But if anyone with a good ESP<xx> knowledge should happen to read this post, I will be very happy to get some feedback on the last part here as well. We don't know too much about the different ESP<xx> processors, so feedback here will be much appreciated. 
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Amtel Ice not appearing as a debugger option in Vs2019
Reply #1 - Mar 17th, 2021 at 11:28pm
Print Post  
It sounds like you were using default atmel studio without visual micro so lets ignore than.

Please configure your project visual studio and visual micro then follow the guide in yellow above. Also limit your question to a single board then we can point you to docs for that board. They are all different.

Thanks
« Last Edit: Mar 17th, 2021 at 11:29pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
smal
Junior Member
**
Offline


Posts: 23
Joined: Mar 17th, 2021
Re: Amtel Ice not appearing as a debugger option in Vs2019
Reply #2 - Mar 19th, 2021 at 5:42pm
Print Post  
Actually I was not using default Atmel Studio (at least I think  Smiley. But to exclude this point from the issue here, I have been working entirely in Visual Studio now. 

Here I face the same problem though. I can't upload my sketch to my AtMega2560 board using the Atmel-ICE JTag debugger. 

Another problem is that I can't specify my Atmel-ICE as my HW Debugger. From various videos on the nex including this one : https://www.youtube.com/watch?v=SGxPpU8umqc, it should be possible to choose a HW debugger from a predefined list. But the only options I have in my project(s) is these 2 :
1) Manual/Custom
2) GDB
So how can I set up the predefined list of HW Debuggeres here ???

I have zipped my project and placed it here : https://drive.google.com/file/d/1Y9fg5eZaKiLBPLM_6CaNG8D7ulzvFP94/view?usp=shari... .

Hopefully it will clarify things, if you could have a closer look at it.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Amtel Ice not appearing as a debugger option in Vs2019
Reply #3 - Mar 19th, 2021 at 6:53pm
Print Post  
For upload you have to set the programmer not the debugger

Please configure your project visual studio and visual micro then follow the guide in yellow above.
  
Back to top
WWW  
IP Logged
 
smal
Junior Member
**
Offline


Posts: 23
Joined: Mar 17th, 2021
Re: Amtel Ice not appearing as a debugger option in Vs2019
Reply #4 - Mar 19th, 2021 at 11:07pm
Print Post  
I have set the programmer to Atmel ICE. I just don't have any possibilities for choosing this debugger as my Hardware Debugger. I "only" have the 2 options seen in the attached figure below. This figure also shows, that I have enabled the ATmel-ICE as "uploader" in my project.
And as mentioned in my last post i can't upload using the Atmel-ICE. I receive an upload error. 
When using the Atmel-ICE as "uploader" and debugger in a "pure" Atmel Studio project everything works as expected. So the Atmel-ICE should be both connected and functioned as expected. 
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
smal
Junior Member
**
Offline


Posts: 23
Joined: Mar 17th, 2021
Re: Amtel Ice not appearing as a debugger option in Vs2019
Reply #5 - Mar 19th, 2021 at 11:10pm
Print Post  
Here is the Micro Build output from my project. when I build and (try to) upload the project.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Amtel Ice not appearing as a debugger option in Vs2019
Reply #6 - Mar 20th, 2021 at 12:13am
Print Post  
Thanks, in device manager what is the usb driver name and version that shows when you connect the ICE?
  
Back to top
WWW  
IP Logged
 
smal
Junior Member
**
Offline


Posts: 23
Joined: Mar 17th, 2021
Re: Amtel Ice not appearing as a debugger option in Vs2019
Reply #7 - Mar 22nd, 2021 at 10:22am
Print Post  
The information regarding the driver you have requested is shown in the figure below. 
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Amtel Ice not appearing as a debugger option in Vs2019
Reply #8 - Mar 22nd, 2021 at 9:47pm
Print Post  
Thanks for all the info. To upload Visual Micro passes the work to avrdude.exe. You can see the cmmand line to perform the upload in the output you have posted. The final error is "avrdude: usbhid_open(): No response from device"

Code
Select All
d:\Programmer\Arduino\hardware\tools\avr\bin\avrdude "-Cd:\Programmer\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega2560 -catmelice_isp -Pusb mega2560\Debug/AtMega2560_Projekt1.ino.hex:i" 



avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch
         System wide configuration file is "d:\Programmer\Arduino\hardware\tools\avr/etc/avrdude.conf"
         Using Port                    : usb
         Using Programmer              : atmelice_isp
avrdude: usbhid_open(): No response from device


Therefore you can look for a solution for avrdude and ICE failing. I found a similar post here where the user explains how they resolved https://www.avrfreaks.net/forum/atmel-ice-avrdude-cannot-find-device

I note the user refers to libusb. It is also possible that an easy solution is to replace the ICE usb driver with one generated using tyhe libusb utility. Atmel do often have a clash between the usb driver that atmel studio installs and the usb driver that atmel avrdude.exe expects. This is a useful utility that might take care of it all for you https://zadig.akeo.ie/


Hopefully you can find the solution.
« Last Edit: Mar 22nd, 2021 at 9:48pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
smal
Junior Member
**
Offline


Posts: 23
Joined: Mar 17th, 2021
Re: Amtel Ice not appearing as a debugger option in Vs2019
Reply #9 - Mar 23rd, 2021 at 9:06am
Print Post  
I will look at it now and hopefully find a way through.

Though I just discovered yesterday that if I select an ESP32 device in my project (although I don't hava an ESP32 device available), I got a list of debuggers to select between as shown in the figure below. 

Does this actualle mean that ESP32 devices are the ones you have the best support for. I am going to buy devices and debuggers for educational purposes and my plan is to buy whatever is best supported in Visual Micro. Perhaps you can even point me in a right direction here ?
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: Amtel Ice not appearing as a debugger option in Vs2019
Reply #10 - Mar 23rd, 2021 at 10:50am
Print Post  
Our list of supported debuggers can be seen on the below page, and supports ESP32, SAM, SAMD, along with some support for MBED and STM32 boards.
https://www.visualmicro.com/page/DebuggerSupportList.aspx

And there are also more specific articles showing the in-IDE options for each set of boards, in the "Gdb Debugging" section of the Document Index: https://www.visualmicro.com/page/User-Guide.aspx?doc=index
  
Back to top
 
IP Logged
 
smal
Junior Member
**
Offline


Posts: 23
Joined: Mar 17th, 2021
Re: Amtel Ice not appearing as a debugger option in Vs2019
Reply #11 - Mar 23rd, 2021 at 1:50pm
Print Post  
Ok. I will have a closer look at the provided links.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint