cancel
Showing results for 
Search instead for 
Did you mean: 

SW4STM32 fails to debug with ST-LINK/V3-MODS while it is controlled via the C-Api

HRadt.1
Senior

I have a custom test/debug fixture for a custom board. It is based on the ST-LINK/V3-MODS board to programm the target MCU (STM32WB55).

The other interfaces (GPIO, I2C) are used to control functions like power supply to the target etc.

When I try to debug a project from SW4STM32 it fails with the message: "Unplugged target or STLink already in use or STLink USB driver not installed"

In the details it states: "Error: open failed (no matching adapter found)

This works without any problem with Stm32CubeProgrammer and Stm32CubeIDE. They are able to connect, program and debug the target while the STLink/V3-MODS is controlled by another program (via it's C-API). This is neccessary to supply the target with power in my case.

I made sure to initialize the C-API Interface with the "shared" option enabled.

Does SW4STM32 not support this use case? Sadly I have to use it since the SBSFU package does not work in Stm32CubeIDE.

0 REPLIES 0