No Activity at all on SDIO Lines
Hi Everyone,
I have been trying to get SDIO working (4-bit) using STM32CubeMX and a NUCLEO-F401RE dev board. I am using the Adafruit SDIO breakout board here: Adafruit Micro SD SPI or SDIO Card Breakout Board . Unfortunately, no matter what I change in the code or in the CubeMX software I can't even get a single clock pulse or blip on the data lines. The output on my logic analyser has absolutely no activity.

I've tried going back to a very basic project and still no luck. My configuration is:

*Note: I have a SDIOCLK clock divide factor of 5 (12MHz) currently on the SDIO config page (I have tried 12 as well to bring the SDIO clock down to 6MHz)
This is the code where I'm hoping to get some kind of activity, instead it just hangs within the HAL_SD_InitCard function.
static void MX_SDIO_SD_Init(void)
{
/* USER CODE BEGIN SDIO_Init 0 */
/* USER CODE END SDIO_Init 0 */
/* USER CODE BEGIN SDIO_Init 1 */
/* USER CODE END SDIO_Init 1 */
hsd.Instance = SDIO;
hsd.Init.ClockEdge = SDIO_CLOCK_EDGE_RISING;
hsd.Init.ClockBypass = SDIO_CLOCK_BYPASS_DISABLE;
hsd.Init.ClockPowerSave = SDIO_CLOCK_POWER_SAVE_DISABLE;
hsd.Init.BusWide = SDIO_BUS_WIDE_1B;
hsd.Init.HardwareFlowControl = SDIO_HARDWARE_FLOW_CONTROL_DISABLE;
hsd.Init.ClockDiv = 5;
/* USER CODE BEGIN SDIO_Init 2 */
HAL_StatusTypeDef sd_state = HAL_SD_InitCard(&hsd);
if (sd_state == HAL_OK)
{
HAL_SD_ConfigWideBusOperation(&hsd, SDIO_BUS_WIDE_4B);
}
/* USER CODE END SDIO_Init 2 */
}Has anyone seen this issue before?
Thanks
