eclipse-threadx / usbx

Eclipse ThreadX - USBX is a high-performance USB host, device, and on-the-go (OTG) embedded stack, that is fully integrated with Eclipse ThreadX RTOS
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/usbx/index.md
MIT License
154 stars 89 forks source link

Does USBX MSC support SPI FLASH? #34

Closed arilink-tech closed 2 years ago

arilink-tech commented 2 years ago

I have tried to use the SD card as a storage device on the USBX MSC, and then I wrote a program to read the external Nor FLASH through SPI, but when I used the USB MSC with the Nor Flash driver, the problem appeared. On windows Storage devices did not appear as expected. What are the possible reasons for the above phenomenon?

xiaocq2001 commented 2 years ago

Not sure "did not appear", do you mean no pop up on new volume? MSC works with callbacks to access media, no matter it's SD card or SPI flash. If PC see the USB connection but failed to mount disk, maybe there is issue in application callback implement of reading/writing SPI flash.

arilink-tech commented 2 years ago

Yes, there is no pop-up window on the new volume. Let me check the callback problem of SPI flash. No relevant examples can be found on the Internet.

yuxin-azrtos commented 2 years ago

@arilink any updates?

yuxin-azrtos commented 2 years ago

Closing.