sd card example on Keil

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

sd card example on Keil

跳至解决方案
3,349 次查看
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

 

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
2,167 次查看
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 项奖励
回复
3 回复数
2,168 次查看
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 项奖励
回复
2,167 次查看
Abhitechmania
Contributor IV

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

 

Thanks,

Abhinav

0 项奖励
回复
2,167 次查看
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 项奖励
回复