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 GDB Debug with Nucleo32 Board fails (Read 2394 times)
MatthiasH
Junior Member
**
Offline


Posts: 14
Location: Germany
Joined: Sep 16th, 2021
GDB Debug with Nucleo32 Board fails
Dec 9th, 2021 at 9:58am
Print Post  
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
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: GDB Debug with Nucleo32 Board fails
Reply #1 - Dec 9th, 2021 at 10:50am
Print Post  
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
Junior Member
**
Offline


Posts: 14
Location: Germany
Joined: Sep 16th, 2021
Re: GDB Debug with Nucleo32 Board fails
Reply #2 - Dec 9th, 2021 at 3:02pm
Print Post  
Thanks for your answer.

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


Posts: 2174
Joined: Feb 13th, 2019
Re: GDB Debug with Nucleo32 Board fails
Reply #3 - Dec 9th, 2021 at 6:37pm
Print Post  
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
Select All
# 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
Junior Member
**
Offline


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

Regards Matthias
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: GDB Debug with Nucleo32 Board fails
Reply #5 - Dec 13th, 2021 at 10:58am
Print Post  
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: 2174
Joined: Feb 13th, 2019
Re: GDB Debug with Nucleo32 Board fails
Reply #6 - Dec 15th, 2021 at 1:41pm
Print Post  
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 TopicPrint