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
Normal Topic Software debug only using simulator? (Read 712 times)
PStechPaul
Junior Member
**
Offline


Posts: 33
Joined: Mar 25th, 2016
Software debug only using simulator?
Mar 28th, 2016 at 9:26pm
Print Post  
It appears that the debugging tool uses the serial port to connect to the target. But I would like to debug using the simulator, which does not appear to be available using Visual Studio and the Visual Micro extension. I am able to debug simple projects using Atmel Studio and the simulator, but I have been unable to get either 6.2 or 7.0 to use the Visual Micro extension so that I can adopt the environment from the Arduino project.

Is there a way to use the Atmel simulator in Visual Studio? Or is there a way to load the environment from the Arduino to Atmel Studio?

Thanks.  Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Software debug only using simulator?
Reply #1 - Mar 28th, 2016 at 11:05pm
Print Post  
Hi,

Yes in as6.2 you can click "file>open>object file for debugging". It might also work for as7

In as7 you can also use "file>open>project>convert arduino"
  
Back to top
IP Logged
 
PStechPaul
Junior Member
**
Offline


Posts: 33
Joined: Mar 25th, 2016
Re: Software debug only using simulator?
Reply #2 - Apr 2nd, 2016 at 4:40am
Print Post  
I tried opening an object file for debugging but I think it needs to connect to a source file to set breakpoints and examine variables and memory and I/O as I can do with the simulator and a C project.

It should be possible to modify the Arduino include files and libraries to be compatible with standard C syntax. Mostly it might just involve setting up the environment and build paths from the Arduino framework.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Software debug only using simulator?
Reply #3 - Apr 2nd, 2016 at 11:58am
Print Post  
Open object file used to set everything up. I will be looking at this some more in the future.

Try file,open,project,arduino sketch. That should.convert to std atmel
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Software debug only using simulator?
Reply #4 - Apr 4th, 2016 at 11:11am
Print Post  
This Topic was moved here from Arduino Debugger [move by] Visual Micro.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint