 |
TLE986x Device Family SDK
|
Go to the documentation of this file.
125 #include "RTE_Components.h"
130 #define FlashPageSize (128U)
131 #define FlashSectorSize (4096U)
136 #define addr_USER_CFLASH_WR_PROT_EN (0x3925u)
137 #define addr_USER_CFLASH_WR_PROT_DIS (0x391Du)
138 #define addr_USER_CFLASH_RD_PROT_EN (0x3915u)
139 #define addr_USER_CFLASH_RD_PROT_DIS (0x390Du)
140 #define addr_USER_DFLASH_WR_PROT_EN (0x3905u)
141 #define addr_USER_DFLASH_WR_PROT_DIS (0x38FDu)
142 #define addr_USER_DFLASH_RD_PROT_EN (0x38F5u)
143 #define addr_USER_DFLASH_RD_PROT_DIS (0x38EDu)
144 #define addr_USER_OPENAB (0x38E5u)
145 #define addr_USER_PROG (0x38DDu)
146 #define addr_USER_ERASEPG (0x38D5u)
147 #define addr_USER_ABORTPROG (0x38CDu)
148 #define addr_USER_NVMRDY (0x38C5u)
149 #define addr_USER_READ_CAL (0x38BDu)
150 #define addr_USER_NVM_CONFIG (0x38B5u)
151 #define addr_USER_NVM_ECC2ADDR (0x38ADu)
152 #define addr_USER_MAPRAM_INIT (0x389Du)
153 #define addr_USER_READ_100TP (0x3875u)
154 #define addr_USER_100TP_PROG (0x386Du)
155 #define addr_USER_ERASE_SECTOR (0x3865u)
156 #define addr_USER_RAM_MBIST_START (0x384Du)
157 #define addr_USER_NVM_ECC_CHECK (0x3845u)
158 #define addr_USER_ECC_CHECK (0x383Du)
160 #ifdef RTE_DEVICE_BF_STEP
161 #define addr_USER_ERASEPG_VERIFY (0x3885u)
162 #define addr_USER_ERASE_SECTOR_VERIFY (0x388Du)
163 #define addr_USER_VERIFY_PAGE (0x3895u)
234 uint8 RAM_Branch : 1;
252 uint8 VerifyFail : 1;
289 uint8 DoubleMapping : 1;
343 uint8 VerifyFail : 1;
362 uint8 VerifyFail : 1;
381 uint8 VerifyEraseFail: 1;
382 uint8 VerifyProgFail : 1;
396 #ifdef UNIT_TESTING_LV2
1288 #ifdef RTE_DEVICE_BF_STEP
This struct defines the option flag for the USER_PROG function.
Definition: bootrom.h:220
General type declarations.
bool(*const USER_ABORTPROG)(void)
Closes the Assembly Buffer.
bool(*const USER_CFLASH_RD_PROT_DIS)(uint16 cflash_pw)
Removes the temporary code flash read protection. The password is compared against the.
bool(*const USER_DFLASH_WR_PROT_DIS)(uint16 dflash_pw)
Removes the temporary data flash write protection. The password is compared against the.
bool(*const USER_NVMRDY)(void)
Returns the status of the NVM module.
This union defines the return value of USER_PROG.
Definition: bootrom.h:235
uint8(*const USER_ECC_CHECK)(const uint32 *ecc2addr)
This function returns the address of the last ECC fail.
uint8(*const USER_MAPRAM_INIT)(void)
This function performs a MapRAM reinitialization.
This union defines the return parameter of GetCustomerID.
Definition: bootrom.h:166
unsigned short uint16
16 bit unsigned value
Definition: types.h:140
uint8(*const USER_VERIFY_PAGE)(const uint32 page_addr)
This function performs a verify on a programmed page.
bool(*const USER_CFLASH_RD_PROT_EN)(uint16 cflash_pw)
Sets the temporary code flash read protection. The password is compared against the.
bool(*const USER_DFLASH_RD_PROT_DIS)(uint16 dflash_pw)
Removes the temporary data flash read protection. The password is compared against the.
BF-Step only: This union defines the return value of USER_ERASEPG_VERIFY.
Definition: bootrom.h:340
These structs define the input data structure for USER_100TP_PROG.
Definition: bootrom.h:191
This union defines the return value of USER_NVM_ECC_CHECK.
Definition: bootrom.h:288
unsigned char uint8
8 bit unsigned value
Definition: types.h:139
uint8(*const USER_RAM_MBIST_START)(const uint16 RAM_MBIST_Stop_Addr, const uint16 RAM_MBIST_Start_addr)
This function performs a MBIST on the RAM for a given address range.
uint8(*const USER_NVM_ECC_CHECK)(void)
This function performs a ECC check on the entire NVM by reading the same.
uint8 ProgramPage(uint32 addr, const uint8 *buf, uint8 Branch, uint8 Correct, uint8 FailPageErase)
Programms a page to NVM.
bool GetCustomerID(const TCustomerID *CustID)
Reads the Customer ID out of the 100TP NVM.
uint8(*const USER_ERASEPG)(const uint32 *NVMPageAddr, const uint8 XRAM_RTNE_BRNCHNG)
Erases a flash page, for code flash as well as data flash.
uint8(*const USER_ERASE_SECTOR_VERIFY)(const uint32 sector_addr)
This function performs a verify on an erased sector.
bool(*const USER_DFLASH_RD_PROT_EN)(uint16 dflash_pw)
Sets the temporary data flash read protection. The password is compared against the.
unsigned int uint32
32 bit unsigned value
Definition: types.h:141
uint8(*const USER_ERASEPG_VERIFY)(const uint32 page_addr)
This function performs a verify on an erased page.
bool(*const USER_CFLASH_WR_PROT_DIS)(uint16 cflash_pw)
Removes the temporary code flash write protection. The password is compared against the.
bool(*const USER_NVM_CONFIG)(const uint8 *NVMSize, const uint8 *MapRAMSize)
Reads the total size of code flash and total size of data flash for this device.
uint8(*const USER_NVM_ECC2ADDR)(const uint16 *ecc2addr)
This function returns the last NVM address causing a double bit ECC failure.
bool(*const USER_CFLASH_WR_PROT_EN)(uint16 cflash_pw)
Sets the temporary code flash write protection. The password is compared against the.
uint8(*const USER_PROG)(const uint8 PROG_FLAG)
Writes the assembly buffer content to the flash page addressed by USER_OPENAB.
uint8(*const USER_OPENAB)(const uint32 NVMPAGEAddr)
Opens the assembly buffer for writing to a flash page, for code flash as well as data flash.
This union defines the return value of USER_100TP_PROG.
Definition: bootrom.h:202
This union defines the return value of USER_OPENAB.
Definition: bootrom.h:254
This union defines the return value of USER_MAPRAM_INIT.
Definition: bootrom.h:270
BF-Step only: This union defines the return value of USER_VERIFY_PAGE.
Definition: bootrom.h:358
bool(*const USER_DFLASH_WR_PROT_EN)(uint16 dflash_pw)
Sets the temporary data flash write protection. The password is compared against the.
Definition: bootrom.h:185
This union defines the return value of USER_ECC_CHECK.
Definition: bootrom.h:305
uint8(*const USER_100TP_PROG)(const uint8 OTP_Page_Sel)
This function writes data to a selected 100TP page.
uint8(*const USER_ERASE_SECTOR)(const uint32 NVMSectorAddr)
This function performs a sector erase.
BF-Step only: This union defines the return value of USER_ERASE_SECTOR_VERIFY.
Definition: bootrom.h:322
uint8(*const USER_READ_CAL)(const uint8 NumOfBytes, const uint8 CSAddr, const uint16 RAMAddr)
Reads the NVM calibration data.
bool(*const USER_READ_100TP)(const uint8 OTP_Page_Sel, const uint8 DataOffset, const uint32 *HundredTPData)
This function reads four bytes from a selected 100TP page.