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 cannot stop at breakpoint with avrisp mkii (Read 6325 times)
doubled
Newbies
*
Offline


Posts: 4
Joined: Sep 28th, 2015
cannot stop at breakpoint with avrisp mkii
Sep 28th, 2015 at 8:48pm
Print Post  
I can successfully upload a sketch in Atmel Studio 6.2 with my AVRISP mkii, but I cannot stop at a breakpoint. 

If I select "automatic debugging" in visual micro options, I always get an error in the serial monitor "port failed to open", and the code is never installed. 

If I deselect "automatic debugging", the code will install and run but not stop at my breakpoints...

  
Back to top
 
IP Logged
 
doubled
Newbies
*
Offline


Posts: 4
Joined: Sep 28th, 2015
Re: cannot stop at breakpoint with avrisp mkii
Reply #1 - Sep 28th, 2015 at 8:59pm
Print Post  
i'll also add that I cannot perform either one of the steps described in "To make breakpoints halt sketch execution when passed..." section of the debugging guidelines. 

"Set "Break/Pause" to "True" in the Project Properties window"
-I don't know were to find this option in atmel studio project properties

"Deselect "Auto Continue" in the "Breakpoint Manager" menu item of the Serial Monitor Options button"
-my serial monitor window does not have an "options" icon so I cannot follow this step in the debug guidelines 
  
Back to top
 
IP Logged
 
doubled
Newbies
*
Offline


Posts: 4
Joined: Sep 28th, 2015
Re: cannot stop at breakpoint with avrisp mkii
Reply #2 - Sep 28th, 2015 at 9:24pm
Print Post  
My setup: Arduino Uno, powered separately (no USB cable), with AVRISP mk ii. I have erased the chip so there should be no serial bootloader. 

When I try "start debugging and break" I always get the serial monitor window and an error saying port failed to open. 

Am I missing something here? I feel like I should be able to debug with the usb cable / serial port. I have "Atmel Studio AVRISP MK II (ISP)" selected in the programmer options
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: cannot stop at breakpoint with avrisp mkii
Reply #3 - Sep 29th, 2015 at 10:21am
Print Post  
Yes some confusion.

Automatic debug is fine, it simply avoids have to enable debug for each configuration. 

If you do not want to debug using the upload port (which you are not using because you have avrisp) then follow this guide and ensure RemotePort specifies the usb port http://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging-With-Different-Por...

If you want to debug using Atmel and not Visual Micro then build the project using Visual Micro and then click "File>Open object file for debugging"

The default break/pause, continue settings are/were fine

Thanks
  
Back to top
IP Logged
 
doubled
Newbies
*
Offline


Posts: 4
Joined: Sep 28th, 2015
Re: cannot stop at breakpoint with avrisp mkii
Reply #4 - Sep 30th, 2015 at 6:31am
Print Post  
Ok thanks. I have built the project and made a new project via File->"open object file for debugging". When I click "start debugging and break", the code is loaded onto the Uno and starts running but I do not hit any breakpoints. 

I'm starting to think using use mkii is maybe too much of a headache
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: cannot stop at breakpoint with avrisp mkii
Reply #5 - Sep 30th, 2015 at 11:39am
Print Post  
I don't know much about hardware debug for Arduino. The reports I hear are that you have to set some fuses, make a small alteration to the board and sometimes risk corrupting the mcu.

I think it's why most people have stayed away from it. As you see it's also difficult to work with .ino files. The atmel "open object file for debugging" loads a cpp project without .ino so it's not much fun.

This is the reason why I made the simpler usb debug
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint