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 [2] 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) Arduino UNO with HW Atmel ICE debugger do not start (Read 10621 times)
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #20 - May 27th, 2021 at 12:23pm
Print Post  
Thanks, if you press [Apply] at the top of that window, it should read all settings from your board.

Then click on the Fuses Tab on the left hand side, and check what the HIGH.DWEN fuse shows (attach screenshot if possible)
  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #21 - May 27th, 2021 at 12:28pm
Print Post  
hi
the dwen bit is not selected.... so, selected it?
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #22 - May 27th, 2021 at 12:31pm
Print Post  
Correct, and then press Program.  It will warn about the risks of this, which you have to press OK to if you are happy.

Once this bit is set and programmed + verified, you may need to power cycle the target Uno to apply it.

Then try attaching the debugger again and it should now be able to access the debug data on this line.
  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #23 - May 27th, 2021 at 12:46pm
Print Post  
Hi!
AS7 has set the DWEN bit but after, when I try to lunch the debug show again the same window but when I try to select the fuse option the situation is a in attach.

do not start

Shocked
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #24 - May 27th, 2021 at 12:59pm
Print Post  
Once the fuse has been set and the board power cycled, this does not need to be changed again (as burned into the chip itself), and the window is appearing as you have the Uploader set to Atmel Studio Programming.

So you can either close the window when it pops up, if you don't want to program the device via the Atmel Studio Programming tool.

Or you can change your Device Programmer on the vMicro > Uploader > Programmer to Atmel ICE (AVR), which should prevent this window from popping up each time you try to debug.
  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #25 - May 27th, 2021 at 1:07pm
Print Post  
Hi,
ok for window, but the debug do not start again.
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #26 - May 27th, 2021 at 1:15pm
Print Post  
Apologies, try the Debug > Attach to Target.

Once the DebugWire is Enabled the programming cannot be completed.
  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #27 - May 27th, 2021 at 1:22pm
Print Post  
Hi! guys!
sorry do not start with Attach to target
you can see in attach.
Shocked
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #28 - May 27th, 2021 at 1:26pm
Print Post  
The Micro Build window is showing an upload was attempted, are you sure this is new from the attach event? (Clear the log before re-attempting)

Is there anything in the Output > Debug Window?
  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #29 - May 27th, 2021 at 1:38pm
Print Post  
ok clear all !
this is the output
Building project code ...
-A/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=108012 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Users\marco\OneDrive\DOCUME~1\Arduino\ARDUIN~2" 2\cores\arduino" 2\variants\standard" _UNO_TEST.cpp" -o T.cpp.o"
 
Linking it all together ...
# Coping cached core 36f4d\core.a to C:\Users\marco\AppData\Local\Temp\VMBuilds\ARDUIN~1\uno\Release\core.a

-A/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o T.ino.elf" _UNO_TEST.cpp.o" "C:\Users\marco\AppData\Local\Temp\VMBuilds\ARDUIN~1\uno\Release/core.a" "-LC:\Users\marco\AppData\Local\Temp\VMBuilds\ARDUIN~1\uno\Release" -lm
## recipe.objcopy.eep.pattern
-A/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 T.ino.elf" T.ino.eep"
## recipe.objcopy.hex.pattern
-A/bin/avr-objcopy" -O ihex -R .eeprom T.ino.elf" T.ino.hex"

Program ARDUINO_UNO_TEST size: 924 bytes (used 3% of a 32.256 byte maximum) (1,29 secs)
Minimum Memory Usage: 9 bytes (0% of a 2048 byte maximum)
 
# Copy build result to 'Project>Property Pages>Intermediate Directory'
# Destination: file:///C:/Users/marco/OneDrive/Documenti/Arduino/ARDUINO_UNO_TEST/Release

Uploading 'ARDUINO_UNO_TEST' to 'Arduino Uno' using 'Atmel-ICE (AVR)'
Uploader started for board Arduino Uno
Uploader will use programmer name: atmel_ice
A\bin\avrdude .0-A/etc/avrdude.conf" -v -patmega328p -catmelice_isp -Pusb NO_UNO_TEST.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 -A/etc/avrdude.conf"
         Using Port                    : usb
         Using Programmer              : atmelice_isp
avrdude: usbhid_open(): No response from device
Error during upload using programmer
The uploader process failed

avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2141
The uploader process failed
avrdude done.  Thank you.
The uploader returned an error
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #30 - May 27th, 2021 at 1:46pm
Print Post  
Thanks, this is still performing the build and upload to the board as before.

Please attach a screenshot of which button in Atmel Studio you are pressing to Attach to Target, as it should not be performing any programming attempts.

Also please attach output as text files in future as it can make the thread very difficult to read.
« Last Edit: May 27th, 2021 at 1:47pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #31 - May 27th, 2021 at 1:50pm
Print Post  
This is the screen shot
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #32 - May 27th, 2021 at 1:52pm
Print Post  
Thanks that looks correct, so do not understand why a build and upload is happening from what you have posted.

Please also ensure the unsaved project settings on the other tab shown are saved and updated if you have re-plugged the Atmel ICE.
  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #33 - May 27th, 2021 at 2:01pm
Print Post  
hi!
Restart Atmel
Restart Board (power off then power on)
Restart AS7
debug/attach to process
in attach the log file Wink
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #34 - May 27th, 2021 at 2:54pm
Print Post  
Can you attach a video of this process with the full IDE shown so we can understand fully?
  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #35 - May 27th, 2021 at 3:12pm
Print Post  
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #36 - May 28th, 2021 at 8:45am
Print Post  
Thanks for the video, and this is all in Atmel Studio's control when the attach button is clicked, though it should not trigger a build, nor attempt an upload.

It may also be worth re-uploading the code with a clean build, then just try the attach to target, without the start debugging first (as recompiling the binary may cause the attach to try an upload according to the Atmel Feature Doc)

It may also be worth updating Visual Micro to the latest version available in the Microchip Gallery (2021.427.5), or the latest available from the forum page below, just so its all up to date for any other issues or fixes:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES


  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #37 - May 28th, 2021 at 11:26am
Print Post  
Hi!
I have installed the new VM version, but there is no change to start. 
The situation is reported on pic.
This is the output when use the attach to target commad.

Shocked Sad

  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #38 - May 28th, 2021 at 11:30am
Print Post  
Have you unset the DWEN bit, recompiled, and re-uploaded the sketch to the board, then tried pressing Attach to Target again?

At present this is outside of Visual Micros control to our knowledge as this is simply using the Atmel studio features now.
  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #39 - May 28th, 2021 at 11:50am
Print Post  
Hi
I can't set the DWEN bit... this is the output.

Shocked
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 
Send TopicPrint