TI OAD API Documentation  2.2.11.00
ext_flash_layout.h
Go to the documentation of this file.
1 /******************************************************************************
2 
3  @file ext_flash_layout.h
4 
5  @brief Contains common structures and defines related to external flash
6  layout as it for the OAD usecase
7 
8  Group: WCS, BTS
9  $Target Device: DEVICES $
10 
11  ******************************************************************************
12  $License: BSD3 2017 $
13  ******************************************************************************
14  $Release Name: PACKAGE NAME $
15  $Release Date: PACKAGE RELEASE DATE $
16  *****************************************************************************/
17 
46 #ifndef EXT_FLASH_LAYOUT_H
47 #define EXT_FLASH_LAYOUT_H
48 
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 
53 /*******************************************************************************
54  * INCLUDES
55  ******************************************************************************/
56 
58 
67 #define OAD_EFL_MAGIC \
68  { \
69  'O', 'A', 'D', ' ', 'N', 'V', 'M', '1' \
70  }
71 
76 #define OAD_EFL_MAGIC_SZ 8
77 
82 #define EFL_ADDR_META 0x00000
83 
88 #define EFL_SIZE_META EFL_PAGE_SIZE
89 
94 #define EFL_META_PG_INVALID 0xFF
95 
100 #define EFL_FACT_IMG_META_PG 0
101 
105 #define EFL_ADDR_META_FACT_IMG EFL_ADDR_META
106 
110 #define EFL_META_COPY_SZ offsetof(ExtImageInfo_t, fixedHdr.rfu) + sizeof(((ExtImageInfo_t){0}).fixedHdr.rfu)
111 
115 #define EFL_METADATA_LEN sizeof(ExtImageInfo_t)
116 
121 #define EFL_IMG_STR_ADDR_OFFSET offsetof(ExtImageInfo_t, extFlAddr)
122 
126 #define EFL_META_COUNTER_OFFSET offsetof(ExtImageInfo_t, counter)
127 
132 TYPEDEF_STRUCT_PACKED
133 {
135  uint32_t extFlAddr;
136  uint32_t counter;
137 }
139 
142 #ifdef __cplusplus
143 }
144 #endif
145 
146 #endif /* EXT_FLASH_LAYOUT_H */
imgFixedHdr_t fixedHdr
This is the core image header.
Definition: ext_flash_layout.h:134
Definition: oad_image_header.h:689
uint32_t extFlAddr
Location of the image in ext flash.
Definition: ext_flash_layout.h:135
Definition: ext_flash_layout.h:132
Structure definition for image header and segments, these are prepended to the over the air images...
uint32_t counter
Timestamp/counter of image.
Definition: ext_flash_layout.h:136
© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale