AnsweredAssumed Answered

SDCARD example issues

Question asked by Mohsin455 on Jan 24, 2012
Latest reply on Jan 30, 2012 by Mark Butcher

Hi All,

 

           I am using K60N512 Tower kit and MQX3.8. I am trying to use the SCARD example. I have enabled the following flags

 

#define BSPCFG_ENABLE_ESDHC      1

 

When I run the code I get the following screen and I can read the contents of the SDCARD using dir command.

 

The problem is when I try to do a read I get the following message.

 

 

 

SD card demo

Shell (build: Jan 24 2012)
Copyright (c) 2008 Freescale Semiconductor;
shell>
shell> SD card installed to a:

shell> dir
                    0 01-01-1980 00:01:02      A
TEST.TXT           16 01-24-2012 10:34:58      A TEST.TXT
TEST2.TXT          17 01-24-2012 10:35:20      A TEST2.TXT
shell> read a:\TEST.TXT
Error, unable to open file a:\TEST.TXT.
shell>

shell> read TEST.TXT
Error, unable to open file TEST.TXT.

shell>

shell> pwd
a:\
shell>

 

Can anyone please let me know how to do read/write using shel commands ?

 

Thanks,

Mohsin

Outcomes