2025-01-20 01:43 PM - edited 2025-01-27 04:38 PM
Hi, we are developing a custom board with the STM32F405 as main micro-controller.Actually We can communicate with some flash drives and create directories and files , but with others we simply get "FR_DISK_ERR".
Some of them are detected by the Host because we can detect that current is being delivered to them, but others do nothing.
For example with some flash drives (Kingston) it works nice but with others It doesn't. (Doesn't matter if they are 2.0/3.0).
It seems to be relqted to the certification of each USB stick. For example
Kingston 2.0 64GB works excellent
Kingston 2.0 16GB doesn't work
Sandisk 2.0 16GB doesn't work
Kingston 64GB 3.0 works excellent
Maybe some of them aren't original , (just clones, IDK)
All of them are formated to fat32. (Also tried exFat)
So it seems to be a problem with uncertificated USB sticks. The question is: how can we solve it so the board can work with a huge variety of them? Is there any library or solution that improves this? Or how would you deal with this?
Thanks for reading
2025-01-20 01:47 PM
Add info:
*We use the usb_otg_hs port( but same problem with FS port)
*USB host libraries are up to date
*We use fatfs library