2023-08-03 01:14 AM - edited 2023-08-03 02:44 AM
Hai ,
At present I am working on STM32F205VET6 series for interfacing USB Flash drive. Here I need to access certain files from the memory. So I am using a connectivity USB OTG FS (ULPI) Dual Role. I searched the reference and library for this protocol to access my flash drive but I couldn't find any. I have few doubts on this.
1. Do I need to create separate modular file for accessing the Memory drive based on the ULPI timing diagram?
2. How can I Read . Write, Delete files from the flash memory. ?
3. Is there any Programming manual or coding examples are available?
Can anyone help me on this.
2023-08-04 05:26 AM - edited 2023-08-04 05:27 AM
https://electronics.stackexchange.com/questions/93670/difference-between-usb-and-ulpi
First you need an USB software stack and implement an MSC (mass storage class) device. Then you need a file system driver. I recommend TinyUSB and FatFS respectively. Such a task is not for beginners...
2023-08-04 05:44 AM
I already done this in my microcontroller,and verified. I used the FatFs file system for my SD card as well as USB with Host only mode, using file system drivers. My question is , whether the mentioned controller will support USB OTG HS -> Dual role ?
When I enable this the corresponding HAL file directory or Low Level directory is not generating.
2024-01-22 07:29 AM
Hello @Abin
You mean USB OTG HS -> Dual role in your first post?
Some recommendations are provided to use OTG_HS PHY through ULPI. Section 3.4 , ULPI is available to primary I/Os via multiplexing.
When I enable this the corresponding HAL file directory or Low Level directory is not generating.
Could you explain more?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.