Hi
I want read and write file in usb flash memory by esp32-S2 with micropython.
I want to install a USB on ESP32 using OTG and read and write the file from it.
Has anyone done this?
Please help me in this case.
How to work OTG in ES32-S2 with MicroPython?
How to work OTG in ES32-S2 with MicroPython?
Last edited by AmirJ on Mon May 09, 2022 10:41 am, edited 1 time in total.
Re: How to work OTG in ES32-S2 with MicroPython?
Could not find any micropython library for doing this task. Let's see what the other users have to say.
Re: How to work OTG in ES32-S2 with MicroPython?
What exactly means the term "USB flash memory" for you ?
The flash coming with your ESP gets mounted by micropython at startup - you use the normal python file ops there.
A few hours of debugging might save you from minutes of reading the documentation!
My repositories: https://github.com/karfas

My repositories: https://github.com/karfas
Re: How to work OTG in ES32-S2 with MicroPython?
HI
I mean usb mass storage device.
I mean usb mass storage device.
Re: How to work OTG in ES32-S2 with MicroPython?
This does not explain what you mean.
Do you want to mount your ESP32 using OTG-USB as mass storage to some other device ?
Do you want to mount an USB stick using OTG to the ESP32 ?
How is this related to your question "How to work OTG ?"
Do you want to mount your ESP32 using OTG-USB as mass storage to some other device ?
Do you want to mount an USB stick using OTG to the ESP32 ?
How is this related to your question "How to work OTG ?"
A few hours of debugging might save you from minutes of reading the documentation!
My repositories: https://github.com/karfas

My repositories: https://github.com/karfas
Re: How to work OTG in ES32-S2 with MicroPython?
HI
Thank you for your attention and patience
yes, I want to install a USB on ESP32 using OTG and read and write the file from it.
Thank you for your attention and patience
yes, I want to install a USB on ESP32 using OTG and read and write the file from it.