Skip to main content
Associate III
May 13, 2025
Solved

STM32H753ZI SPI SD Card Not Responding to CMD0/CMD8 (0xFF Response)

  • May 13, 2025
  • 1 reply
  • 1288 views

Hi everyone,

I’m working with an STM32H753ZI and trying to interface a 32GB SDHC card via SPI using FatFs.
The SPI connection seems fine (I can read 0xFF repeatedly), but the SD card does not respond to CMD0 or CMD8 — both return 0xFF. As a result, f_mount fails with error code (3).

Test setup:

  • STM32H753ZI

  • SPI1 @ 256 prescaler

  • 3.3V SD Card Module (Pzsmocn PZSSD001)

  • Netac 32GB SDHC card (format is FAT32 )

Observed:

  • SPI lines work (0xFF received repeatedly).

  • CMD0 and CMD8 always return 0xFF.

  • Tried keeping CS low, delaying, reformatting — no change.

Questions:

  1. Is 32GB SDHC over SPI known to have compatibility issues on STM32H753ZI?

  2. Any proven SD cards or modules you recommend?

  3. Any other suggestions to debug this issue?

HANITALY_0-1747123903799.png

 

Thank you for any help or advice!

Best answer by Mike_ST

Hello,

>> Is 32GB SDHC over SPI known to have compatibility issues on STM32H753ZI?

No

>> Any other suggestions to debug this issue?

Check the SPI bus with a scope to see what is happening.

 

You have an "SDCARD over SPI" example in the STM32H7 software package:

STM32H7 software package 

under:

Projects\NUCLEO-H743ZI\Applications\FatFS\FatFS_uSD_Standalone

It should be compatible with H753.

Perhhaps you'll have to change the SPI instance and the SPI pins.

 

1 reply

Mike_ST
Mike_STBest answer
Technical Moderator
May 13, 2025

Hello,

>> Is 32GB SDHC over SPI known to have compatibility issues on STM32H753ZI?

No

>> Any other suggestions to debug this issue?

Check the SPI bus with a scope to see what is happening.

 

You have an "SDCARD over SPI" example in the STM32H7 software package:

STM32H7 software package 

under:

Projects\NUCLEO-H743ZI\Applications\FatFS\FatFS_uSD_Standalone

It should be compatible with H753.

Perhhaps you'll have to change the SPI instance and the SPI pins.

 

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.