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
Hot Topic (More than 8 Replies) Compile works, but debugging not (Read 2631 times)
Hans-Joachim
Newbies
*
Offline


Posts: 5
Joined: Jan 30th, 2024
Compile works, but debugging not
Jan 30th, 2024 at 5:54pm
Print Post  
Hello!
I just started with the evaluation of the Visual Micro with my Black Pill.
I assume, that all is installed correctly. I am able to change a program, compile ist and download it using the original STLINK V2. But debugging (I added a breakpoint, but the breakpoint was never reached) is not working.
Best regards
Hans-Joachim

  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile works, but debugging not
Reply #1 - Jan 30th, 2024 at 6:01pm
Print Post  
Thanks for the info. Hardware debuggers can be a bit tricky to configure and our black pill expert is on new baby leave so assistance might be delayed. However the solution will be ensuring the settings match whatever black pill states in documentation.

What is in this file Quote:
C:\Users\HJ\AppData\Local\Temp\VMBuilds\Blink\stm32duino_blackpill_f401\Debug/B
link.ino_DebugOpenOCD.log
« Last Edit: Jan 30th, 2024 at 8:38pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Hans-Joachim
Newbies
*
Offline


Posts: 5
Joined: Jan 30th, 2024
Re: Compile works, but debugging not
Reply #2 - Jan 30th, 2024 at 6:57pm
Print Post  
Hi Tim,

thank's for the replay. 
Please give me a hint where to search for this log file. I looked around of my project files as well as in the installation directory, but I did not find a file as you mentioned.

Regards
Hans-Joachim
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile works, but debugging not
Reply #3 - Jan 30th, 2024 at 8:39pm
Print Post  
ah, sorry the forum truncated the path which comes from the output you sent. I have altered my prev msg so that the path shows a bit better. It's one annoying downside of this forum.
  
Back to top
IP Logged
 
Hans-Joachim
Newbies
*
Offline


Posts: 5
Joined: Jan 30th, 2024
Re: Compile works, but debugging not
Reply #4 - Jan 31st, 2024 at 6:23am
Print Post  
Hi Tim,

here the contents of the requested file:
embedded:startup.tcl:26: Error: Can't find board/stm32f4x.cfg
in procedure 'script' 
at file "embedded:startup.tcl", line 26


By the way, one question is also open for me: You mentioned: “However the solution will be ensuring the settings match whatever black pill states in documentation.”
I did not understand this. I assume, that the debugging features are not dependent of the Black Pill module, the debug features are only depend of the capabilities of the debug functions of the STM32 F4xx family. Is this right?
Best regards
Hans-Joachim 
  
Back to top
 
IP Logged
 
Hans-Joachim
Newbies
*
Offline


Posts: 5
Joined: Jan 30th, 2024
Re: Compile works, but debugging not
Reply #5 - Feb 6th, 2024 at 9:01am
Print Post  
Hi Tim,

anything new about this problem?

Regards
Hans-Joachim
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: Compile works, but debugging not
Reply #6 - Feb 6th, 2024 at 10:26am
Print Post  
Can you add a Local Board.txt to your project (vMicro > Add Code > Add Local Board.txt) and put the below entry in:
tools.openocd.debug.build.openocdscript=target/stm32f4x.cfg

Once this is saved please rebuild the project and try debugging again.
  
Back to top
IP Logged
 
Hans-Joachim
Newbies
*
Offline


Posts: 5
Joined: Jan 30th, 2024
Re: Compile works, but debugging not
Reply #7 - Feb 6th, 2024 at 5:24pm
Print Post  
Hello Simon,

this is working now - thank you.
I checked the documentation, but I can't figure out, what so set for example using a ESP32. I have several different versions. Is there a list of available configurations?

Regards
Hans-Joachim 
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: Compile works, but debugging not
Reply #8 - Feb 7th, 2024 at 7:19am
Print Post  
Thanks for confirming the fix for the STM32-F4x board, we will update this thread when it is released for download.

The ESP32 documentation can be found on the below pages (and on our documentation listing), depending on the version of ESP32 module you have, and whether you are using an external probe, or the inbuilt one (if available):

ESP32 External Probe: https://www.visualmicro.com/page/ESP32-Debugging.aspx

ESP32-S2 External Probe: https://www.visualmicro.com/page/ESP32S2S3-Debugging.aspx

ESP32-S3 Built In: https://www.visualmicro.com/page/ESP32S3-USB-Debugging.aspx
ESP32-S3 External Probe: https://www.visualmicro.com/page/ESP32S3-JTAG-Debugging.aspx

ESP32-C3 Built In: https://www.visualmicro.com/page/ESP32C3-USB-Debugging.aspx
ESP32-C3 External Probe: https://www.visualmicro.com/page/ESP32C3-JTAG-Debugging.aspx

If you have any issues with the ESP32 please open a new thread.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: Compile works, but debugging not
Reply #9 - Feb 23rd, 2024 at 4:50pm
Print Post  
The latest release (2024.0223.00) removes the need for the board.txt override for this issue, and can be downloaded from the top of the board below:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint