Virtual COM port in STLink doesn't work while debugger attached
Hi.
NUCLEO-F303RE has STLink onboard with integrated Virtual COM port, which seems very nice solution. Sadly Virtual COM (UART2) doesn't seem to work properly while debugging session is active. I made simple app, which just prints simple string to UART2 and entering endless loop. It works fine when flashed to MCU and reset pressed. I can see my "welcome prompt" string in terminal (connected to /dev/ttyACM0). But if I start debug session with openOCD ("serial wire" debug option) it outputs some garbage to terminal instead of "welcome prompt". Debugging itself works fine. After stopping openocd session and resetting, Virtual COM port works fine again.
Tried to minimize baud rate to 9600bps - it doesn't helps.
So, is this a known limitation of STLink with integrated Virtual COM port? Am I doing something wong here? Is there any workaround?
Of course I can use separate USB-UART converter and pretty sure it's going to work, but I'd prefer to minimize number of devices and wires if possible.
