Document number
205065
Version
Rev. N
Issue date
2019-02-04
Sirius OBC and TCM User Manual
Page
141
of
174
RMAP reply status:
Table 7-69: MMPartitionConfig data status codes
Status code
Description
0
Success.
EINVAL
Invalid partition number.
7.12.4.22. MMPartitionSpace
Gets the amount of free space in a partition.
Note that due to the nature of the flash memory, as memory is freed, the space will become
free for writing only in leaps as the free operation is used up to a block boundary. This
means that a partition can have a discrepancy between reported free space and expected
free space of maximum one block.
The reported space for direct partitions will correspond to the total space of every available
unused page, minus any freed bytes which belongs to a block which has not yet been fully
freed.
The reported space for continuous and circular partitions will correspond to the total space
of every unused byte, minus the data offset in the initial write block.
For continuous/circular partitions, since the write pointer is never reset it may not be located
at the beginning of a block when the initial write occurs or is about to occur, hence the
amount of free space may not correspond exactly to the amount of available fully freed
blocks. It is possible (but not recommended during normal operation) to re-synchronize the
write pointer by writing exactly the amount needed to end up at the start of a block, and then
erase up to the write pointer. This will cause the free space to be exactly equal to the
amount of available blocks (or the partition maximum logical address space limit).
Table 7-70 MMPartitionSpace data
Byte
Type
Description
0-7
UINT64
Available size in bytes.
RMAP reply status:
Table 7-71: MMPartitionSpace status codes
Status code
Description
0
Success.
EINVAL
Invalid partition number.
7.12.4.23. MMDownloadPartitionData
Downloads data of the requested length from the partition using the virtual channel set in the
partition configuration (see7.9.1.5). Download commands will be processed one at a time
and any prioritizations between different partitions must be handled by sending the
download commands in priority order. For direct mode, all download data need to be in a
continuous address area (i.e. same data range) or the download will stop when reaching the
end of a continuous area even though the download ordered is larger.