2020-07-17 07:40 AM
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.