2024-10-06 01:18 PM - last edited on 2024-10-07 02:51 AM by Andrew Neil
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:
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:
Thanks in advance!
2024-10-06 02:54 PM
Start from some ready example in the ST Cube package. Do not trust CubeMX to generate a working project automatically.
2024-10-06 04:24 PM
Thanks, but so far, I could not find any ready example using USB_DEVICE as a VCP, which is the one I need since the board is going to be communicating and receiving files from the app. Do you know of any examples?
2024-10-07 02:49 AM
Hi @Rlakos
You can start with this example for F756 eval board
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-10-18 10:40 AM
Hi, thank you for sending me the examples. They are pretty good, but I still get the same issue when I run the example. The St-Link is the only cable being recognized when I plug it into the computer, but the USB_FS when I plug the cable is not shown in the device manager either as a COM port or any other port. Do you know of any other issues that I can fix it. The idea is to be able to download firmware onto the board from an external application exe that I am developing into the board using the USB CDC protocol. Thanks for the help.
2024-10-21 06:23 AM
Hi @Rlakos
Check your HW setup, there should be something missing. The example provided should be working. Check USB cable you are using supports data transfer. Reed carefully section 4.9 USB OTG FS
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-10-21 06:59 AM - edited 2024-10-21 07:01 AM
What's the primary clock source?
If internal bootloader is run (using BOOT0 pin), does the board connect as DFU?
JW