Stm32 sd card data logger. The freely available ones are not built for speed.

Stm32 sd card data logger. You can also try this method with other STM32 boards.