cancel
Showing results for 
Search instead for 
Did you mean: 

I'm going to use one of stm32g0 MCUs in my project but can't find any of them with USB support. What is the correct way to connect g0 MCU to a PC? I mean not for power supply but for data transfer.

AUrez.1
Associate II
 
1 ACCEPTED SOLUTION

Accepted Solutions
5 REPLIES 5
berendi
Principal

Simplest way is a USB serial adapter cable. Mind the voltage.

Most flexible is a Raspberry Pi, it can

  • connect to UART, SPI or I2C ports on the MCU
  • program and debug directly through SWD, even remotely from the PC
  • connect to the PC through WLAN, Bluetooth, USB (Zero and Zero W only), Ethernet (Model B and up)
AUrez.1
Associate II

Does anybody know why ST supported USB in some F0 MCUs but canceled to do it with G0 series MCUs? I was sure that G0 is the next generation of F0 and much better in all aspects.

Thanks fo your answer.

But what do you mean when you write that I can use USB with Zero and Zero W only. Can you please give some details?

The Zero models have a USB C-type port which can act both as a USB host or a USB device (gadget in Linux literature) just like a smartphone.

The normal size raspberries have USB A ports only, can't talk to a PC directly, because it too has USB A type ports.