Unable to debug from STM32CubeIDE
Hi,
I am having a problem where I am unable to run my code in debug mode from within STM32CubeIDE v1.15.
I can program the device fine with STM32CubeProgrammer, but when I try to debug I get this output:
log output file: C:\Users\[me]\AppData\Local\Temp\STM32CubeProgrammer_a23280.log
ST-LINK SN : 004C002F3532510F31333430
ST-LINK FW : V3J14M5B5S1
Board : STLINK-V3SET
Voltage : 3.26V
Error: ST-LINK error (DEV_UNKNOWN_MCU_TARGET)
2nd connect tentative with frequency (8MHz)
ST-LINK SN : 004C002F3532510F31333430
ST-LINK FW : V3J14M5B5S1
Board : STLINK-V3SET
Voltage : 3.26V
Error: ST-LINK error (DEV_UNKNOWN_MCU_TARGET)
Encountered Error when opening C:\ST\STM32CubeIDE_1.15.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.200.202311302303\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Shutting down...
For comparison, when I connect to the MCU through the Cube Programmer, I get this output:
11:56:20 : UR connection mode is defined with the HWrst reset mode
11:56:20 : ST-LINK SN : 004C002F3532510F31333430
11:56:20 : ST-LINK FW : V3J14M5B5S1
11:56:20 : Board : STLINK-V3SET
11:56:20 : Voltage : 3.26V
11:56:20 : SWD freq : 8000 KHz
11:56:20 : Connect mode: Normal
11:56:20 : Reset mode : Software reset
11:56:20 : Device ID : 0x430
11:56:20 : Revision ID : Rev A
11:56:20 : Debug in Low Power mode is not supported for this device.
11:56:21 : UPLOADING OPTION BYTES DATA ...
11:56:21 : Bank : 0x00
11:56:21 : Address : 0x4002201c
11:56:21 : Size : 8 Bytes
11:56:21 : Bank : 0x01
11:56:21 : Address : 0x1ffff800
11:56:21 : Size : 16 Bytes
11:56:21 : UPLOADING ...
11:56:21 : Size : 1024 Bytes
11:56:21 : Address : 0x8000000
11:56:21 : Read progress:
11:56:21 : Data read successfully
Could anyone help shed some light on why I am unable to debug?
For reference, I am using the most recent version of all tools, and I have tried several of our units, several different STLinks (v2 and v3) and even multiple laptops, all with the same outcome.
