Skip to main content
Associate II
September 17, 2026
Question

nucleo_c5a3zg sdhc sample from zephyr not working

Greetings,

I am working with nucleo_c5a3zg board and I am using zephyr RTOS for my project. I wanted to interface the sd card and try to do some data logging. I had a adafruit data logger shield which can fit on nucleo_c5a3zg board and there is a shield support in zephyr. 

When i build and uploaded the code i am getting a error that CMD8 is not supported. During debugging i found out that there is no state change on MISO line. Just to check if my code is wrong i tried same code with nucleo_f446re board and it works fine.

Following is the capture from saleae loggic for necleo_c5a3zg board. I can provide other details like code, .dts file, etc.

If someone can help me solve this issue it would be much appreciated.

6 replies

ST Technical Moderator
September 28, 2026

Hello ​@Abhishek_Babhulkar 

Could you please try to set the SPI clock the same as for nucleo_f446re project. 

Did you try without Zephyr please?

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
Associate II
October 4, 2026

Hii ​@Saket_Om  
I tried with same clock as nucleo_f446re but I am getting same results.
As mentioned by you on my other post there is no sample from stm for sdmmc on c5 series. Also I don’t see the configuration in cubemx2 for sdmmc to create my own sample with filex without OS. That’s the reason i am using zephyr’s file handling stack along with other infra I don’t have the time or will to create my own file handling middleware over SPI drivers.

If you can suggest some solution which would avoid this I am happy to try.

ST Technical Moderator
October 5, 2026

Hello ​@Abhishek_Babhulkar 

Also I don’t see the configuration in cubemx2 for sdmmc to create my own sample with filex without OS

The STM32C5 series does not support SDMMC peripheral. 

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