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 debugWire w/ Visual Micro ? (Read 4055 times)
perigalacticon
Junior Member
**
Offline


Posts: 55
Location: detroit area
Joined: Nov 7th, 2016
debugWire w/ Visual Micro ?
Nov 7th, 2016 at 2:49am
Print Post  
Hi I am a brand new user to Atmel Studio and Visual Micro.  I have been using the Arduino IDE but wanted to upgrade to get better debugging capabilities.   

Can you use debugWire while using Visual Micro in Atmel Studio?

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: debugWire w/ Visual Micro ?
Reply #1 - Nov 7th, 2016 at 12:57pm
Print Post  
Yes debug wire is available in Atmel Studio 7.

Enable the "Use Atmel Studio Debugger" menu item to allow Atmel studio debug to launch after an Arduino compile.

http://www.visualmicro.com/page/Arduino-for-Atmel-Studio-7.aspx

When you try to use the debugger Visual Micro will show some important tips in the output window. The most important is to see how to change the .ino files to a .cpp. If you don't use .cpp instead of .ino the debugger will run but have difficulty locating source code during break/step.

« Last Edit: Nov 7th, 2016 at 12:58pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
WWW  
IP Logged
 
perigalacticon
Junior Member
**
Offline


Posts: 55
Location: detroit area
Joined: Nov 7th, 2016
Re: debugWire w/ Visual Micro ?
Reply #2 - Nov 7th, 2016 at 5:25pm
Print Post  
Thanks.  Can I use this system to program raw ATTiny85 AVRs, where all the pins are used during the sketch?  It would appear so, because it is stated debugWire only needs to use the reset pin?  My sketch uses I2C and is maxing-out the chip resources pretty much.   

Also does debugWire work with all timer modes on both timers regardless of clock source (including PLL)?  Same for the Visual Micro serial debugger?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: debugWire w/ Visual Micro ?
Reply #3 - Nov 7th, 2016 at 5:39pm
Print Post  
Hi,

When the Atrmel Debugger is launched you are entirely into native Atmel Studio debugging so all questions need to be directed to Atmel (because I don't have all the answers).

Often the Atmel debuggers do use pins so can be a problem in that case just use the standard Visual Micro serial debugger if Serial is possible with your project.
  
Back to top
WWW  
IP Logged
 
perigalacticon
Junior Member
**
Offline


Posts: 55
Location: detroit area
Joined: Nov 7th, 2016
Re: debugWire w/ Visual Micro ?
Reply #4 - Nov 7th, 2016 at 6:01pm
Print Post  
Ok does the standard VM debugger work with all AVR timer settings ?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint