STM32CubeIDE hangs when printf to SWV ITM Data Console
Evaluation board: STM32L476G-EVAL
A simple program created using FreeRTOS and Configuration: SYS > Debug: Trace Async Sw.
FreeRTOS running a single task. The task prints out a line every 1 ms.
The single task has the following loop:
for (int32_t i = 0;; ++i)
{
TaskDelay(1);
printf("%ld DEBUG printf hang: SWV ITM Data Console buffer overflow.\n", i);
}
Start Debug, the SWV console prints out text and works for a while, then the IDE hangs. See screenshot below:

IDE hangs and not responding. Force close IDE and restart it. Try to try debug again and get the following error:

Disconnect and reconnect the evaluation board, run debug again, get the following error:
STMicroelectronics ST-LINK GDB server. Version 7.4.0
Copyright (c) 2023, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
Failed to bind to port 61235, error code -1: No error
Failure starting SWV server on TCP port: 61235
Failed to bind to port 61234, error code -1: No error
Failure starting GDB server: TCP port 61234 not available.
Shutting down...
Exit.
The only way to fix the problem is to restart my PC.
IDE version:

