2024-08-08 06:12 PM - edited 2024-08-08 07:00 PM
I am developing software using STM32CubeIDE on Windows.
I configured OpenOCD as the DebugProbe in the DebugConfiguration and ran the Debug process
Debug Configuration > STM32 C/C++ Application > BuildName > Debugger
DebugProbe -> ST-LINK (OpenOCD)
Serial Wire Viewer -> Enable: On
When capturing with SerialWireViewer during debug execution, the program ends unexpectedly, causing the results of the Google tests running within the firmware to be interrupted.
attached file: ConsoleErrorMessage.txt
image_error
The Debug process and capture works correctly when the DebugProbe is set to ST-LINK GDB server.
[ST-LINK GDB server Command Line]
<InstallFolder>\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_2.0.500.202301161003\tools\bin\ST-LINK_gdbserver.exe -p 61234 -l 1 -d -z 61235 -s -cp <InstallFolder>\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.0.600.202301161003\tools\bin -m 0 -k
[openOCD Command Line]
<InstallFolder>\plugins\com.st.stm32cube.ide.mcu.externaltools.openocd.win32_2.2.300.202301161003\tools\bin\openocd.exe "-f" "camera.cfg" "-s" "<FirmwareFolder>" "-s" "<InstallFolder>/plugins/com.st.stm32cube.ide.mcu.debug.openocd_2.0.600.202303311036/resources/openocd/st_scripts" "-s" "C:/ST/STM32CubeIDE_1.12.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mpu.debug.openocd_2.0.500.202301161420/resources/openocd/st_scripts" "-c" "gdb_report_data_abort enable" "-c" "gdb_port 3333" "-c" "tcl_port 6666" "-c" "telnet_port 4444"
I am using the default cfg file without any changes.
SWV ITM Data Console
If you have any idea to do that, that would be very nice to me. Thanks in advance.
My environmental information is as follows:
CubeIDE(Windows11) - ST-Link/v2 - device
STM32CubeIDE:Version: 1.12.1 Build: 16088_20230420_1057 (UTC)
ST-LINK FW: V2J41S7
Device: STM32H7Ax/7Bx