45 typedef const struct {
51 #define CCFG_BC_PBLDR_USE_FCFG ((void*)0xFFFFFFF0) 52 #define XCFG_BC_PBLDR_FORBID ((void*)0xFFFFFFFC) 53 #define XCFG_BC_PBLDR_UNDEF ((void*)0xFFFFFFFF) 54 #define CCFG_BC_PBLDR_VALID(x) ((x) < CCFG_BC_PBLDR_USE_FCFG) 58 #define CCFG_BC_BLDRCFG_UNDEF 0xFFFFFFFF 60 struct serialRomBldrParam_struct {
61 uint32_t bldrEnabled : 1;
62 #define XCFG_BC_BLDR_DIS 0 63 #define XCFG_BC_BLDR_EN 1 64 uint32_t pinTriggerEnabled : 1;
65 #define XCFG_BC_PINTRIG_DIS 0 66 #define XCFG_BC_PINTRIG_EN 1 67 uint32_t pinTriggerLevel : 1;
68 #define XCFG_BC_PINTRIG_LEVEL_LO 0 69 #define XCFG_BC_PINTRIG_LEVEL_HI 1 71 uint32_t pinTriggerDio : 6;
73 uint32_t serialIoCfgIndex : 3;
74 #define XCFG_BC_IOCFGIND_DEFAULT 0 76 } serialRomBldrParamStruct;
80 #define CCFG_BC_PAPP_NONE ((void*)0xFFFFFFFF) 95 #define CCFG_PERMISSION_ALLOW 0xA 96 #define CCFG_PERMISSION_FORBID 0x0 98 uint32_t allowReturnToFactory : 4;
99 uint32_t allowFakeStby : 4;
100 uint32_t allowToolsClientMode : 4;
101 uint32_t allowChipErase : 4;
102 uint32_t allowFlashProgram : 4;
103 uint32_t allowFlashVerify : 4;
104 uint32_t allowEnergyTrace : 4;
105 uint32_t allowDebugPort : 4;
113 uint32_t saciTimeoutExp : 3;
114 #define XCFG_MISC_SACITOEXP_8SEC 7 115 #define XCFG_MISC_SACITOEXP_1SEC 4 116 #define XCFG_MISC_SACITOEXP_INFINITE 0 117 uint32_t saciTimeoutOverride : 1;
138 uint32_t ccfgSector : 1;
139 uint32_t fcfgSector : 1;
140 uint32_t engrSector : 1;
148 uint32_t mainSectors0_31;
151 uint32_t mainSectors32_255;
153 uint32_t mainSectors256_511;
171 #define CPYLST_NOP 0x10000000 172 #define CPYLST_WAIT(x) ( 0x10000000 + (((x)<<2)&0x000FFFFC) ) 173 #define CPYLST_CPY(a, n) ( ((uint32_t)(a)) + (((n)<<20)&0x0FF00000) ) 174 #define CPYLST_CPYFULLADDR(a) (((uint32_t)(a)) + 1) 175 #define CPYLST_JUMP(a) (((uint32_t)(a)) + 2) 176 #define CPYLST_CALL(a) (((uint32_t)(a)) + 3) 186 #define CCFG_USER_RECORD_SIZE 128 203 #define CCFG_DBGAUTH_REQPWD 0xA5 204 #define CCFG_DBGAUTH_DBGOPEN 0x5A 205 #define CCFG_DBGAUTH_DBGFORBID 0x00 209 #define CCFG_DBGBLDR_ALLOW 0xA5 210 #define CCFG_DBGBLDR_FORBID 0x00 236 #endif // __HW_CCFG_H__ void * pBldrVtor
Definition: hw_ccfg.h:50
uint32_t mainSectors0_31
Definition: hw_ccfg.h:127
struct serialRomBldrParam_struct serialRomBldrParam_t
Definition: hw_ccfg.h:225
void * pAppVtor
Definition: hw_ccfg.h:79
uint32_t mainSectors256_511
Definition: hw_ccfg.h:132
uint32_t res
Definition: hw_ccfg.h:145
uint32_t crc32
Definition: hw_ccfg.h:81
#define FLASH_1T_SECTOR_SIZE
Size of a 1T flash sector, in number of bytes.
Definition: hw_device.h:48
uint32_t val32
Definition: hw_ccfg.h:57
uint8_t authorization
Definition: hw_ccfg.h:202
const ccfg_t ccfg
Extern declaration of the CCFG struct. This extern declaration can be used to access CCFG fields from...
#define CCFG_USER_RECORD_SIZE
Definition: hw_ccfg.h:186
uint8_t allowBldr
Definition: hw_ccfg.h:208
uint32_t mainSectors32_255
Definition: hw_ccfg.h:130
uint32_t auxSectors
Definition: hw_ccfg.h:136