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
Very Hot Topic (More than 25 Replies) GDB debugging is disabled in VS 2012 (Read 35148 times)
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
GDB debugging is disabled in VS 2012
Dec 8th, 2016 at 1:12pm
Print Post  
I use VS 2012 and now I want to do some debugging on stm32f103c8t6 board. But the children menu of Debugger, all are disabled. I also placed a boards.txt file in project folder containing following text.

Quote:
build.openocdscript=board/stm32f103c8t6mini.cfg
debug.tool=gdb
tools.gdb.pre_init.tool=openocd
tools.gdb.cmd=arm­none­eabi­gdb.exe
tools.gdb.path={runtime.tools.arm­none­eabi­gcc.path}/bin
tools.gdb.pattern="{path}/{cmd}" ­interpreter=mi ­d "{build.project_path}"
tools.gdb.openocd.cmd=bin/openocd.exe
tools.gdb.tcp=localhost:3333
9.0
tools.gdb.openocd.params.verbose=­d2
tools.gdb.openocd.params.quiet=­d0
tools.gdb.openocd.pattern="{path}/{cmd}" -f "{path}\scripts\interface\stlink-v2.cfg" -c "transport select hla_swd" ­s "{path}/scripts/" ­f "{path}/scripts/{build.openocdscript}" -c "tpiu config external uart off 24000000 12000000" 


But Im not sure if I have android tools for VS installed, I checked in control panel and there is nothing to install further.
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #1 - Dec 8th, 2016 at 2:23pm
Print Post  
Hi,

Well done for finding the board.txt commands because they are new and need better documentation

The problem is that Visual Micro replies on the Microsoft MI debugger which I know is installed with the Android tools for  VS2015. Haven't had a chance yet to see if there are options for older VS versions.

Visual Micro tests to see if the android tools are installed before enabling gdb.

If you find an alternative way to install the mi debugger in vs 2012 it will be an easy job to check for it so do let me know and I will repeat the steps and produce a new release.

Otherwise please install VS2015 with C++ and Android tools. VS2015 happily runs side-by-side with vs2012 so will not damage your 2012 install

Some crude instructions here:-

http://www.visualmicro.com/post/2016/01/03/GDB-for-Arduino-INO-Initial-Beta-Note...
« Last Edit: Dec 8th, 2016 at 2:36pm by Tim@Visual Micro »  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #2 - Jan 16th, 2017 at 9:03am
Print Post  
okay I tried this month ago, I tried this yesterday and today but VS 2015 cant seem to install Visual C++ Android Development. It says install succeed but when I open the VS modify dialog, there it is again available to install(Image). 

I already have android SDK installed, but VS keep insisting on installing Android SDK Setup (API 19 and 21), but if I enable it, install fails as 'addon-google_apis_x86-google-19' no longer exists on google server, but I tried many tricks and got 'addon-google_apis_x86-google-19' installed but then setup fails with following error.

Quote:
Android SDK Setup (API Level 19 and 21) : The following package(s) were not downloaded: extra-android-support . Please check your internet connection and try again.


So I unchecked this option and install finishes successfully but still Visual C++ Android Development doesn't get installed.
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #3 - Jan 16th, 2017 at 2:28pm
Print Post  
Hi,

Best place to ask is the microsoft connect web site. They will probably confirm which update of Visual Studio you are using and gather other information.
  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #4 - Jan 16th, 2017 at 2:32pm
Print Post  
Is there any standalone setup for this ?

Also I have read some people having similar problem and no good reply from microsoft.
« Last Edit: Jan 16th, 2017 at 2:34pm by xmen »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #5 - Jan 16th, 2017 at 2:37pm
Print Post  
Please provide visual studio version and update number details from the help>about

Try control panel>add or remove programs>visual studio c++ android tools>repair

I can't see what else you have selected in the vs options list. It might be related



« Last Edit: Jan 16th, 2017 at 2:37pm by Tim@Visual Micro »  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #6 - Jan 16th, 2017 at 2:48pm
Print Post  
I have Visual C++ for Mobile Development (Android support) inside Programs, does that mean I have "Visual C++ Android Development" Installed ?

Okay I created a new project, closed it, added boards.txt and reopen the project. Now there is no Debugger menu inside vMicro menu.

Edit : Fixed the sentence
« Last Edit: Jan 16th, 2017 at 2:52pm by xmen »  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #7 - Jan 16th, 2017 at 2:55pm
Print Post  
The VS C++ Mobile with Android is all you should need.

A missing entire debug menu is not related to android.

Can you please open a project, make sure the solution explorer is visible, select the project in the solution explorer, pull down the vMicro menu and take a screen shot.

Thanks
  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #8 - Jan 16th, 2017 at 2:58pm
Print Post  
It disappeared after I added boards.txt, before it was appearing but its submenus were disabled.
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #9 - Jan 16th, 2017 at 3:02pm
Print Post  
This is a different problem.

Visual Micro will go to sleep if the project name, folder name and a .ino do not match.

You don't have any code edit options or build options, not just debug Smiley

Right click the project and rename the "Sketch" to "vvv"

What did you click to create the project?
« Last Edit: Jan 16th, 2017 at 3:02pm by Tim@Visual Micro »  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #10 - Jan 16th, 2017 at 3:07pm
Print Post  
Renamed still same problem.
I created through File > New > Arduino Project.

I created new project, added boards.txt, reopen project twice. Debugger menu is appearing but all disabled.
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #11 - Jan 16th, 2017 at 3:22pm
Print Post  
Great, that's working correctly now.

The debug menu is disabled if you are using the free version.

Did you purchase in the past?

Or maybe you have switched on "Pause Pro Features" in tools>options>visual micro?
« Last Edit: Jan 16th, 2017 at 3:24pm by Tim@Visual Micro »  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #12 - Jan 16th, 2017 at 3:53pm
Print Post  
I'm kind of confuse, I did ask you about it. And you said I can use GDB debugging, it will only show nag screen.

http://www.visualmicro.com/forums/YaBB.pl?num=1472281000/12#12

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #13 - Jan 16th, 2017 at 6:06pm
Print Post  
Oh I see. The problem is the board.txt is part of pro so its ignored. You would have to experiment with platform.txt from the hardware folder then your gdb menu will appear. in the latest version "vMicro>General>rescan tooslchains and libraries" will detected your platform.txt changes without need to restart the ide.

The gdb is still in free but I should warn you that it will probably move to paid shortly. When I started the project 6 or 7 years ago I was under the false belief that making good software would see people either leave good review on the internet or if they can affort 25 euros they would buy the software. 

Sadly the world doesn't appear to work this way. Furthermore both Microsoft and Arduino change so fast it's becoming full time work to keep things going. Then we have users who want help with standard Ide functions and Arduino code it's becoming more and more difficult to justify the free software.

I hope this makes sense to you.
  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #14 - Jan 17th, 2017 at 8:12am
Print Post  
I understand, I had quite similar experience in past years. And I will soon purchase pro version when I will be coding. 

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #15 - Jan 17th, 2017 at 8:31am
Print Post  
There is an update in the gallery thanks
  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #16 - Jan 17th, 2017 at 9:05am
Print Post  
Whats new ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #17 - Jan 17th, 2017 at 12:43pm
Print Post  
Just the fix that removes the debug prompt.

Is your gdb working now?
  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #18 - Jan 17th, 2017 at 1:44pm
Print Post  
Haven't bought the pro version yet.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #19 - Jan 17th, 2017 at 4:15pm
Print Post  
You don't need it do you. You have changed the platform.txt and have the gdb menu. the gdb was attempting to launch for you yesterday but showed a confusing debug message.

So if you have updated today gdb should start without the message.

You only needed the paid version for the board.txt.

If you can test that it works and then provide the platform.txt changes along with a note of what hardware you installed from board manager or git then I can get you a free license.
  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #20 - Jan 18th, 2017 at 1:49pm
Print Post  
No I haven't touched platform.txt and what confusing message did it show?

I did update the visual micro, and menus are still disabled.

I believe we have some communication misunderstanding. Embarrassed
« Last Edit: Jan 18th, 2017 at 1:52pm by xmen »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #21 - Jan 18th, 2017 at 2:08pm
Print Post  
Sorry I was confused with two gdb threads in the forum.

What have you put in your board.txt?
  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #22 - Jan 18th, 2017 at 6:52pm
Print Post  
I will see about that after I buy pro.

Thank you.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #23 - Jan 18th, 2017 at 8:30pm
Print Post  
Don't buy pro just for this I can send you a trial key.

The gdb is released for vs2015 and above because it's tested with that I don't know if the android tools in vs2012 use the Microsoft MI debugger. It's the debugger that the android tools install that we use.

Email me at info[at]visualmicro.com and I will send you a key.

You also need to be prepared to work out a few settings. gdb is currently only standard for the arduino zero and to launchpad. Support for other boards can be added when users confirm the correct settings.
« Last Edit: Jan 18th, 2017 at 8:31pm by Tim@Visual Micro »  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #24 - Jan 19th, 2017 at 9:34am
Print Post  
Done.
  
Back to top
 
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #25 - Jan 25th, 2017 at 3:29pm
Print Post  
Okay I tried today with the key you sent me, the debugger submenus got enabled. But when I tried to debug I got this error.

Quote:
Opening port
Debug off
Port failed to open
To try connecting again untick and then tick the 'Connect' button or switch on communications 'Auto Reconnect' in the options
Opening port
Debug off
Port failed to open


You are using Serial to debug ? I needed to debug through ST LINK V2, which do not have serial.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #26 - Jan 25th, 2017 at 3:52pm
Print Post  
what have you added to board.txt or platform.txt
  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #27 - Jan 25th, 2017 at 3:55pm
Print Post  
Quote:
build.openocdscript=board/stm32f103c8t6mini.cfg
debug.tool=gdb
tools.gdb.pre_init.tool=openocd
tools.gdb.cmd=arm­none­eabi­gdb.exe
tools.gdb.path={runtime.tools.arm­none­eabi­gcc.path}/bin
tools.gdb.pattern="{path}/{cmd}" ­interpreter=mi ­d "{build.project_path}"
tools.gdb.openocd.cmd=bin/openocd.exe
tools.gdb.tcp=localhost:3333
9.0
tools.gdb.openocd.params.verbose=­d2
tools.gdb.openocd.params.quiet=­d0
tools.gdb.openocd.pattern="{path}/{cmd}" -f "{path}\scripts\interface\stlink-v2.cfg" -c "transport select hla_swd" ­s "{path}/scripts/" ­f "{path}/scripts/{build.openocdscript}" -c "tpiu config external uart off 24000000 12000000"
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #28 - Jan 25th, 2017 at 4:03pm
Print Post  
Great, do you now see a menu item vMicro>debugger>visual studio debugging?

It needs to be ticked

« Last Edit: Jan 25th, 2017 at 4:06pm by Tim@Visual Micro »  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #29 - Jan 26th, 2017 at 7:22am
Print Post  
Automatic Debugging is ticked.
« Last Edit: Jan 26th, 2017 at 7:23am by xmen »  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #30 - Jan 26th, 2017 at 3:48pm
Print Post  
Hi,

Two things are required for the gdb debug

1) debug.tool=gdb
2) Android tools with Microsoft MI debugger

As you know the gdb was released and tested for vs2015 and above. You have been able to install android into vs2012 but I don't know if it has the mi debugger.

Visual Micro looks for points 1) and 2), if they exist then the menu item is displayed

I suggest you switch on "vMicro>Compiler>Show build properties" then build and see if debug.tool=gdb is displayed in the outputed properties. This will show that you have configured point 1) correctly.
  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #31 - Jan 27th, 2017 at 3:09am
Print Post  
Your site wont allow me to post the entire build properties as its more than 8000 chars. But the build properties do have debug.tool=gdb



« Last Edit: Jan 27th, 2017 at 12:48pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #32 - Jan 27th, 2017 at 12:48pm
Print Post  
Please save the output to a .txt file and attach
  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #33 - Jan 27th, 2017 at 3:52pm
Print Post  
I did posted some part of it, but seems like removed ?

Here is attachment of build log, VS 2015
« Last Edit: Jan 27th, 2017 at 3:54pm by xmen »  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #34 - Jan 27th, 2017 at 5:20pm
Print Post  
Thanks for the output which looks okay so the problem suggests that the cross-platform android tools for vs are not installed.
« Last Edit: Jan 27th, 2017 at 5:20pm by Tim@Visual Micro »  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #35 - Jan 28th, 2017 at 4:17am
Print Post  
I tried to install it like 20 times, its always same as I said in #2 post.

http://www.visualmicro.com/forums/YaBB.pl?num=1481202758/2#2
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #36 - Jan 28th, 2017 at 1:07pm
Print Post  
Hmmm, we have a couple of other threads were people are working okay with this so I will have to try your platform settings.

Can you please tell me what you have installed for your board (which board etc to download)

I will see if your settings then work.

Thanks
  
Back to top
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #37 - Jan 28th, 2017 at 1:29pm
Print Post  
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #38 - Jan 28th, 2017 at 7:47pm
Print Post  
Thanks. That all checks out. I and other users have the same.

I tried your defs and the menu item shows for me. I even knocked out my pro license and it's still there.

I assume with a new empty project you have the same issue?

As I said there are only two checks. 1) for the debug.tool=gdb + props and 2) if android tools have installed the Microsoft MI debugger for us.

You have shown the tools are installed so I am not sure why you cant see the menu

Does your file>new>project window show the cross platform templates as in the attached picture?

  

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


Posts: 56
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #39 - Jan 29th, 2017 at 3:03am
Print Post  
VS 2015
  

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


Posts: 12191
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
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
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
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
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: 12191
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
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
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: 12191
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
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
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: 12191
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
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 56
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] 
Send TopicPrint