The fcheck function checks the consistency of the Flash File System on the specified drive. If the drive string is empty (""), fcheck uses the default drive specified in the FILE_CONFIG.C configuration file. The following values are supported for the drive: | Drive | Description |
|---|
| "F:" | Embedded Flash drive. | | "S:" | SPI Flash drive. | | "R:" | Ram drive. |
The fcheck function determines if the Flash File System has been initialized. If this check fails the Flash or RAM Device must be formatted. The following errors are detected: - Invalid file ID present,
- Data space overlapping allocation records,
- Allocation end-pointers not in ascending order.
The fcheck function is in the RL-FlashFS library. The prototype is defined in rtl.h. Note - The fcheck function can not check a Memory Card drive. If the specified drive is "M:", fcheck returns an error.
|