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) Newest update breaks projects breakpoints? (Read 1683 times)
Bambo
Member
***
Offline


Posts: 146
Location: Liverpool, UK
Joined: Jan 13th, 2020
Newest update breaks projects breakpoints?
Mar 10th, 2020 at 3:00pm
Print Post  
Hi, I was working on my project and then i started getting this error for no reason?

I only have 1 hardware breakpoint set?
  

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


Posts: 2145
Joined: Feb 13th, 2019
Re: Newest update breaks projects breakpoints?
Reply #1 - Mar 10th, 2020 at 3:05pm
Print Post  
Could you attach your Build + Debug output as shown at the top so we can understand your environment further?

The Debug Troubleshooter may also help in identifying the issue, or in collecting further information so we can assist more easily.

edit: also show screen image of your breakpoint list. The list can be viewed via the Debug menu at top of screen
« Last Edit: Mar 10th, 2020 at 3:07pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Bambo
Member
***
Offline


Posts: 146
Location: Liverpool, UK
Joined: Jan 13th, 2020
Re: Newest update breaks projects breakpoints?
Reply #2 - Mar 10th, 2020 at 3:11pm
Print Post  
I have emailed the yellow box address with the build log.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Newest update breaks projects breakpoints?
Reply #3 - Mar 10th, 2020 at 3:41pm
Print Post  
Thanks, could you enable the "vMicro > Upload > Verbose" option, to expose further logging, then try running the "Debug > Attach" command again? (run the session until you hit the issue)

Could you send the text from the "Output > Debug" Window, and the screenshot of the breakpoint list from VS?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Newest update breaks projects breakpoints?
Reply #4 - Mar 10th, 2020 at 3:48pm
Print Post  
Thanks for the update, and glad its all working as expected again.
  
Back to top
 
IP Logged
 
Bambo
Member
***
Offline


Posts: 146
Location: Liverpool, UK
Joined: Jan 13th, 2020
Re: Newest update breaks projects breakpoints?
Reply #5 - Mar 10th, 2020 at 3:48pm
Print Post  
Hold on i made a mistake, let me see if it will bug again
  
Back to top
 
IP Logged
 
Bambo
Member
***
Offline


Posts: 146
Location: Liverpool, UK
Joined: Jan 13th, 2020
Re: Newest update breaks projects breakpoints?
Reply #6 - Mar 10th, 2020 at 3:56pm
Print Post  
Yeah, PC restart fixed it Smiley
  
Back to top
 
IP Logged
 
Bambo
Member
***
Offline


Posts: 146
Location: Liverpool, UK
Joined: Jan 13th, 2020
Re: Newest update breaks projects breakpoints?
Reply #7 - Mar 10th, 2020 at 4:47pm
Print Post  
Ok i've managed to reproduce the error again. Upload verbose options is set to true. I have emailed you the build output and also the openocd logs. There are some weird unknown characters in the openocd log.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Newest update breaks projects breakpoints?
Reply #8 - Mar 11th, 2020 at 12:14pm
Print Post  
Thanks for the logs, it seems to fail early on, and there are changes in the ST configs in the latest OpenOCD included in the latest vMicro release.

Just to be sure we are looking down the right path for the issue:-
a) Does it happen in VS2019 (non-preview)?
b) Is this consistent, or is it a more intermittent issue? (e.g. only after a debug session or flash via programmer)

  
Back to top
 
IP Logged
 
Bambo
Member
***
Offline


Posts: 146
Location: Liverpool, UK
Joined: Jan 13th, 2020
Re: Newest update breaks projects breakpoints?
Reply #9 - Mar 11th, 2020 at 1:09pm
Print Post  
It seems to be intermittened, it happened after i tried to build + debug.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Newest update breaks projects breakpoints?
Reply #10 - Mar 11th, 2020 at 2:20pm
Print Post  
Does it happen every time you Debug, or just sometimes?

Using Local Board.txt
Add a Local Board.txt to the project, add both of the below entries, and then try attaching the Debugger again:
Code
Select All
# Debug: Refactored Board Command for new L4 Config + STLinkv2 (External)
tools.stlinkv2.server.targetCmd=
tools.stlinkv2.server.boardCmd=-f "board/st_nucleo_l4.cfg" 



Using Launch.json
To modify the commands further you will need to add a Launch JSON (Add > Custom GDB Debugger), and replace the JSON output into that file with the JSON output from the Output > Micro Build window.

Then change the Debugger Selected to Manual / Custom to use this JSON debugger launch file.

If you edit the command in the DebugServerArgs, and remove the portion shown below, and save, then try attaching the debugger again:
Code
Select All
-f nk.cfg\" 


« Last Edit: Mar 11th, 2020 at 2:51pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint