However, I'm stuck with the SD driver and its use with Fatfs. Last problem is calling sdcConnect(), with caches disabled and SD clock at 80 MHz, almost at the end, when switching to high speed,it calls sdc_detect_bus_clk
Code: Select all
static bool detect_bus_clk(SDCDriver *sdcp, sdcbusclk_t *clk) {
if (SDC_MODE_CARDTYPE_MMC == (sdcp->cardmode & SDC_MODE_CARDTYPE_MASK)) {
return mmc_detect_bus_clk(sdcp, clk);
}
return sdc_detect_bus_clk(sdcp, clk);
}
And then it fails on
Code: Select all
/* Read switch functions' register.*/
if (sdc_lld_read_special(sdcp, tmp, N, MMCSD_CMD_SWITCH, 0)) {
return HAL_FAILED;
}
I would really appreciatte if anyone could refer me to any working example that could guide me.