TI BLE5-Stack API Documentation  1.01.01.00
Files | Data Structures | Macros
OAD External Flash Layout

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
 

Detailed Description

Contains common structures and defines related to external flash layout as it for the OAD usecase.

============================================================================

Header Include

The external flash layout file should be included in an OAD enabled application as follows:

Overview

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.

Macro Definition Documentation

§ EFL_ADDR_META

#define EFL_ADDR_META   0x00000

Address at which the table of external flash image structures start Each record is populated by ExtImageInfo_t

§ EFL_ADDR_META_FACT_IMG

#define EFL_ADDR_META_FACT_IMG   EFL_ADDR_META

The address of the external flash header for the factory image

§ EFL_FACT_IMG_META_PG

#define EFL_FACT_IMG_META_PG   0

The page in which the external flash image header of the factory image resides

§ EFL_IMG_STR_ADDR_OFFSET

#define EFL_IMG_STR_ADDR_OFFSET   offsetof(ExtImageInfo_t, extFlAddr)

Offset of the image address in external flash into the ExtImageInfo_t structure

§ EFL_META_COPY_SZ

#define EFL_META_COPY_SZ
Value:
offsetof(ExtImageInfo_t, fixedHdr.rfu) + \
sizeof(((ExtImageInfo_t){0}).fixedHdr.rfu)
Definition: ext_flash_layout.h:131

Size of core header portion to copy

§ EFL_META_COUNTER_OFFSET

#define EFL_META_COUNTER_OFFSET   offsetof(ExtImageInfo_t, counter)

Offset of the timestamp/counter into the ExtImageInfo_t structure

§ EFL_META_PG_INVALID

#define EFL_META_PG_INVALID   0xFF

Flag to indicate that the candidate external flash image header page is invalid

§ EFL_METADATA_LEN

#define EFL_METADATA_LEN   sizeof(ExtImageInfo_t)

Length of ExtImageInfo_t structure in bytes

§ EFL_SIZE_META

#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

§ OAD_EFL_MAGIC

#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

Note
This is only used by off-chip OAD

§ OAD_EFL_MAGIC_SZ

#define OAD_EFL_MAGIC_SZ   8

Length of external flash magic string, this is the length of OAD_EFL_MAGIC_SZ

Copyright 2018, Texas Instruments Incorporated