Document number
205065
Version
Rev. N
Issue date
2019-02-04
Sirius OBC and TCM User Manual
Page
103
of
174
5.12.3.6.4. Read ID
Reads the flash chip ID.
5.12.3.6.5. Erase block
Erases a block.
Return value
Description
0
Operation successful.
-1
See errno values.
errno values
EINVAL
The block number is out of range
EIO
Erase failed on chip level, block should be considered
bad.
5.12.3.6.6. Read spare area
Reads the spare area for a given page.
Return value
Description
0
Operation successful.
-1
See errno values.
errno values
EINVAL
Page number is out of range
or
Buffer is NULL
5.12.3.6.7. Write spare area
Writes the data to the given page spare area.
Command
Value type
Direction Description
SYSFLASH_IO_READ_ID
sysflash_cid_t *
out
Pointer to struct in which ID is to be stored, see
5.6.2.1.
Command
Value type
Direction Description
SYSFLASH_IO_ERASE_BLOCK
uint32_t
in
Block number to erase.
Command
Value type
Direction
Description
SYSFLASH_IO_READ_
SPARE_AREA
sysflash_ioctl_spare_area_args_t *
in
Pointer to struct with page number
specifier, and destination buffers where
spare area data is to be stored, see
5.6.2.3
Command
Value type
Direction
Description
SYSFLASH_IO_WRITE_
SPARE_AREA
sysflash_ioctl_spare_area_args_t *
in
Pointer to struct with page number
specifier, and source buffer with data
which is to be written, see 5.6.2.3