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) Debugger (Read 5512 times)
Leen
Junior Member
**
Offline


Posts: 14
Joined: Sep 1st, 2015
Debugger
Mar 2nd, 2017 at 4:39pm
Print Post  
Good day,

I would like to put this question to the Visual Micro team.
Maybe I'm doing it wrong but I do not know this site works.

I have installed the next programs :

I have installed the next programs :
Arduino IDE 1.8.1
Atmel studio 7
Visual Micro for Altmel studio 7
End I use Window 7
End I wants use the SAM-ICE for programming and debugging

First If I open a project I get the next message :

13:48:50: [WARNING] Error updating project settings:Object reference not set to an instance of an object.

When I program the arduino DUE with the SAM-ICE it works good, but if I use   Build & Upload  I get the next message:

Compiling 'BlinkWithoutDelay' for 'Arduino Due (Programming Port)'
Program size: 21,924 bytes (used 4% of a 524,288 byte maximum) (0.46 secs)

Uploading 'BlinkWithoutDelay' to 'Arduino Due (Programming Port)' using 'Atmel Studio ATMEL-ICE (ISP)'
Error during upload using programmer
The uploader process failed

[ERROR] Could not find tool.
The uploader process failed
The uploader returned an error

Should give you a hint how I can solve this problem.

Thanks in advance
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger
Reply #1 - Mar 2nd, 2017 at 4:50pm
Print Post  
Hi,

Thanks for the report.

1) Ignore this message, it's a bug in atmel studio and is harmless

13:48:50: [WARNING] Error updating project settings:Object reference not set to an instance of an object


2)

Set the programmer to "Atmel Studio Device Programming" not  'Atmel Studio ATMEL-ICE (ISP)'

This causes Visual Micro to automatically use whatever tool is configured in the Atmel project properties and the same as using "Tools Device Programming" but automatically uses the result of the Arduino build.
  
Back to top
WWW  
IP Logged
 
Leen
Junior Member
**
Offline


Posts: 14
Joined: Sep 1st, 2015
Re: Debugger
Reply #2 - Mar 2nd, 2017 at 6:38pm
Print Post  
Hello

The debugger works now.

I'm very happy with it, tomorrow I'm going to see how the debugger works.

Regards,
Leen
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger
Reply #3 - Mar 2nd, 2017 at 6:46pm
Print Post  
Excellent thanks for letting me know
  
Back to top
WWW  
IP Logged
 
Leen
Junior Member
**
Offline


Posts: 14
Joined: Sep 1st, 2015
Re: Debugger
Reply #4 - Mar 3rd, 2017 at 3:56pm
Print Post  
Hello,

I still have a question.

If I make modifications in the INO file, how can I make on a easy way the cpp file equal to the ino file.

Leen
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger
Reply #5 - Mar 3rd, 2017 at 4:06pm
Print Post  
Hi,

When you have a project_name.cpp the .ino files are no longer used. In fact you could comment or remove all of the .ino code because the .cpp does everything and it is the .cpp that you must update as live code.

We are working on supporting atmel AVR hardware debug from Visual Studio (VS). VS supports .ino files without need for .cpp. Currently only boards like the Arduino Zero that use gdb are supported in VS.
  
Back to top
WWW  
IP Logged
 
Leen
Junior Member
**
Offline


Posts: 14
Joined: Sep 1st, 2015
Re: Debugger
Reply #6 - Mar 3rd, 2017 at 4:55pm
Print Post  
Ok thanks for the information.

Leen
  
Back to top
 
IP Logged
 
Leen
Junior Member
**
Offline


Posts: 14
Joined: Sep 1st, 2015
Re: Debugger
Reply #7 - Mar 24th, 2017 at 8:50am
Print Post  
Hello,
After I have install the program I have done other work.
Now I started with the Debugging Tutorial. ( DEBUG )
I think that I use a SAM ICE as programmer and debugger the Debugging Tutorial  does not correspond to my configuration. ( Atmel studio 7 - Visual Micro an the SAM ICE )

Gladly an advice where I can find the right tutorial.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger
Reply #8 - Mar 24th, 2017 at 9:00am
Print Post  
When you use Atmel studio device programming you are not using visual micro to debug.

Please read the Atmel studio tutorials
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint