hi,
i added fat_fs library and i tried to initialize "sdcard_disk_initialize(SD)". but i am getting failed error.
give some idea..? why i cant able to initialize?
i am doing following way:
void APP_init(void)
{
while (!sdhc_detect())
{ ;
} /* SD Card inserted */
if(!SD_Init()) return; /* Initialize SD_CARD and SPI Interface */
ds = disk_initialize(SD);
//here i added my code***********************************************************************/
if(ds)
{
printf("\nFailed to initialize SD disk\r\n"); //here i am getting initialization failed why?
for(;;){}
}
fr = f_chdrive(SD);
printf("\nMounting file system to SD Card volume...\r\n");
fr = f_mount(SD, &FatFs);
if(fr)
{
printf("\nError mounting file system\r\n");
for(;;){}
}
/***********************************************************************/
}
regards,
sudhakar p