Forum Replies Created
-
AuthorPosts
-
ArekParticipant
Hi,
I have updated VS to 17.2.2, VisualGDB itself and the aforementioned OpenOCD (STFork). No big difference unfortunatelly.
FYI – the STM32CubeIDE folder tool name is ‘com.st.stm32cube.ide.mcu.externaltools.openocd.win32_2.4.0.202409170845’ vs 20240421 as in yours package.
And this is how the opencd announces itself:
C:\Users\qarkraj>C:\ST\STM32CubeIDE_1.17.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.openocd.win32_2.4.0.202409170845\tools\bin\openocd.exe
Open On-Chip Debugger 0.12.0+dev-00600-g090b431b1 (2024-09-13-19:14) [https://github.com/STMicroelectronics/OpenOCD]One can see see the branch and commit. Apparently hidden on some local server and not propagated to github itself.
When it comes to the binary itself there is a difference in ‘bin’ folder’.
28.11.2024 10:26 <DIR> ..
25.11.2024 23:45 1 112 776 libgcc_s_sjlj-1.dll
25.11.2024 23:45 338 880 libhidapi-0.dll
25.11.2024 23:45 1 169 768 libjaylink-0.dll
25.11.2024 23:45 1 068 712 libusb-1.0.dll
25.11.2024 23:45 540 896 libwinpthread-1.dll
25.11.2024 23:45 5 143 328 openocd.exe
6 File(s) 9 374 360 bytesAfter copying those files, debugging do not start:
C:\Users\qarkraj\AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.arm.openocd.st\bin\openocd.exe -c “gdb_port 54354” -c “telnet_port 54352” –set “CHIPNAME STM32H503CBXx” –set “CONNECT_UNDER_RESET 1” -f interface/stlink-dap.cfg -f target/stm32h5x.cfg -c init -c “reset init” -c “echo VisualGDB_OpenOCD_Ready”
Open On-Chip Debugger 0.12.0+dev-00600-g090b431b1 (2024-09-13-19:14) [https://github.com/STMicroelectronics/OpenOCD]
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
C:\Users\qarkraj\AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.arm.openocd.st\bin\openocd.exe: unknown option — setRemoving “–set “CHIPNAME $$SYS:MCU_ID$$Xx” helps, debugging is started, however still getting SIGINT errors.
Anyway, this option is added every time I opend the VisualGDB configuration window.
ArekParticipantHi,
When starting the debuuging following log is produced:
Open On-Chip Debugger 0.12.0 (2023-07-13) [https://github.com/STMicroelectronics/OpenOCD]
What is problematic? For example, either the VS will not start openocd stub, will not erase the flash “Error erasing flash with vFlashErase packet”, do not set breakpoints and – most frequently “Received a SIGINT: Interrupt”. The only way forward is to use STM32CubeProgrammer to erase the chip, then again first debug session starts OK, and I can checkmy app until the SIGINT is faced. Very frustrating. Please not both STM32CubeProgrammer & STM32CubeIDE (1.17.0) works without any issues.
Devices STM3H503CB, STLinkV2 (clone)
- This reply was modified 1 month, 3 weeks ago by Arek.
ArekParticipantFor troubleshooting purposes, this is what was added to CMakeLists.txt:
set_source_files_properties(src/bsp/peripherals.S PROPERTIES
COMPILE_FLAGS "\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"-x assembler-with-cpp\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" -x\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" assembler-with-cpp\\\\\\\\\\\\\\\" -x\\\\\\\" assembler\\\" -x\" assembler-with-cpp")
ArekParticipantHi,
Environment? CMake/Ninja/arm-eabi/OpenOCD/ST-Link/STM32H5xx
I have several .S files added to the project. However when I look into the properties of one of them, there is no possibility to set “Compile as” to -x assembler-with-cpp. I mean the combo box edit field stays empty.
After a bit of playing, compilation stops:
arm-none-eabi-g++.exe: warning: "\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"-x assembler-with-cpp\\\\\\\\\\\\\\\" -x\\\\\\\" assembler-with-cpp\\\" -x\" assembler" -x: linker input file unused because linking not done
arm-none-eabi-g++.exe: error: "\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"-x assembler-with-cpp\\\\\\\\\\\\\\\" -x\\\\\\\" assembler-with-cpp\\\" -x\" assembler" -x: linker input file not found: Invalid argument
arm-none-eabi-g++.exe: warning: assembler-with-cpp: linker input file unused because linking not done
arm-none-eabi-g++.exe: error: assembler-with-cpp: linker input file not found: No such file or directory
ArekParticipantApparently DEBUG symbol is not visible during assembling (.S file)
ArekParticipantA typo, not 0.13 bt 1.13
https://github.com/STMicroelectronics/OpenOCD/releases/tag/openocd-cubeide-v1.13.0
ArekParticipantI am working with two STM32H503 Nucleo boards.
Once I switch to USB devices (to allow selection of specific nucleo), I am no longer able to select STM32H5xx device.
There is OpenOCD v0.13 which have added support for those H5 chips, how can I upgrade to this version?
-
AuthorPosts