Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
STM32F103 debugging with Black Magic Probe (Read 876 times)
Natsuki-chan
Junior Member
**
Offline



Posts: 16
STM32F103 debugging with Black Magic Probe
Jul 23rd, 2018 at 3:14pm
 
Hello all,

I'm trying to debug a STM32 using a Baite ST-Link converted to a Black Magic Probe but I can't figure out how to debug it. I can build and upload sketches and I can debug using the command line, but that is not really efficient.

I already looked up how to enable debugging but that is with OpenOCD which I don't need since a BMP already includes a GDB server.

How can I enable debugging without OpenOCD.
The STM32 core I use is https://github.com/rogerclarkmelbourne/Arduino_STM32

Visual Micro version: 1807.8.0
Visual Micro GDB version: 15.170821.1
Visual Studio version: 15.7.5
MI-debugger is installed
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10146
United Kingdom
Re: STM32F103 debugging with Black Magic Probe
Reply #1 - Jul 23rd, 2018 at 3:43pm
 
Hi

GDB is beta and might be difficult to make work. The usb debugger should work out of the box and provide unlimited (only by memory) breakpoints but it's not like a live view.

There will be a new gdb system over the next few months after we drop support for vs2012 and 2013 which prevent a simple and good solution.

If you want to try it the "vMicro>Help>Gdb" goes here https://www.visualmicro.com/page/Install-Arduino-GDB-for-Visual-Studio.aspx

You need to install the Visual Micro Arduino GDB extension from the gallery which works alongside visual micro.

3rd party hardware additions
https://www.visualmicro.com/post/2016/01/17/3rd-Party-Hardware-GDB-Configuration...

Gdb logs should end up below the project_folder\debug or \release folder
Back to top
 
WWW  
IP Logged
 
Natsuki-chan
Junior Member
**
Offline



Posts: 16
Re: STM32F103 debugging with Black Magic Probe
Reply #2 - Jul 23rd, 2018 at 3:54pm
 
Hi,

As stated in my post I already have it installed and know how to enable it. I also get debug logs.
But since you stated that the GDB implementation will change I will wait. Will the new version support a Black Magic Probe or is development not far enough to say that it will work.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10146
United Kingdom
Re: STM32F103 debugging with Black Magic Probe
Reply #3 - Jul 23rd, 2018 at 4:01pm
 
Oh sorry I missed that.

You don;t need to define the openocd parts in the example and can use a local board.txt instead of platform.txt for testing. Just remember to click save when changing a local board.txt because VS auto saves text files after the build process completes.


https://www.visualmicro.com/post/2016/01/17/3rd-Party-Hardware-GDB-Configuration...
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print