TI OAD API Documentation
2.02.09.00
|
Contains common structures and defines related to external flash layout as it for the OAD usecase. More...
Files | |
file | ext_flash_layout.h |
Contains common structures and defines related to external flash layout as it for the OAD usecase. | |
Data Structures | |
struct | ExtImageInfo_t |
Macros | |
#define | EFL_ADDR_META 0x00000 |
#define | EFL_ADDR_META_FACT_IMG EFL_ADDR_META |
#define | EFL_FACT_IMG_META_PG 0 |
#define | EFL_IMG_STR_ADDR_OFFSET offsetof(ExtImageInfo_t, extFlAddr) |
#define | EFL_META_COPY_SZ |
#define | EFL_META_COUNTER_OFFSET offsetof(ExtImageInfo_t, counter) |
#define | EFL_META_PG_INVALID 0xFF |
#define | EFL_METADATA_LEN sizeof(ExtImageInfo_t) |
#define | EFL_SIZE_META EFL_PAGE_SIZE |
#define | OAD_EFL_MAGIC {'O', 'A', 'D', ' ', 'N', 'V', 'M', '1'} |
#define | OAD_EFL_MAGIC_SZ 8 |
Contains common structures and defines related to external flash layout as it for the OAD usecase.
============================================================================
The external flash layout file should be included in an OAD enabled application as follows:
The OAD external flash header is used to build up a table of all images that currently reside in external flash, and gives the OAD user application a way to easily collect information about the images. More information about the external flash header and the external flash layout can be found in the Over the Air Download (OAD) section of your protocol stack's User Guide.
#define EFL_ADDR_META 0x00000 |
Address at which the table of external flash image structures start Each record is populated by ExtImageInfo_t
#define EFL_ADDR_META_FACT_IMG EFL_ADDR_META |
The address of the external flash header for the factory image
#define EFL_FACT_IMG_META_PG 0 |
The page in which the external flash image header of the factory image resides
#define EFL_IMG_STR_ADDR_OFFSET offsetof(ExtImageInfo_t, extFlAddr) |
Offset of the image address in external flash into the ExtImageInfo_t structure
#define EFL_META_COPY_SZ |
Size of core header portion to copy
#define EFL_META_COUNTER_OFFSET offsetof(ExtImageInfo_t, counter) |
Offset of the timestamp/counter into the ExtImageInfo_t structure
#define EFL_META_PG_INVALID 0xFF |
Flag to indicate that the candidate external flash image header page is invalid
#define EFL_METADATA_LEN sizeof(ExtImageInfo_t) |
Length of ExtImageInfo_t structure in bytes
#define EFL_SIZE_META EFL_PAGE_SIZE |
Size of each entry in the external flash image header table Entries in the table are page aligned to allow for easy erasing
#define OAD_EFL_MAGIC {'O', 'A', 'D', ' ', 'N', 'V', 'M', '1'} |
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
#define OAD_EFL_MAGIC_SZ 8 |
Length of external flash magic string, this is the length of OAD_EFL_MAGIC_SZ