Skip to main content
Visitor II
September 28, 2023
Question

Does virtual com port work in STM32F446RCT6 controller?

  • September 28, 2023
  • 1 reply
  • 1193 views

I am using an STM32f446RCT6 microcontroller in my hardware, and I need to use a virtual COM port on this device. I have enabled the USB device in the middleware as a virtual COM port, and my system clock frequency is 16MHz. I am using CDC transmit to print a message via VCP, but it is not working. Does the STM32f446RC MCU support VCP?

This topic has been closed for replies.

1 reply

TDK
September 28, 2023

USB CDC works on the STM32F4 series. Your clock needs to be based on a crystal (HSE) and not the internal oscillator. Here is a working code example:

https://github.com/STMicroelectronics/STM32CubeF4/blob/master/Projects/STM32446E_EVAL/Applications/USB_Device/CDC_Standalone/readme.txt

 

"If you feel a post has answered your question, please click ""Accept as Solution""."