cancel
Showing results for 
Search instead for 
Did you mean: 

Interface SD card with nucleo H743ZI 1Bit/4Bit

ManishNair
Associate III

How to interface SD card with STM32h743z1 nucleo borad ? Is there any working example? I generated code with cubeMx 5 and failed at the very first step.. I tried various threads regarding SD card and nothing helped me.

card initialization itself giving an error. While digging i noticed the program is looping arround a Delay(2);

Also when i measured the CLK at the SD card pin, it shows only 20Khz..

MY application is to store 12 Channel adc values in every sec (1sample per second).

21 REPLIES 21

clk rising edge- toshiba not working

All cards interfaced

hsd1.Instance = SDMMC1;

hsd1.Init.ClockEdge = SDMMC_CLOCK_EDGE_FALLING;

hsd1.Init.ClockPowerSave = SDMMC_CLOCK_POWER_SAVE_DISABLE;

hsd1.Init.BusWide = SDMMC_BUS_WIDE_1B;

hsd1.Init.HardwareFlowControl = SDMMC_HARDWARE_FLOW_CONTROL_DISABLE;

hsd1.Init.ClockDiv = 2;

sdmmc Clk 24Mhz

N$8130
Associate II

Hi Tesla,

Actually,Issue are coming same at the point of,when i runing the code for STM32H723VGT6 Controller...

errorstate are coming 4(0x04),which not defined by CubeMx Lib. !

"STM32H743XI SDMMC1 SD Card - HAL_SD_ERROR_UNSUPPORTED_FEATURE"

https://community.st.com/s/question/0D53W000024YkeASAS/stm32h743xi-sdmmc1-sd-card-halsderrorunsupportedfeature

 /* SEND CMD55 APP_CMD with RCA as 0 */

  errorstate = SDMMC_CmdAppCommand(hsd->Instance, 0);

  if (errorstate != HAL_SD_ERROR_NONE)

  {

   return HAL_SD_ERROR_UNSUPPORTED_FEATURE;

  }

 }