Hi @KMin .1,
Your project is successfully worked for me (using STM32CubeMX 6.7 and STM32Cube_FW_F4_V1.27.1)
Please make sure to follow this article USB device not recognized, with the solution is to either increase the heap size or configure the USB library to use static allocation.
Check if the USB_OTG_FS_DP and USB_OTG_FS_DM wires are swapped.
Check if you have this driver installed properly!
Hope my answer helps you.
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Imen
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks