Closed arilink-tech closed 3 years ago
No, it's not recommended. USB MSC device modifies sectors which makes conflicts with FileX.
No, it's not recommended. USB MSC device modifies sectors which makes conflicts with FileX.
is any plan to imply mtp class device? @xiaocq2001
Please try PIMA class, with UX_PIMA_WITH_MTP_SUPPORT defined.
@xiaocq2001 If it is not operated at the same time, the system starts FileX to operate the SD card at the beginning of the system, and starts USB MSC to update the files on the SD card when needed. FileX only reads the files. Can this avoid conflicts?
No, FileX may cache something that could be updated by USBX. Recommended sequence:
The key is, FileX should stop media access before USBX modifies media, and re-open the media after modification to confirm all changes are read again.
Ok . i will try as you said
@xiaocq2001 I take the liberty to ask, are you Chinese?
Yes.
Can you leave WeChat? Want to learn more from you
hey,sir,can you give me a project about the usbx host msc, recently i am studying how to move it to my project meeting some diffcult. thanks.
Maybe you can check https://github.com/azure-rtos/samples. Or you can try to generate USBX host storage demo from STM32 Cube.
Looks like the issue is resolved.
I have a question. I want to use an SD card or Flash as a storage medium, and then make a USB MSG device so that the PC can read and write the files in it. At the same time, STM32 uses FileX to access the files inside. Is this allowed?