STM32F7 USB Device Not Recognized as Virtual COM Port (VCP)
Hello everyone,
I’m working on an STM32F7 project where I’m trying to establish USB communication between my STM32F746 Discovery board and a PC. I am really new at this really first time. I have configured the board for USB_OTG_FS in STM32CubeMX, and I’m trying to use it as a Virtual COM Port (VCP). However, when I connect the board to the PC using the USB_FS port, it’s not being recognized as a COM port or any device at all in the Device Manager.
The only time I see a COM port is when I connect the ST-Link USB, which shows up as a Virtual COM Port. I have already:
- Enabled the USB_DEVICE in STM32CubeMX and selected the CDC class.
- Generated the code and set up the USB_DEVICE middleware.
- Tried with different USB cables to rule out a cable issue.
- Checked the board configuration, and the USB pins are correctly assigned.
Additionally, I configured the board to flash an LED to confirm it’s functioning, which works fine. My goal is to transfer files between the app I am currently developing and the STM32 board through USB.
I would really appreciate any suggestions or guidance on:
- Getting the board to show up as a VCP in the Device Manager.
- Troubleshooting USB enumeration issues.
Thanks in advance!
