2025-01-13 05:53 AM
Hi,
I'm using stm32f072rbt6 mcu for my project.
And I want to write data to my usb flash drive as a txt file.
I have researched some tutorials but to do this usually used mcu's such as stm32f767zit6 and these mcu's have USB_OTG_FS feature which my mcu doesn't have.
Is there any example or tutorial to do this with my stm32f072rbt6 mcu? or can I do that with my mcu?
Thank you!
Solved! Go to Solution.
2025-01-13 06:34 AM
@Batuhanoguz wrote:I thought it's possible with any mcu.
No, it isn't - only MCUs which embed a Host (or OTG).
So you'll either have to change MCU, or add external Host hardware.
(some people have managed to bit-bang USB - but that's a non-trivial exercise)
@Batuhanoguz wrote:I have done too many things on my project and starting from beginning too hard at this moment.
There's a lot of commonality between STM32 families, so it wouldn't be a complete start from scratch - especially if your application is well-structured...
See Application Note AN3364, Migration and compatibility guidelines for STM32 microcontroller applications:
2025-01-13 05:58 AM
@Batuhanoguz wrote:I want to write data to my usb flash drive !
You wound need a USB Host for that - the stm32f072rbt6 has only a USB Device:
@Batuhanoguz wrote:can I do that with my mcu?
No.
2025-01-13 06:27 AM
I have done too many things on my project and starting from beginning too hard at this moment.
I thought it's possible with any mcu.
I hope there are additional ways to do that.
Aren't there?
2025-01-13 06:34 AM
@Batuhanoguz wrote:I thought it's possible with any mcu.
No, it isn't - only MCUs which embed a Host (or OTG).
So you'll either have to change MCU, or add external Host hardware.
(some people have managed to bit-bang USB - but that's a non-trivial exercise)
@Batuhanoguz wrote:I have done too many things on my project and starting from beginning too hard at this moment.
There's a lot of commonality between STM32 families, so it wouldn't be a complete start from scratch - especially if your application is well-structured...
See Application Note AN3364, Migration and compatibility guidelines for STM32 microcontroller applications: