STM32L4 USB CDC problem
I'm working on a project based on STM32l496rg and trying to send data from USB CDC to terminal. I`ve created a project in STM32CubeIDE (the latest version available), where I`ve set up clocks, enabled USB_FS_Device and USB CDC middleware and all the settings remained default.
After this, I`ve generated code in STM32 Cube IDE, compiled and run with making only one changes into the code which is in Write function in syscalls.c file.

if I try to call CDC_Transmit_FS through printf, then it returns USBD_OK on first few times calling and then after USBD_BUSY on all the next calls. However, I cannot receive anything on terminal.
So, what I`m doing wrong, how to troubleshoot USB CDC connection and why STM32CubeIDE generated code gives such error?
#STM32CubeIDE #[STM32 MCUs] #STM32L4 #USB #cdc