I have MassStorage example for STM32F103VC with SD card by SDIO
If I comment GLCD rutines SD card works. But when I uncomment GLCD lines fmount always returns fMediaError
int main (void) { /* GLCD_Initialize (); GLCD_Clear (Blue); GLCD_SetBackColor (Blue); GLCD_SetTextColor (White); GLCD_DisplayString (0, 0, 1, " USB Device "); GLCD_DisplayString (1, 0, 1, " MSC Class "); GLCD_DisplayString (2, 0, 1, "Mass Storage Example"); GLCD_DisplayString (4, 0, 1, " USB: Memory Disk "); GLCD_DisplayString (8, 0, 1, " Keil Tools by ARM "); GLCD_DisplayString (9, 0, 1, " http://www.keil.com ");*/ fs = finit ("M0:"); /* Initialize SD Card 0 */ if (fs == fsOK) fs = fmount ("M0:"); /* Mount SD Card 0 */ if(fs == fsOK) { USBD_Initialize (0); /* USB Device 0 Initialization */ USBD_Connect (0); /* USB Device 0 Connect */ } osThreadTerminate (osThreadGetId()); }