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 Problems'ssss (Read 747 times)
arduino1
Junior Member
**
Offline


Posts: 75
Joined: Feb 12th, 2015
Debugging Problems'ssss
Oct 14th, 2020 at 1:38pm
Print Post  
By chance I got the Debugging working with Jlink+OCD(Vmicro) on the Target Generic STM32F1 series, Bluepill 103C (see image) for the Blink example. It works despite an exception, see second image.

How to fix that?


« Last Edit: Oct 14th, 2020 at 1:53pm by Tim@Visual Micro »  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging Problems'ssss
Reply #1 - Oct 14th, 2020 at 1:55pm
Print Post  
There shosuldn't be any "chance" if you use the docs Smiley

That suggests the optimization setting is preventing you from delving deep into the core.
  
Back to top
IP Logged
 
arduino1
Junior Member
**
Offline


Posts: 75
Joined: Feb 12th, 2015
Re: Debugging Problems'ssss
Reply #2 - Oct 14th, 2020 at 2:25pm
Print Post  
Quote:
docs

Which ones? Please quote what has to be read.
Had watched hundreds of posts.
Quote:
optimization setting is preventing you from delving deep into the core

I tried all of the 16 combinations of optimization methods.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2728
Joined: Feb 13th, 2019
Re: Debugging Problems'ssss
Reply #3 - Oct 14th, 2020 at 4:55pm
Print Post  
The STM32 Core has an additional Optimization set of settings (on board menu), which to debug reliably needs to be set to "Debug -Og" (shown as "Smallest -Os(default)" in the above screenshot).

More Information about what these Optimization flags mean and behaviour, is available on the GDB Site:
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging Problems'ssss
Reply #4 - Oct 26th, 2020 at 6:51pm
Print Post  
This Topic was moved here from Hardware Debugging (GDB, GDB WiFi, GDB Stub) [move by] Visual Micro.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint