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
Unable to pause or stop GDB with BlackMagicProbe on STM32F103RET6 (Read 146 times)
Natsuki-chan
Junior Member
**
Offline



Posts: 20
Unable to pause or stop GDB with BlackMagicProbe on STM32F103RET6
Feb 11th, 2020 at 11:19am
 
After a long time of stopping gdb via taskmanager I am creating this issue.

The thing is that when I want to pause or stop the debugger Visual Studio just freezes.
I have to go to Task Manager and end the gdb task. This is getting quite anoying after a long time.

Debugging itself works like a charm and does not feel different from debugging Java or C#.
The pausing is used to add new breakpoints during debugging that should work(It works in GDB via the process itself)
Back to top
 
 
IP Logged
 
Simon Hopkinson
Administrator
*****
Offline



Posts: 179
Re: Unable to pause or stop GDB with BlackMagicProbe on STM32F103RET6
Reply #1 - Feb 11th, 2020 at 1:36pm
 
Thanks for the report and we will look into this further.

Would it be possible to attach the logs from a build (with verbose + properties on as shown at top of page) just so we have all of the information.

You can just add the breakpoints while it is running as far as I know without the pause action, however it still shouldn't hang.
Back to top
 
 
IP Logged
 
Natsuki-chan
Junior Member
**
Offline



Posts: 20
Re: Unable to pause or stop GDB with BlackMagicProbe on STM32F103RET6
Reply #2 - Feb 11th, 2020 at 1:59pm
 
Yes it is possible to add breakpoints but they are disabled. You either need to pause or restart the build to enable them.

Included is the log file as wanted and the selected options for debugging+board options
Back to top
 
 
IP Logged
 
Simon Hopkinson
Administrator
*****
Offline



Posts: 179
Re: Unable to pause or stop GDB with BlackMagicProbe on STM32F103RET6
Reply #3 - Mar 11th, 2020 at 4:21pm
 
Thanks for the information, and I am still unsure exactly where the issue lies at present, but a few potential options:-

Potential Fix #1
1) If you add a Local Board.txt to the project (Right Click Project > Add > Local Board.txt), and add the below entry to it, then save and try attaching the debugger again and see if the issue is the same?
Code:
# Amend Interpretation Mode of GDB for BMP
tools.bmp_upload.debug.args=--interpreter=mi -nh -b 115200 -ex "target extended-remote \\.\{serial.port}" -ex "monitor swdp_scan" -ex "attach 1" 



Potential Fix #2 (for exiting initially)
(If the above doesn't help)
a) Open a new VS Command Window (View > Other Windows > Command Window)
b) Enter the command Debug.MIDebugLog /On /OutputWindow and press Enter
c) Start the debugger as normal again, and ensure the VS command window is still visible
d) Enter the command monitor exit and press Enter
e) Press Stop as normal on the Debug Toolbar - hopefully the GDB instance will vanish this time?
f) There will be a VERY detailed log available in the Output > Debug Window which may reveal more information about the issues

Let us know if you have any issue with the above elements, and if it improves the situation at all.


Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print