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 10609 times)
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Arduino UNO with HW Atmel ICE debugger do not start
May 22nd, 2021 at 5:26pm
Print Post  
Hi!
I'm try to use a Atmel ICE connect to AVR emulator port but there is a problem when I try to start with debugger, VM, send this error

F5: Do not start,(no action!)

if I try with
debug/attach process -> unable to start...string is null or empty

The upload with HW ICE Atmel work fine without problem.

in attach the output log file.

Can you help me?
regards Cheesy


  

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 #1 - May 24th, 2021 at 9:21am
Print Post  
Thanks for the report.

Can you confirm (A or B):
A) You want to run the AVR GDB Simulator?
B) Or do you want to use GDB on the live process on chip?

Ensure vMicro > Uploader > Verbose is also enabled when completing the below steps:
1) Attach the output when you run Debug > Attach to Process
2) Attach the local board.txt and Launch.json files which have been added to configure this?

Note - We do not include the Atmel ICE GDB by default for the Uno as it requires fuse bits to be changed on the chip.
  
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 #2 - May 24th, 2021 at 10:07am
Print Post  
Hi,
I'm sorry but is not clear about two options A/B. Exactly what is to use GDB on the live process on chip?

My purpose is use the VM debugger via ICE emulator, I suppose this is AVR GDB simulator?

your note: for this reason will be never possible to use the ice atmel debugger?

I have lunch the debug via menu/attach/process but there is not any output, VM show immediately a window with the following error message:  Unable to start debug.... this string is null or empty without make any log file output.

in attach the log file with uploder verbose option on during the upload phase that work fine without erros.

for last. Sorry But where Can i find the board.txt and launch.json files? 

regards
  
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 #3 - May 24th, 2021 at 10:15am
Print Post  
here the log file
  

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 #4 - May 24th, 2021 at 10:30am
Print Post  
I mean that you want to Debug your code actually running on the Uno Board itself, not in some emulated environment on your PC.

It is my confusion over the word emulator, apologies I didn't recognise it as also meaning debugger/programmer.

It *is* possible to setup GDB for the Uno, BUT it will involve:
1) Adding a Local Board.txt and launch.json is done from vMicro > Add Code > Add Custom GDB Debugger (Advanced).
2) Changing the fuse bits on the board and in any relevant platform.txt patterns, which can be overridden in the local board.txt as well.
!Be careful changing fuse bits as you can kill the board!
3) Configuring the launch JSON file to have the correct patterns to launch GDB and OpenOCD for the Atmel ICE and this chip. More detail on the below page:
https://www.visualmicro.com/page/Debugging-Using-Custom-Hardware.aspx
  
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 #5 - May 24th, 2021 at 10:38am
Print Post  
Hi,
1) Ok now in my solution is present a board.txt file.
2)What do you mena excally kill the board? The board is a simple atmega324 MPU.
3) I'm sorry but for me is not possible to create a json files. Can you prepare for me?
regards
  
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 #6 - May 24th, 2021 at 1:26pm
Print Post  
Just to confirm, are you using Microchip/Atmel Studio, or Visual Studio?
  
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 #7 - May 24th, 2021 at 4:18pm
Print Post  
I'm using MS Visual Studio.
Smiley
  
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 #8 - May 25th, 2021 at 5:24am
Print Post  
My complete setting is:
- VM
- MS visual Studio
- ATMEL ICE hardware
- Arduino UNO or Arduino nano custom board
- Win10 64bit
  
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 #9 - May 25th, 2021 at 7:54pm
Print Post  
Hi guys!
are there some news about this ?

Grin
  
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 #10 - May 26th, 2021 at 8:21am
Print Post  
For this specific older Atmel Hardware, along with changing the fuse bits on the board and using the Debugging capabilities, the safest choice is to use Atmel Studio with the Visual Micro Extension.

This gives a UI for changing the fuse bits, and still has full integration with the Visual Micro toolset, alongside the Atmel specific capabilities of Atmel Studio.

We haven't implemented this within Visual Studio at present due to the risks of changing fuse bits via boards.txt being prone to error, potentially leading to an un-flash able chip.
  
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 #11 - May 26th, 2021 at 8:42am
Print Post  
this does not sound like good news. Then I have to use serial debugging with the AVR chip. Or install VM in Atmel studio. But does that mean buying a second licence because the one I have now is for Visual Studio?
  
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 #12 - May 26th, 2021 at 9:06am
Print Post  
Your license will work in both Visual Studio and Atmel Studio on the same machine, simply install the Visual Micro Extension in Atmel Studio.

If you have any issues activating it there let us know via email, with your key, and we will ensure it activates as expected.

The Serial Debugger was developed to avoid such intricacies and risks, and is a good alternative for the majority of users.
  
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 #13 - May 27th, 2021 at 6:03am
Print Post  
Hi!
Hi , I have installed VM for AS, I am reading your tutorials, right now I can load SW via ATmel ICE without any problems. Unfortunately I still can't start the debug for Arduino UNO. AS sees Atmel ICE has updated its internal FW to level 1.9 was 1.7. Can you help me? Smiley Smiley
  
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 #14 - May 27th, 2021 at 11:02am
Print Post  
Just to confirm:
Have you set the Debugging options so it uses the Atmel Studio Debugging?
(Shown in Debug Tab, Using a Hardware Debugger on this page: https://www.visualmicro.com/page/Arduino-for-Atmel-Studio-7.aspx)

Have you selected the DebugWire Interface in the AS Debugging settings?

It should show a specific prompt if the incorrect fuse settings are found on board, to allow the DWEN fuse bit to be set HIGH if it is not already, note the bricking fuse bits on this page if you do change any others:
https://microchipdeveloper.com/8avr:avrfuses

On the Uno you also need to modify the hardware as well, so as you can see coupled with the fuse changes, there is some risk involved here.
  
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 #15 - May 27th, 2021 at 11:30am
Print Post  
Hi!

So, on AS7 the debug setting now is on WIRE and AS7 show me a prompt .... fuse settings are found on board. How to correct this?

In any case the debug do not start.
Smiley
  
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 #16 - May 27th, 2021 at 11:37am
Print Post  
Please attach the full message shown in the IDE.

Please also confirm you have modified the board to allow the connection marked ResetEN is broken (on an original Arduino Uno).
(NOTE - Add a jumper here if you want to be able to use the serial programming again in the future, but leave the jumper removed in this debugging scenario)
  
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 #17 - May 27th, 2021 at 11:42am
Print Post  
Le resetEN is cut, there is a open jumper.
in attach the log file
  

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 #18 - May 27th, 2021 at 12:04pm
Print Post  
Please set the vMicro > Debugger > Debug: Off
Also ensure the vMicro > Debugger > Atmel Studio Debugger is Enabled

Then click Debug > Start Debugging and Break (which will reprogram the board and attempt to start debugging).

If the DWEN fuse is not set correctly, it will now offer to do this for you as shown below, and you need to fully cycle the power when prompted on the target board.
  
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 #19 - May 27th, 2021 at 12:18pm
Print Post  
Hi!
when lunch  Debug > Start Debugging and Break
AS7 show me this 

  

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