SD card support with SDIO
Posted: Mon Oct 11, 2021 6:42 pm
Hi.
I did enable SD card support through SDIO in firmware and set pins to correct alternative functions.
Flashed ecu and SD card becomes available with correct size as USB drive on Windows.
But I can't format it from windows.
I use 8GB sd card on a custom board.
The question is how to format SD card (FAT or FAT32), also is there any additional stuff I need to enable to get sd card logs working.
FW compiled with flag
#undef EFI_SDC_DEVICE
#define EFI_SDC_DEVICE SDCD1
SDIO sits on
PC8 - > D0 -> Alternative type 12U
PC9 -> D1 -> Alternative type 12U
PC10 - > D2 -> Alternative type 12U
PC11 -> D3 -> Alternative type 12U
PC12 -> SCK -> Alternative type 12U
PD2 -> CMD -> Alternative type 12U
I did enable SD card support through SDIO in firmware and set pins to correct alternative functions.
Flashed ecu and SD card becomes available with correct size as USB drive on Windows.
But I can't format it from windows.
I use 8GB sd card on a custom board.
The question is how to format SD card (FAT or FAT32), also is there any additional stuff I need to enable to get sd card logs working.
FW compiled with flag
#undef EFI_SDC_DEVICE
#define EFI_SDC_DEVICE SDCD1
SDIO sits on
PC8 - > D0 -> Alternative type 12U
PC9 -> D1 -> Alternative type 12U
PC10 - > D2 -> Alternative type 12U
PC11 -> D3 -> Alternative type 12U
PC12 -> SCK -> Alternative type 12U
PD2 -> CMD -> Alternative type 12U