Hello,
I am using keil development environment for trying examples for k60 tower system. I am using mqx rtos which has been recently ported to keil mdk. When trying sd card example, i got this message:
Unable to open SD card device
When tracing back into the problem i observed that it successful in
a) Opening low level communication device
b) installing SD card device
but fails at "sdcard_handle = fopen("sdcard:", 0)"
Thanks in advance,
Regards
Abhi
Solved! Go to Solution.
Hi Abhitechmania,
are u still having problems with SD card device?
There was a problem with pull-up and the detection of the SD card which was fixed in MQX 3.8.
Regards,
MartinK
Hi Abhitechmania,
are u still having problems with SD card device?
There was a problem with pull-up and the detection of the SD card which was fixed in MQX 3.8.
Regards,
MartinK
Yes, I just tried it. It works fine now.
Thanks,
Abhinav
hi abhinav ,
Using the example program , i am facing issue of SD card read and getting error MFS read fault , i.e means lower level device driver has issue .
dev_handle1 = fopen("sdcard:", 0);
if ( dev_handle1 == NULL ) {
printf("\nUnable to open SD card device");
_task_block();
}
/* Install MFS: */
error_code = _io_mfs_install(dev_handle1, "a:", 0);
if ((error_code != MFS_NO_ERROR) &&
(error_code != MFS_NOT_A_DOS_DISK)) {
printf("FATAL error while initializing: \n");
_mqx_exit(1);
} else {
printf("Initialized MFS1%s\n");
}
//open filse system
file_handle=fopen("a:",NULL);
So please let me know anything you did to reolve the issue .