Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

On top of the SMART MTD layer is the Smart Filesystem code. The SmartFS code uses the logical sector services of the SMART MTD layer to provide file and directory level management, such as creating new files, chaining logical sectors together to create files, creating directories and file / directory search and management routines.

Smart FSfs / smartfs / *
::UWCTOKENCOLSPANS:4::
SMART MTDdrivers / mtd / smart.c
::UWCTOKENCOLSPANS:4::
MTD Driverm25pxsst25filmtdetc.
HW Driverspi devspi devVFS
...

Example SmartFS Device Setup

...

An example 128K Byte Flash with 32K and 4K Erase Block sizes and 256 byte page read/write sizes:

Bulk EraseEntire Device
::UWCTOKENCOLSPANS:18::
Sector Erase32K
::UWCTOKENCOLSPANS:7::
32K
::UWCTOKENCOLSPANS:3::
32K
::UWCTOKENCOLSPANS:3::
32K
::UWCTOKENCOLSPANS:5::
Sector Erase4K
::UWCTOKENCOLSPANS:5::...
4K4K
...
4K4K
...
4K4K
...
4K
::UWCTOKENCOLSPANS:3::
Page read/write256256
...
256256
... ::UWCTOKENCOLSPANS:10::
256
...
256
Logical Sector (FS)512
::UWCTOKENCOLSPANS:2::
512

...

512 ::UWCTOKENCOLSPANS:2::

... ::UWCTOKENCOLSPANS:13::


In the example above, a SMART MTD logical sector size of 512 bytes was chosen. On the 128K Byte FLASH represented in the table above, this means there would be:

...