USB mass storage / SD card + speed
madias Wed Sep 12, 2018 10:09 pm
https://microtechnics.ru/en/stm32-i-usb … e-sd-card/
This might be from interest building up a USB mass storage (SD card) for any HAL core. (now the good news ends).
About the sub optimal reading/writing speed (for me on blue pill about 300-500kB/s – 32GB SDHC with SdFatEX (SPI) – but the SDFat library is NOT the problem!) I found this thread somewhere in the middle of the comments of the side above:
Thank You for your effort, I made the project and it works very well.
The problem now is the speed, how can I increase the speed of read/write, and I wounder why the speed is very low it’s about 200KB/s write and 600KB/s read ?
Thanks
Aveal
on 27.04.2017 at 19:09 said:
It’s common problem that Mass Storage Class in STM32 has slow speed… The best speed I saw I got with NAND memory and 16 bit FSMC and it was near 500 KB/s for writing.
Ahmed
on 27.04.2017 at 20:12 said:
I wounder if I Use High-speed core will the speed much increase or it will be a little bit different ?
John_R
on 28.04.2017 at 13:50 said:
I have the same problem, I try to transfer 1GB file and I got 350 KB/s during a
write and 500 KB/s during a read. But I think DMA will be increase that speed.
Ahmed
on 28.04.2017 at 14:05 said:
The problem is that DMA is Memory -> peripheral, So how can I configure it to work with USB and SDIO ?
Aveal
on 28.04.2017 at 21:35 said:
You can use DMA just for SD card. But I’m not sure that the speed will increase…
So it seems there is no really range upwards for increasing the reading/writing speed. (At least for the F1)
