Skip to main content
AUrez.1
Associate
Apr 28, 2020 7:44 PM UTC
Solved

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.

..

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
Apr 28, 2020 8:37 PM UTC

5 replies

berendi
Principal
Apr 28, 2020 8:13 PM UTC

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
AUrez.1Author
Associate
Apr 28, 2020 8:23 PM UTC

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?

berendi
Principal
Apr 28, 2020 8:31 PM UTC

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.

AUrez.1
AUrez.1Author
Associate
Apr 28, 2020 8:22 PM UTC

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.

waclawek.jan
waclawek.janBest answer
Super User
Apr 28, 2020 8:37 PM UTC