Shop OBEX P1 Docs P2 Docs Learn Events
FAT16 filesystem — Parallax Forums

FAT16 filesystem

Peter VerkaikPeter Verkaik Posts: 3,956
edited 2006-05-15 16:15 in General Discussion
I uploaded my FAT16 filesystem classes to
http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/filesystem/
The test program uses a CF card connected via two PCF8574(A) chips on an I2C bus.
The CF classes and a schematic are here:
http://groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/peripheral/memory/compactflash/

I attached a picture of the board I used with the CF card.

regards peter
640 x 480 - 85K

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2006-05-15 16:15
    There was an issue with null pointer assignment.
    The files are now updated.
    Here is the output of the Fat16FileSystem_test program
    (I used a sandisk shoot & store card, 32MB with FAT16)

    Fat16FileSystem test program
    Memory free: 10620
    CF card reset OK
    Flashing the CFIO led
    Reading device information...
    Model number··············· : SanDisk SDCFB-32
    Firmware revision·········· : HDX 2.15
    Serial number·············· :···· 103407H0104D1032
    Default cylinders·········· : 234
    Default heads·············· : 4
    Default sectors per track·· : 32
    Current cylinders·········· : 234
    Current heads·············· : 4
    Current sectors per track·· : 32
    Unformatted bytes per sector: 576
    Current capacity LBA_lo···· : 62720
    Current capacity LBA_hi···· : 0
    Addressable sectors LBA_lo· : 62720
    Addressable sectors LBA_hi· : 0
    Reading disk parameters...
    Start of boot record: 00000020h
    Start of first FAT· : 00000021h
    Start of root dir·· : 0000009Bh
    Start of data area· : 000000BBh
    Bytes per sector: 512
    Sectors per cluster: 4
    Sectors per fat: 61
    Reserved sectors: 1
    Copies of fat: 2
    Max root entries: 512
    program finished

    regards peter
Sign In or Register to comment.