cancel
Showing results for 
Search instead for 
Did you mean: 

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

Nello Cris
Associate II

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

1 REPLY 1
Saket_Om
ST Employee

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

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om