This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Diff between File system and FAT file system

Hi to all, i started to work on FAT file system on SD 1GB card. LPC2388 on MCB2300 board.

Just now i have completed my binary search on File system on SD card. Simply fopen, fread, fseek,etc.

Now i have to work on SD card using FAT file system. i went through so many web pages that didnt answer my question or i was not able to understand.

how to make a File allocating table on my SD Card? Some simple example can give me a good start...

my question is Whats the difference between Normal File system (which i have done on my SD card) and FAT File system?

And I had formatted the SD card on LAPTOP with the 2 options of FAT(Default) and FAT32.
When i tried to use the card after i did format using FAT(Default) option, i was able to work with my code which i developed for SD card using normal File system.

But if format using FAT32 option, then while trying to initialize the card it says SD card un formatted.

So what its trying to say?

So by default my controller accept FAT12?

Can i use FAT32 on the same SD card for my same code in which i didnt give an option to recognize FAT32?

As i studied from the web source for FAT16, the clusters address divide my SD card in to sectors and gives back the location address to me(2^16 address)?

So on for FAT32?

So please give me some clear explanation how to start? And i gone through Wikipedia and all the sources so dont give me the link for wikipedia pls.

Parents Reply Children
  • i = disk_write(0, (const BYTE *)&buffer, 0xD2, 56);
    

    For example: 0xD2, what is that?

  • Oh Thanks for your reply.

    DWORD SectorNumber, /* Sector number to write */

    But 0xD2 i collected from the CSD return value. But the thing is i dont know what correct value i have to put over there to get a correct reply.

    DRESULT disk_write ( BYTE Drive, /* Physical drive number */ const BYTE* Buffer, /* Pointer to the write data (may be non aligned) */ DWORD SectorNumber, /* Sector number to write */ BYTE SectorCount /* Number of sectors to write */
    );

    So physical drive no is 0.
    Buffer is (const BYTE *)&buffer,
    SectorNumber is 0xD2(i assumed wrongly),
    SectorCount is 56(but i tried 0 and 1).
    but 0 is not a valid value.

    I know i am doing wrongly. But i am not able to figure it out..pls

  • Do you have a disk_write() function for LPC2388?

    I guess i am not using this from RL ARM lib. This is available in diskio.c/.h for low level disk I/O module for lpc23xx/24xx.

    But really i dont know the answer for your question..

  • No matter who provides/produces that products,
    before we trust and rely on them, we better inspect them first.

    =======================================

    ( long-unchanged fast food frying oil )

    McDonald's apologizes over frying oil violation

    " href= "http://www.chinacsr.com/en/2009/07/10/5646-carcinogens-found-on-mcdonalds-and-kfc-food-in-taipei-county/"> www.chinacsr.com/.../

  • MRT malfunction strands hundreds

    www.taipeitimes.com/.../2003448368

    The Taipei City MRT's Neihu and Muzha lines were suspended yesterday afternoon after a sudden power outage, forcing about 700 passengers to walk down the elevated rail lines to return to station platforms after trains stopped between stations.

    The lines are scheduled to resume operating at 6am today. The suspension of services yesterday was the first serious system failure on the Neihu Line since it began operations last Saturday.

    Mayor apologizes for Neihu/Muzha MRT line's suspension

    www.etaiwannews.com/.../news_content.php

    ===========================================

    Muzha line was built by MATRA, a French Company.

    Neihu line is built by Bombardier, a Canadian Company.

    News written in Chinese says that, the root cause might be related to System Integration Problem.

    When we want to integrate a working-fine solution A and a working-fine solution B into a Big Project, there are alway a lot of problems, which need our effort to resolve.