View previous topic :: View next topic |
Author |
Message |
Guest
|
MMC card if i want view list file in MMC CARD.( "dir&qu |
Posted: Thu Apr 27, 2006 12:10 pm |
|
|
I made the projects MMC CARD and use MMC CARD driver in this web is work.BUT if i want view list file in MMC CARD.( command"dir" in dos) please suggest me. Thank in advance. |
|
|
rberek
Joined: 10 Jan 2005 Posts: 207 Location: Ottawa, Canada
|
|
Posted: Thu Apr 27, 2006 12:58 pm |
|
|
If you are referring to the MMC drivers in CCS, I do not believe they write data out to the card in a way that is readable by the FAT file system of the PC, so you cannot use DOS (or any other PC commands) commands to read it. |
|
|
tsupuntu Guest
|
Sorry |
Posted: Thu Apr 27, 2006 1:22 pm |
|
|
rberek wrote: | If you are referring to the MMC drivers in CCS, I do not believe they write data out to the card in a way that is readable by the FAT file system of the PC, so you cannot use DOS (or any other PC commands) commands to read it. |
Sorry' I don't mean interface with dos.I mean CCS function for show list file in MMC card.and show in display of Hyperterminal by command "printf" |
|
|
rberek
Joined: 10 Jan 2005 Posts: 207 Location: Ottawa, Canada
|
|
Posted: Thu Apr 27, 2006 9:32 pm |
|
|
I may still be misunderstanding your question, but...
The mmc_read_block will read data from the card, and you will have to store it in the PIC's data memory before sending it to the PC via RS232.
The CCS functions that wrote the data to the card did not create files or directories. They only wrote the data into 512 byte blocks. The concept of files and directories is only valid if you used the mmc_write_block commands to create a file system on the MMC card.
If you did not specifically create a file system, there is no function that will show a list of files or directories, since there are no files or directories on the card.
You, however, are free to format your RS232 output to Hyperterminal any way you like.
If I still haven't answered your question, I apologize. |
|
|
|