I’m porting my SDIO driver for SD cards to the H7. After some trouble with the initalization, it is working roughly. The D-cache handling is not proper yet and I found that fread() makes things pretty slow. When I read some large testfile in 16 kB chunks, I get a speed of about 2,5 MB/s, but with the File object it is more than 16 MB/s. fread() copies the blocks, that makes it slower and hard to handle with alignment that is neccessary for the DMA with cache. Is it possible to influence the buffering of fread?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Storage Method with FATFileSystem | 3 | 444 | February 14, 2023 | |
SDMMC BlockDevice - Nucleo F746ZG | 4 | 1262 | October 21, 2020 | |
SDBlockDevice performance issue | 8 | 1065 | September 10, 2021 | |
External SDRAM support using FMC with Mbed OS | 0 | 223 | January 23, 2022 | |
H743ZI2 Slow bi-directional USB communication | 1 | 267 | July 13, 2023 |