µC/FS Error Codes

µC/FS Error Codes

This section provides a brief explanation of µC/FS error codes defined in fs_err.h. Any error codes not listed here may be searched in fs_err.h for both their numerical value and usage.

System Error Codes

Error Code

Meaning

Error Code

Meaning

FS_ERR_NONE

No error.

FS_ERR_INVALID_ARG

Invalid argument.

FS_ERR_INVALID_CFG

Invalid configuration.

FS_ERR_INVALID_CHKSUM

Invalid checksum.

FS_ERR_INVALID_LEN

Invalid length.

FS_ERR_INVALID_TIME

Invalid date/time.

FS_ERR_INVALID_TIMESTAMP

Invalid timestamp.

FS_ERR_INVALID_TYPE

Invalid object type.

FS_ERR_MEM_ALLOC

Mem could not be alloc'd.

FS_ERR_NULL_ARG

Arg(s) passed NULL val(s).

FS_ERR_NULL_PTR

Ptr arg(s) passed NULL ptr(s).

FS_ERR_OS

OS err.

FS_ERR_OVF

Value too large to be stored in type.

FS_ERR_EOF

EOF reached.

FS_ERR_WORKING_DIR_NONE_AVAIL

No working dir avail.

FS_ERR_WORKING_DIR_INVALID

Working dir invalid.

Buffer Error Codes

Error Code

Meaning

Error Code

Meaning

FS_ERR_BUF_NONE_AVAIL

No buffer available.

Cache Error Codes

Error Code

Meaning

Error Code

Meaning

FS_ERR_CACHE_INVALID_MODE

Mode specified invalid.

FS_ERR_CACHE_INVALID_SEC_TYPE

Device already open.

FS_ERR_CACHE_TOO_SMALL

Device has changed.

Device Error Codes

Error Code

Meaning

Error Code

Meaning

FS_ERR_DEV

Device access error.

FS_ERR_DEV_ALREADY_OPEN

Device already open.

FS_ERR_DEV_CHNGD

Device has changed.

FS_ERR_DEV_FIXED

Device is fixed (cannot be closed).

FS_ERR_DEV_FULL

Device is full (no space could be allocated).

FS_ERR_DEV_INVALID

Invalid device.

FS_ERR_DEV_INVALID_CFG

Invalid dev cfg.

FS_ERR_DEV_INVALID_ECC

Invalid ECC.

FS_ERR_DEV_INVALID_IO_CTRL

I/O control invalid.

FS_ERR_DEV_INVALID_LOW_FMT

Low format invalid.

FS_ERR_DEV_INVALID_LOW_PARAMS

Invalid low-level device parameters.

FS_ERR_DEV_INVALID_MARK

Invalid mark.

FS_ERR_DEV_INVALID_NAME

Invalid device name.

FS_ERR_DEV_INVALID_OP

Invalid operation.

FS_ERR_DEV_INVALID_SEC_NBR

Invalid device sec nbr.

FS_ERR_DEV_INVALID_SEC_SIZE

Invalid device sec size.

FS_ERR_DEV_INVALID_SIZE

Invalid device size.

FS_ERR_DEV_INVALID_UNIT_NBR

Invalid device unit nbr.

FS_ERR_DEV_IO

Device I/O error.

FS_ERR_DEV_NONE_AVAIL

No device avail.

FS_ERR_DEV_NOT_OPEN

Device not open.

FS_ERR_DEV_NOT_PRESENT

Device not present.

FS_ERR_DEV_TIMEOUT

Device timeout.

FS_ERR_DEV_UNIT_NONE_AVAIL

No unit avail.

FS_ERR_DEV_UNIT_ALREADY_EXIST

Unit already exists.

FS_ERR_DEV_UNKNOWN

Unknown.

FS_ERR_DEV_VOL_OPEN

Vol open on dev.

FS_ERR_DEV_INCOMPATIBLE_LOW_PARAMS

Incompatible low-level device parameters.

FS_ERR_DEV_INVALID_METADATA

Device driver metadata is invalid.

FS_ERR_DEV_OP_ABORTED

Operation aborted.

FS_ERR_DEV_CORRUPT_LOW_FMT

Corrupted low-level fmt.

FS_ERR_DEV_INVALID_SEC_DATA

Retrieved sec data is invalid.

FS_ERR_DEV_WR_PROT

Device is write protected.

FS_ERR_DEV_OP_FAILED

Operation failed.

FS_ERR_DEV_NAND_NO_AVAIL_BLK

No blk avail.

FS_ERR_DEV_NAND_NO_SUCH_SEC

This sector is not available.

FS_ERR_DEV_NAND_ECC_NOT_SUPPORTED

The needed ECC scheme is not supported.

FS_ERR_DEV_NAND_ONFI_EXT_PARAM_PAGE

NAND device extended parameter page must be read.

Device Driver Error Codes

 

Error Code

Meaning

Error Code

Meaning

FS_ERR_DEV_DRV_ALREADY_ADDED

Device driver already added.

FS_ERR_DEV_DRV_INVALID_NAME

Invalid device driver name.

FS_ERR_DEV_DRV_NONE_AVAIL

No driver available.

Directory Error Codes

Error Code

Meaning

Error Code

Meaning

FS_ERR_DIR_ALREADY_OPEN

Directory already open.

FS_ERR_DIR_DIS

Directory module disabled.

FS_ERR_DIR_FULL

Directory is full.

FS_ERR_DIR_NONE_AVAIL

No directory avail.

FS_ERR_DIR_NOT_OPEN

Directory not open.

ECC Error Codes

Error Code

Meaning

Error Code

Meaning

FS_ERR_ECC_CORRECTABLE

Correctable ECC error.

FS_ERR_ECC_UNCORRECTABLE

Uncorrectable ECC error.

Entry Error Codes

Error Code

Meaning

Error Code

Meaning

FS_ERR_ENTRIES_SAME

Paths specify same file system entry.

FS_ERR_ENTRIES_TYPE_DIFF

Paths do not both specify files OR directories.

FS_ERR_ENTRIES_VOLS_DIFF

Paths specify file system entries on different vols.

FS_ERR_ENTRY_CORRUPT

File system entry is corrupt.

FS_ERR_ENTRY_EXISTS

File system entry exists.

FS_ERR_ENTRY_INVALID

File system entry invalid.

FS_ERR_ENTRY_NOT_DIR

File system entry not a directory.

FS_ERR_ENTRY_NOT_EMPTY

File system entry not empty.

FS_ERR_ENTRY_NOT_FILE

File system entry not a file.

FS_ERR_ENTRY_NOT_FOUND

File system entry not found.

FS_ERR_ENTRY_PARENT_NOT_FOUND

Entry parent not found.

FS_ERR_ENTRY_PARENT_NOT_DIR

Entry parent not a directory.

FS_ERR_ENTRY_RD_ONLY

File system entry marked read-only.

FS_ERR_ENTRY_ROOT_DIR

File system entry is a root directory.

FS_ERR_ENTRY_TYPE_INVALID

File system entry type is invalid.

FS_ERR_ENTRY_OPEN

Operation not allowed on entry corresponding to an open file/dir.

File Error Codes

Error Code

Meaning

Error Code

Meaning

FS_ERR_FILE_ALREADY_OPEN

File already open.

FS_ERR_FILE_BUF_ALREADY_ASSIGNED

Buf already assigned.

FS_ERR_FILE_ERR

Error indicator set on file.

FS_ERR_FILE_INVALID_ACCESS_MODE

Access mode is specified invalid.

FS_ERR_FILE_INVALID_ATTRIB

Attributes are specified invalid.

FS_ERR_FILE_INVALID_BUF_MODE

Buf mode is specified invalid or unknown.

FS_ERR_FILE_INVALID_BUF_SIZE

Buf size is specified invalid.

FS_ERR_FILE_INVALID_DATE_TIME

Date/time is specified invalid.

FS_ERR_FILE_INVALID_DATE_TIME_FLAG

Date/time flag is specified invalid.

FS_ERR_FILE_INVALID_NAME

Name is specified invalid.

FS_ERR_FILE_INVALID_ORIGIN

Origin is specified invalid or unknown.

FS_ERR_FILE_INVALID_OFFSET

Offset is specified invalid.

FS_ERR_FILE_INVALID_FILES

Invalid file arguments.

FS_ERR_FILE_INVALID_OP

File operation invalid.

FS_ERR_FILE_INVALID_OP_SEQ

File operation sequence invalid.

FS_ERR_FILE_INVALID_POS

File position invalid.

FS_ERR_FILE_LOCKED

File locked.

FS_ERR_FILE_NONE_AVAIL

No file available.

FS_ERR_FILE_NOT_OPEN

File not open.

FS_ERR_FILE_NOT_LOCKED

File not locked.

FS_ERR_FILE_OVF

File size overflowed max file size.

FS_ERR_FILE_OVF_OFFSET

File offset overflowed max file offset.

Name Error Codes

Error Code

Meaning

Error Code

Meaning

FS_ERR_NAME_BASE_TOO_LONG

Base name too long.

FS_ERR_NAME_EMPTY

Name empty.

FS_ERR_NAME_EXT_TOO_LONG

Extension too long.

FS_ERR_NAME_INVALID

Invalid file name or path.

FS_ERR_NAME_MIXED_CASE

Name is mixed case.

FS_ERR_NAME_NULL

Name ptr arg(s) passed NULL ptr(s).

FS_ERR_NAME_PATH_TOO_LONG

Entry path is too long.

FS_ERR_NAME_BUF_TOO_SHORT

Buffer for name is too short.

FS_ERR_NAME_TOO_LONG

Full name is too long.

Partition Error Codes

Error Code

Meaning

Error Code

Meaning

FS_ERR_PARTITION_INVALID

Partition invalid.

FS_ERR_PARTITION_INVALID_NBR

Partition nbr specified invalid.

FS_ERR_PARTITION_INVALID_SIG

Partition sig invalid.

FS_ERR_PARTITION_INVALID_SIZE

Partition size invalid.

FS_ERR_PARTITION_MAX

Max nbr partitions have been created in MBR.

FS_ERR_PARTITION_NOT_FINAL

Prev partition is not final partition.

FS_ERR_PARTITION_NOT_FOUND

Partition not found.

FS_ERR_PARTITION_ZERO

Partition zero.

Pools Error Codes