Skip to main content
Visitor II
March 3, 2025
Question

NUCLEO-C031C6 SD CARD with SPI Interface (speed problem)

  • March 3, 2025
  • 1 reply
  • 461 views

Dear all,

I'm reading a file on sd card by spi interface on my NUCLEO board using this example: https://github.com/kiwih/cubeide-sd-card/

I find that the speed reading 1500 bytes is near 30ms. On Arduino with a 16mhz clock I read them in 7ms

Why we have this difference? May be a library problem? The prescaler I set the SPI CLOCK is /4 and the clock is 48Mhz

Thank you to who will help.

Nello

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    May 12, 2025

    @Nello Cris wrote:

    Dear all,

    I'm reading a file on sd card by spi interface on my NUCLEO board using this example: https://github.com/kiwih/cubeide-sd-card/

    I find that the speed reading 1500 bytes is near 30ms. On Arduino with a 16mhz clock I read them in 7ms


    16 Mhz IS THE spi clock frequency? If yes it lower that the SPI clock frequency for STM32. So, it is normal that the transfer takes more time.