cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F072RBT6 USB Host Device

Batuhanoguz
Visitor

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!

1 ACCEPTED SOLUTION

Accepted Solutions

@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:

https://www.st.com/resource/en/application_note/an3364-migration-and-compatibility-guidelines-for-stm32-microcontroller-applications-stmicroelectronics.pdf 

View solution in original post

3 REPLIES 3

@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:

AndrewNeil_0-1736776599733.png

 


@Batuhanoguz wrote:

can I do that with my mcu?


No.

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?


@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:

https://www.st.com/resource/en/application_note/an3364-migration-and-compatibility-guidelines-for-stm32-microcontroller-applications-stmicroelectronics.pdf