2024-08-04 07:41 PM
Hi there,
I am working on STM32F429BIT6, and I have a SD-Card connected.
Now, I want to copy some data between the PC and SD-Card by USB directly.
Is there any example or document?
Anything is welcome, thank you!
Solved! Go to Solution.
2024-08-19 01:46 AM - edited 2024-08-20 02:25 AM
For MDK IDE, the USB related code must compiled by "MDK compiler V5", the binary by "MDK compiler V6" will NOT work!
Demo reference: https://github.com/ShadowThree/STM32V6_extFlash_SDcard_FatFS_Udisk_Demo
2024-08-05 12:22 AM
There should be a MSC USB Device example amongst those ib CubeF4, perhaps as Applications for EVAL or DISCO series boards that map operations to SDIO port.
2024-08-05 07:20 PM
@Tesla DeLorean Thank you for your information!
I find a example similar with my requirement at STM32Cube_FW_F4_V1.28.0\Projects\STM32F412G-Discovery\Applications\USB_Device\MSC_Standalone, I will read it carefully.
2024-08-06 11:20 PM
Hi, @Tesla DeLorean
I have read the example and this tutorial carefully.
But my program always can't work, the code is stopped at USBD_GetEpDesc() because pdesc->bDescriptorType always NOT equals to USB_DESC_TYPE_ENDPOINT
I am not skillful at USB, but I can sure the hardware is work well, as I have a project can do that thins.
If need, refer my project at attachment.
Thanks for your help!
2024-08-19 01:46 AM - edited 2024-08-20 02:25 AM
For MDK IDE, the USB related code must compiled by "MDK compiler V5", the binary by "MDK compiler V6" will NOT work!
Demo reference: https://github.com/ShadowThree/STM32V6_extFlash_SDcard_FatFS_Udisk_Demo