Skip to main content
Associate
July 28, 2023
Solved

Is there any kind of guide to communicate with USB memory in the STM32G0 series?

Hello.

I would like to use the STM32G0B0RE to write and read about 1KB of text data from an STM microcontroller to a USB memory device.
When I looked for sample code to do this, I could not find any.
So is there some kind of beginner's guide for writing and reading to USB memory using the STM32G0B0?

Best regards.

This topic has been closed for replies.
Amel NASRI
Amel NASRIBest answer
ST Technical Moderator
August 9, 2023

Hi @beginner-jp ,

Yes I assume that the example pointed by Tesla is the MSC_Standalone one like https://github.com/STMicroelectronics/STM32CubeG0/tree/master/Projects/STM32G0C1E-EV/Applications/USB_Host/MSC_Standalone .

You can also follow the steps described in this MOOC to build your own example.

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.

3 replies

Tesla DeLorean
Guru
July 28, 2023

Look at STM32 MSC USB HOST examples with a file system. Most Flash Sticks will use FAT file system.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Associate
August 7, 2023

 

Thank you for your reply.
Which one is the STM32 MSC USB HOST sample?
MSC_Standalone? or
https://controllerstech.com/stm32-usb-host-msc/  ?

Amel NASRI
Amel NASRIBest answer
ST Technical Moderator
August 9, 2023

Hi @beginner-jp ,

Yes I assume that the example pointed by Tesla is the MSC_Standalone one like https://github.com/STMicroelectronics/STM32CubeG0/tree/master/Projects/STM32G0C1E-EV/Applications/USB_Host/MSC_Standalone .

You can also follow the steps described in this MOOC to build your own example.

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.