2023-08-08 09:38 AM
Hello,
I have a STM32G4 evaluation board. My goal is to read and write to a USB thumb drive (pen drive/MSD device) using an STM32G4 microcontroller (bare-metal).
When I look at the possible USB examples in the CubeIDE, I can't find any examples for MSD devices that are not obsolete and supported in CubeIDE.
Am I searching for the incorrect thing within CubeIDE?
Would you be able to point me to example(s) for this?
Thanks,
Emma
Solved! Go to Solution.
2023-08-08 11:31 PM - edited 2023-08-08 11:34 PM
Why would those board be obsolete?
But, AFAIK, the'G4 family uses a device-only USB, so you can't implement Host on it.
Choose a different family or a different solution.
JW
2023-08-08 01:39 PM
There are videos about this in the USB Host section. See the description of this video:
https://www.youtube.com/watch?v=uIOb5sSFyUY
To be able to do baremetal code, you can open the HAL functions and analyze the accessed registers.
2023-08-08 11:31 PM - edited 2023-08-08 11:34 PM
Why would those board be obsolete?
But, AFAIK, the'G4 family uses a device-only USB, so you can't implement Host on it.
Choose a different family or a different solution.
JW