Skip to main content
Nello Cris
Associate
March 3, 2025
Question

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

  • March 3, 2025
  • 1 reply
  • 477 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

ST 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. 

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om