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 Debugging not working (Read 424 times)
Reinald
Newbies
*
Offline


Posts: 4
Location: NL
Joined: Apr 12th, 2021
Debugging not working
Apr 29th, 2021 at 7:47pm
Print Post  
Hi, 

I would try to debug some code with a bluepill (STM32F103C), but i can't get it to work.

After compiling the sketch i got a messagebox with "Unable to start debugging. GDB exited unexpectedly with exit code 1 (0x1)

the following things i tried

-tried debugging with "PlatformIO" here the debugging works perfectly, so the driver/wiring  can not be an issue.
-updating the arm GDB driver in the arduino\tools directory
-tried another ST-LINK v2 debugger.
-updated the USB driver (by using the tutorial on the website)
-followed the troubleshooter on the web
-also tried it on another computer. but with exactly the same result.


in the openOCD log there are 2 lines confusing me:

Info : Listening on port 3333 for gdb connections
Error: couldn't bind tcl to socket on port 6666: No error

are openOCD and gdb listening on different ports?
if i look in the openOCD cfg file, the gdp port is setted to 3333. 

i hope someone can help me.
« Last Edit: Apr 29th, 2021 at 7:49pm by Reinald »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Reinald
Newbies
*
Offline


Posts: 4
Location: NL
Joined: Apr 12th, 2021
Re: Debugging not working
Reply #1 - Apr 29th, 2021 at 8:50pm
Print Post  
This Topic was moved here from Hardware Debugging (GDB, GDB WiFi, GDB Stub) [move by] Reinald.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint