sd card example on Keil

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

sd card example on Keil

Jump to solution
2,018 Views
Abhitechmania
Contributor IV

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

 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
836 Views
c0170
Senior Contributor III

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

View solution in original post

0 Kudos
Reply
3 Replies
837 Views
c0170
Senior Contributor III

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

0 Kudos
Reply
836 Views
Abhitechmania
Contributor IV

Yes, I just tried it. It works fine now. 

 

Thanks,

Abhinav

0 Kudos
Reply
836 Views
vallinaths
Contributor II

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 .

0 Kudos
Reply