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


Posts: 25
Joined: Jan 18th, 2017
Unable to pause or stop GDB with BlackMagicProbe on STM32F103RET6
Feb 11th, 2020 at 11:19am
Print Post  
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@Visual Micro
Administrator
*****
Offline


Posts: 2166
Joined: Feb 13th, 2019
Re: Unable to pause or stop GDB with BlackMagicProbe on STM32F103RET6
Reply #1 - Feb 11th, 2020 at 1:36pm
Print Post  
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: 25
Joined: Jan 18th, 2017
Re: Unable to pause or stop GDB with BlackMagicProbe on STM32F103RET6
Reply #2 - Feb 11th, 2020 at 1:59pm
Print Post  
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
  

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


Posts: 2166
Joined: Feb 13th, 2019
Re: Unable to pause or stop GDB with BlackMagicProbe on STM32F103RET6
Reply #3 - Mar 11th, 2020 at 4:21pm
Print Post  
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
Select All
# 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 TopicPrint