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) STM32 Debug Issue (Read 1510 times)
mmfloom
Newbies
*
Offline


Posts: 9
Joined: Nov 14th, 2023
STM32 Debug Issue
Nov 14th, 2023 at 12:46pm
Print Post  
Hi, I am using the STM32 Nucleo 64 development board, and the MCU is STM32 F303 RE, the problem is that "Debugging mode is not started" I have my connections are correct, and I followed all the setup mentioned on the VS micro-website, please check the attachment
« Last Edit: Nov 14th, 2023 at 12:54pm by mmfloom »  

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


Posts: 2441
Joined: Feb 13th, 2019
Re: STM32 Debug Issue
Reply #1 - Nov 14th, 2023 at 12:51pm
Print Post  
Thanks for the report.

Can you also attach the "Test_V1.ino_DebugOpenOCD.log" file from the Build Folder?
« Last Edit: Nov 14th, 2023 at 12:52pm by Simon@Visual Micro »  
Back to top
IP Logged
 
mmfloom
Newbies
*
Offline


Posts: 9
Joined: Nov 14th, 2023
Re: STM32 Debug Issue
Reply #2 - Nov 14th, 2023 at 1:12pm
Print Post  
Hi "Test_V1.ino_DebugOpenOCD.log" file is not available in that folder, please check the attachment
  

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


Posts: 9
Joined: Nov 14th, 2023
Re: STM32 Debug Issue
Reply #3 - Nov 14th, 2023 at 1:15pm
Print Post  
Please check this report, for your reference
  

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


Posts: 2441
Joined: Feb 13th, 2019
Re: STM32 Debug Issue
Reply #4 - Nov 14th, 2023 at 1:21pm
Print Post  
Thanks for the update.

Can you try running the command in the attached text file and then attaching the complete output from it as a text file for us to review?
« Last Edit: Nov 14th, 2023 at 1:30pm by Simon@Visual Micro »  

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


Posts: 9
Joined: Nov 14th, 2023
Re: STM32 Debug Issue
Reply #5 - Nov 14th, 2023 at 3:51pm
Print Post  
Please check the Attached Text file
  

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


Posts: 9
Joined: Nov 14th, 2023
Re: STM32 Debug Issue
Reply #6 - Nov 14th, 2023 at 3:58pm
Print Post  
Please check the Attachment, I got this output result while I connected (nucleo 64 board) the hardware.
« Last Edit: Nov 14th, 2023 at 4:02pm by mmfloom »  

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


Posts: 2441
Joined: Feb 13th, 2019
Re: STM32 Debug Issue
Reply #7 - Nov 14th, 2023 at 4:12pm
Print Post  
Thanks for the update.

That looks much better as it sets up OpenOCD as needed in that log.

If you repeat that and then run the Debug > Attach to Process in VS it should start the debugging session as required.
« Last Edit: Nov 14th, 2023 at 4:13pm by Simon@Visual Micro »  
Back to top
IP Logged
 
mmfloom
Newbies
*
Offline


Posts: 9
Joined: Nov 14th, 2023
Re: STM32 Debug Issue
Reply #8 - Nov 14th, 2023 at 4:40pm
Print Post  
The debugging session has not started, please check the attachment for the errors
  

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


Posts: 2441
Joined: Feb 13th, 2019
Re: STM32 Debug Issue
Reply #9 - Nov 14th, 2023 at 4:45pm
Print Post  
Sorry for any confusion, you must terminate the command prompt process before trying the debugging again in Visual Studio.

Only one active OpenOCD connection can be made to the Nucleo at any one time, so the command prompts' connection will have been getting in the way.

The command prompt was just a way to validate that the first step in the process VS runs in the background works.
  
Back to top
IP Logged
 
mmfloom
Newbies
*
Offline


Posts: 9
Joined: Nov 14th, 2023
Re: STM32 Debug Issue
Reply #10 - Nov 14th, 2023 at 5:12pm
Print Post  
Okay, still the issue is not solved, please check the attachment for your reference.
  

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


Posts: 2441
Joined: Feb 13th, 2019
Re: STM32 Debug Issue
Reply #11 - Nov 14th, 2023 at 5:43pm
Print Post  
Thanks for the update.

Can you try unplugging the board after you have uploaded the code, and then plugging it back in.

Then in Visual Studio use Debug > Attach to Process, instead of the Debug > Start command as shown in the video.
  
Back to top
IP Logged
 
mmfloom
Newbies
*
Offline


Posts: 9
Joined: Nov 14th, 2023
Re: STM32 Debug Issue
Reply #12 - Nov 15th, 2023 at 12:10am
Print Post  
yes, I tried the same as you mentioned, but no improvement, the same error occurred, please check the attachment.
  

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


Posts: 2441
Joined: Feb 13th, 2019
Re: STM32 Debug Issue
Reply #13 - Nov 15th, 2023 at 9:59am
Print Post  
Thanks for the update.

Can you confirm what is shown in the Project Properties > Configuration Properties > Debugging?

Also please confirm if your project shows "(Arduino)" after the project name in Solution Explorer?
  
Back to top
IP Logged
 
mmfloom
Newbies
*
Offline


Posts: 9
Joined: Nov 14th, 2023
Re: STM32 Debug Issue
Reply #14 - Nov 16th, 2023 at 9:13am
Print Post  
The problem was solved by, disabling and enabling the Visual Micro extension in Visual Studio 2022


Thanks a lot for your support.
« Last Edit: Nov 16th, 2023 at 9:16am by mmfloom »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint