2024-12-02 06:00 AM
Hi there.
I have been reading UM2576 - GDB Server Usage and am wondering how I can configure STM32 Cube IDE to start a debug session using the --persistant option, as described in the GDB server start-up options section on page 214:
-e, --persistant
Specifying the option -e starts the server in persistent mode. By default, the persistent mode is disabled,
meaning that the server starts in non-persistent mode.
I can't find way to modify the startup options being used by the debugger, however.
Here is the GUI dialog for startup options that I see in cubeIDE:
There does not appear to be any place to add a manual start-up option to the command line. You can however see what options are being used by clicking on the Show Command Line button. In my case, this shows:
C:\ST\STM32CubeIDE_1.10.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_2.1.400.202404281720\tools\bin\ST-LINK_gdbserver.exe -p 61234 -l 1 -d -s -cp C:\ST\STM32CubeIDE_1.10.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.400.202404281720\tools\bin -m 0 -g --frequency 24000
Does anyone know how to launch the GDB server with the --persistent mode?