External Flash Layout¶
Contains common structures and defines related to external flash layout as it for the OAD usecase.
Defines
-
OAD_EFL_MAGIC
¶ Magic number used by entries in the image header table at the beginning of external flash. Note this is different from OAD_IMG_ID_VAL so that the application can determine the difference between an entry in the header table and the start of an OAD image
- Note
- This is only used by off-chip OAD
-
OAD_EFL_MAGIC_SZ
¶ Length of external flash magic string, this is the length of OAD_EFL_MAGIC_SZ
-
EFL_ADDR_META
¶ Address at which the table of external flash image structures start Each record is populated by ExtImageInfo_t
-
EFL_SIZE_META
¶ Size of each entry in the external flash image header table Entries in the table are page aligned to allow for easy erasing
-
EFL_META_PG_INVALID
¶ Flag to indicate that the candidate external flash image header page is invalid
-
EFL_FACT_IMG_META_PG
¶ The page in which the external flash image header of the factory image resides
-
EFL_ADDR_META_FACT_IMG
¶ The address of the external flash header for the factory image
-
EFL_META_COPY_SZ
¶ Size of core header portion to copy
-
EFL_METADATA_LEN
¶ Length of ExtImageInfo_t structure in bytes
-
EFL_IMG_STR_ADDR_OFFSET
¶ Offset of the image address in external flash into the ExtImageInfo_t structure
-
EFL_META_COUNTER_OFFSET
¶ Offset of the timestamp/counter into the ExtImageInfo_t structure
-
struct
ExtImageInfo_t
¶ - #include <ext_flash_layout.h>
External flash image header used to populate the table of image headers in external flash.
Public Members
-
imgFixedHdr_t
fixedHdr
¶ This is the core image header.
-
uint32_t
extFlAddr
¶ Location of the image in ext flash.
-
uint32_t
counter
¶ Timestamp/counter of image.
-
imgFixedHdr_t