VS Arduino | |
>> >> GDB Debug with Nucleo32 Board fails
https://www.visualmicro.com/forums/YaBB.pl?num=1639043931 Message started by MatthiasH on Dec 9th, 2021 at 9:58am |
Title: GDB Debug with Nucleo32 Board fails Post by MatthiasH on 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 https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=Output_062.txt ( 1428 KB | 7
Downloads )
|
Title: Re: GDB Debug with Nucleo32 Board fails Post by Simon@Visual Micro on 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. |
Title: Re: GDB Debug with Nucleo32 Board fails Post by MatthiasH on Dec 9th, 2021 at 3:02pm
Thanks for your answer.
Regards Matthias |
Title: Re: GDB Debug with Nucleo32 Board fails Post by Simon@Visual Micro on 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 [/code] Let us know if this helps, and once working we will look at integrating this in a future release (and for the STM32G4x). |
Title: Re: GDB Debug with Nucleo32 Board fails Post by MatthiasH on 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 https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=VM_Build_Output_for_Debug.txt ( 1523 KB | 1
Download )
|
Title: Re: GDB Debug with Nucleo32 Board fails Post by Simon@Visual Micro on 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.
|
Title: Re: GDB Debug with Nucleo32 Board fails Post by Simon@Visual Micro on 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. |
VS Arduino » Powered by YaBB 2.6.12! YaBB Forum Software © 2000-2024. All Rights Reserved. |