Resolved! STM32L4xx HAL Library USB bug. Function USB_WritePMA does not work properly when compiled with "-O3" option.
I used latest CubeMX version and found another one bug in stm32l4xx_ll_usb.c generated by it. If you will compile code using "-O3" optimization level, function USB_WritePMA will not work properly. /** * @brief Copy a buffer from user memory area to ...