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) GDB debugging is disabled in VS 2012 (Read 31720 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #40 - Jan 29th, 2017 at 12:08pm
Print Post  
Thanks. it's very weird that such simple checks are causing such issue.

I will add some trace messages to the next release so that we can see more clearly what visual micro is seeing.

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #41 - Feb 6th, 2017 at 2:31am
Print Post  
In 2015 what are your settings under "tools>options>visual micro>gdb and on-chip debugging"

There are a lot of fixes for stm32 in the next release

There is a link to the next release at the top of this post if you want to try it.
« Last Edit: Feb 6th, 2017 at 2:32am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #42 - Feb 6th, 2017 at 2:52am
Print Post  
I checked, and GDB Enable was false. I set it to True, but still same problem. 
Quote:
Opening port
Port failed to open
Opening port
Port failed to open

I dont know why its keep trying to open port, there is no Serial, all it connected through st link.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #43 - Feb 6th, 2017 at 3:14am
Print Post  
Okay so you haven't uploaded a test program yet?

In the arduino ide, what do you click to upload?

In visual micro you need to select the stlink from the "vMicro>Uploader>Programmers list" and click "Use when uploading". After that you will find the standard upload commands use the programmer instead of the serial.
  
Back to top
WWW  
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #44 - Feb 6th, 2017 at 5:11pm
Print Post  
Tim@Visual Micro wrote on Feb 6th, 2017 at 3:14am:
Okay so you haven't uploaded a test program yet?

In the arduino ide, what do you click to upload?

In visual micro you need to select the stlink from the "vMicro>Uploader>Programmers list" and click "Use when uploading". After that you will find the standard upload commands use the programmer instead of the serial.
 
I did upload many times and upload works fine. Just debugging has the problem.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #45 - Feb 6th, 2017 at 6:07pm
Print Post  
Ok good. Without gdb in debug mode then cm will.attempt to use the serial.debugger.


Did you use blink to upload or standard Arduino serial?
  
Back to top
WWW  
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #46 - Feb 6th, 2017 at 7:08pm
Print Post  
Tim@Visual Micro wrote on Feb 6th, 2017 at 6:07pm:
Ok good. Without gdb in debug mode then cm will.attempt to use the serial.debugger.


Did you use blink to upload or standard Arduino serial?

Yes but now I just try to upload a simple empty loop just to check if debugging is working or not. I use F5 to debug.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #47 - Feb 6th, 2017 at 7:16pm
Print Post  
If the tool bar set to "Debug" or "Release"
  
Back to top
WWW  
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #48 - Feb 7th, 2017 at 8:20am
Print Post  
Tim@Visual Micro wrote on Feb 6th, 2017 at 7:16pm:
If the tool bar set to "Debug" or "Release"

Debug
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 
Send TopicPrint