Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
Visual Micro >> GDB Debugging >> STM32F103 debugging with Black Magic Probe
https://www.visualmicro.com/forums/YaBB.pl?num=1532355273

Message started by Natsuki-chan on Jul 23rd, 2018 at 3:14pm

Title: STM32F103 debugging with Black Magic Probe
Post by Natsuki-chan on 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

Title: Re: STM32F103 debugging with Black Magic Probe
Post by Visual Micro on 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-Guide.aspx

Gdb logs should end up below the project_folder\debug or \release folder

Title: Re: STM32F103 debugging with Black Magic Probe
Post by Natsuki-chan on 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.

Title: Re: STM32F103 debugging with Black Magic Probe
Post by Visual Micro on 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-Guide.aspx

Title: Re: STM32F103 debugging with Black Magic Probe
Post by Simon Hopkinson on Aug 21st, 2019 at 11:48am
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

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2020. All Rights Reserved.