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 14530 times)
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2710
Joined: Feb 13th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #40 - May 28th, 2021 at 12:14pm
Print Post  
Please follow the instructions on the Atmel Site about how to unbrick your device:
https://microchipdeveloper.com/boards:debugbrick#toc4

This will allow the DWEN bit to be unset correctly, using a standard Atmel Studio project.

Would you also be able to confirm how you created the Arduino project you are using in Atmel Studio?
  
Back to top
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 190
Joined: Jul 12th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #41 - May 28th, 2021 at 1:52pm
Print Post  
Hi!
Following your indication  I was able to UNSET the DWEN bit. 
I have open a new VM project using AS7.
rebuild : OK
upload using VM:ok
bebug/Start debugging and Break: ok (no error.....)

But, the debug do not work, is not possible to do the step command or watch a variable and don't stop on breakpoints.

Smiley

  

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


Posts: 2710
Joined: Feb 13th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #42 - May 28th, 2021 at 2:02pm
Print Post  
You need to ensure you have set the options below, as your screenshot shows "None On" for the Atmel Studio Debugger configuration:

  • vMicro > Debugger > Debug: Off
  • vMicro > Debugger > Atmel Studio Debugger [Enabled]


Then select the Atmel ICE probe and debugWIRE Interface on the Project Properties, and press Save.

From this point if the code uploaded to the board matches the code on the PC, you should be able to press Debug > Attach to Target (do not press Debug > Start Debugging).
NOTE - this should not try to perform a build or an upload at all, simply attach to the running debugger

Then it should request to set the DWEN Bit again, power cycle, after which the session should launch successfully.

To disable DWEN for reprogramming there will be an enabled Option, Debug > Disable DebugWIRE and Close, which will reset the DWEN Bit and allow the board to be reprogrammed again.
« Last Edit: May 28th, 2021 at 2:10pm by Simon@Visual Micro »  
Back to top
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 190
Joined: Jul 12th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #43 - May 28th, 2021 at 2:21pm
Print Post  
I've tried but it doesn't work, it never goes into debug. I give up, I'm going back to serial debugging with arduino UNO directly in the VM. Although I had tried and still had problems with serial too. I will only use the atmel ICE to load the Arduino UNO bootloader into new chips (if I can find them, it seems that silicon has become very rare). Thanks
Sad
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2710
Joined: Feb 13th, 2019
Re: Arduino UNO with HW Atmel ICE debugger do not start
Reply #44 - May 28th, 2021 at 2:46pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 
Send TopicPrint