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 STM32F103 debugging with Black Magic Probe (Read 3245 times)
Natsuki-chan
Junior Member
**
Offline


Posts: 25
Joined: Jan 18th, 2017
STM32F103 debugging with Black Magic Probe
Jul 23rd, 2018 at 2:14pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: STM32F103 debugging with Black Magic Probe
Reply #1 - Jul 23rd, 2018 at 2:43pm
Print Post  
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: 25
Joined: Jan 18th, 2017
Re: STM32F103 debugging with Black Magic Probe
Reply #2 - Jul 23rd, 2018 at 2:54pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: STM32F103 debugging with Black Magic Probe
Reply #3 - Jul 23rd, 2018 at 3:01pm
Print Post  
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
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: STM32F103 debugging with Black Magic Probe
Reply #4 - Aug 21st, 2019 at 10:48am
Print Post  
vMicro now supports a range of additional hardware debuggers out of the box - including the BMP for the STM32 platform as needed here.

STM32 Debugging: https://www.visualmicro.com/page/STM32-Debugging.aspx

Debugger List: https://www.visualmicro.com/page/DebuggerSupportList.aspx
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint