Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 

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 and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
GDB Debug with Nucleo32 Board fails (Read 1171 times)
MatthiasH
Newbies
*
Offline



Posts: 8
Germany
GDB Debug with Nucleo32 Board fails
Dec 9th, 2021 at 9:58am
 
Hello,
the OpenOCD_init fails with errorcode 0x1ba01477.
My system:
Windows 10 with Visual Studio 2019
Board: Nucleo32 from STM
Prozessor: STM32 G031K8

My settings in VM:
IDE: Arduino 1.6
Board: Nucleo-32
Option1: Board part number: Nucleo G031k8

The Micro Build output contains the wrong target information for this board
-f "interface/stlink.cfg" -f "target/stm32f1x.cfg"

Could you send me a valid cfg-file for this board / prozessor?

Thanks Matthias
Back to top
 

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



Posts: 1459
Re: GDB Debug with Nucleo32 Board fails
Reply #1 - Dec 9th, 2021 at 10:50am
 
Thanks for the report.

The config for this board requires a later version of OpenOCD to be built (added September 2021).

We will update when this is available to try.
Back to top
 
 
IP Logged
 
MatthiasH
Newbies
*
Offline



Posts: 8
Germany
Re: GDB Debug with Nucleo32 Board fails
Reply #2 - Dec 9th, 2021 at 3:02pm
 
Thanks for your answer.

Regards Matthias
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1459
Re: GDB Debug with Nucleo32 Board fails
Reply #3 - Dec 9th, 2021 at 6:37pm
 
If you the below entries to the board.txt in the project, this should allow the latest OpenOCD build to be tried for this board (for upload and debugging)

Code:
# Use latest build of OpenOCD
tools.stlinkv2.debug.server.path={runtime.tools.openocd-0.11.0.20211209.path}
tools.stlinkv2.upload.path={runtime.tools.openocd-0.11.0.20211209.path}

# Override STLinkv2 External Nucleo-32:Nucleo G031K8 from Local board.txt
tools.openocd.debug.build.openocdscript=target/stm32g0x.cfg
tools.openocd.upload.openocdscript=target/stm32g0x.cfg
 



Let us know if this helps, and once working we will look at integrating this in a future release (and for the STM32G4x).
Back to top
 
 
IP Logged
 
MatthiasH
Newbies
*
Offline



Posts: 8
Germany
Re: GDB Debug with Nucleo32 Board fails
Reply #4 - Dec 10th, 2021 at 4:21pm
 
Simon, thanks for the code.
It works!
Attached you will find the output from Micro Build and my Parameters for Debug.

Regards Matthias
Back to top
 

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



Posts: 1459
Re: GDB Debug with Nucleo32 Board fails
Reply #5 - Dec 13th, 2021 at 10:58am
 
Thanks for confirming, we will update when this has been integrated into the software, so the local board.txt entries can be removed.
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 1459
Re: GDB Debug with Nucleo32 Board fails
Reply #6 - Dec 15th, 2021 at 1:41pm
 
This has been integrated into the latest release (2021.1108.12) which is available from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

The local board.txt entries can be commented out (with #) or the file removed once this is installed.
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print