STM32 SDIO.

There are already several articles on this site about working with an SD card connected via SPI. But SPI has one drawback: it is not "native" for the card and, as a result, it doesn't support some commands and doesn't provide the maximum data transfer speed!!! As for command support, I'm not very interested in that for now, but I would like to increase the data transfer speed.

I think from the above it is clear that to solve this problem we need to use the card's native SD protocol. Here we are lucky: many STM32 chips contain the SDIO (Secure Digital Input Output) peripheral, which implements the card interface and protocol in hardware.
The SD protocol can transfer data over one or 4 wires, while SPI uses only one, which makes it clear where the performance gain comes from.
STM32 SDIO.

Below is a video demonstrating how fast an image is displayed from an SD card on an 800x480 display. The card is connected to the MCU via a 4-wire SDIO bus.