Skip to main content
PPopo.1
Senior
Feb 9, 2024 9:40 AM UTC
Question

STM32 USB C to UART communication

Hello, I am making a development board where I want to use STM32 and USB C connector for power supply to the STM and also for UART communication with the PC. What are the best solutions for this? I looked into using FTDI chip but they are quite expensive. Also, not really sure how to connect the USB C connector for this to work. I am using STM32G0B0CE which has a USB NOE pin which im also not sure how it works or where to connect it.

 

 

Any help or referrals will be welcome

 

 

This topic has been closed for replies.

2 replies

gbm
Super User
Feb 9, 2024 9:52 AM UTC

Many STM32 MCUs, including STM32G0Bx, have USB interface onboard, so just use it. I suggest CDC (=VCOM, =UART emulation) as a starting point.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
Pavel A.
Feb 9, 2024 8:44 PM UTC

If the UART communication with the PC is only for development, not part of the planned product function - use an external USB to serial chip. There are many of them, much cheaper than FTDI. OTOH the FTDI converter has features not available in cheaper converter.