SPRUJE7A January 2025 – July 2025 F29H850TU , F29H859TU-Q1
Sets up the flash state machine registers for the 512-bit (64 bytes) programming with user provided flash data and issues the programing command to valid Flash.
Fapi_StatusType Fapi_issueDataOnly512ProgrammingCommand(
uint32 *pu32StartAddress,
uint8 *pu8DataBuffer,
uint8 u8DataBufferSizeInBytes,
uint32 u32UserFlashConfig,
uint8 u8Iterator
)
| pu32StartAddress [in] | 1024-bit aligned flash address to program the provided data. |
| pu8DataBuffer [in] | Pointer to the Data buffer address. Data buffer can be 1024-bit aligned. |
| u8DataBufferSizeInBytes [in] | Number of 8-bit words in the Data buffer. Max Databuffer size in bytes can not exceed 64. |
| u32UserFlashConfig [in] | User flash configuration bitfield |
| u8Iterator [in] | Iterator for program and erase operations on
interleaved banks. 0: Data Flash/non-interleaved 1: B0 or B2 (dependent on provided address) 2: B1 or B3 (dependent on provided address) |
This function only programs the data portion in Flash at the address specified. It can program 512-bit data (Second parameter) at the user provided 512-bit aligned flash address. This function is used when a user application (that embed/use Flash API) has to program 512- bit of data and corresponding 64-bit of ECC data separately. 512-bit Data is programmed using Fapi_issueDataOnly512ProgrammingCommand () function and then the 64-bit ECC is programmed using Fapi_issueEccOnly64ProgrammingCommand() function. Generally, most of the programming utilities do not calculate ECC separately and instead use function Fapi_issueAutoEcc512ProgrammingCommand(). However, some Safety applications may require to insert intentional ECC errors in their Flash image (which is not possible when Fapi_AutoEccGeneration mode is used) to check the health of the Single Error Correction and Double Error Detection (SECDED) module at run time. In such case, ECC is calculated separately (using the Fapi_calculateEcc() function as applicable). Application may want to insert errors in either main array data or in the ECC as needed. In such scenarios, after the error insertion, Fapi_issueDataOnly512ProgrammingCommand() API and then the 64-bit ECC is programmed using Fapi_issueEccOnly64ProgrammingCommand() API can be used to program the data and ECC, respectively.
for allowed programming range for the function, see Table 3-5.
| Flash API | Main Array | ECC | BANKMGMT and SECCFG |
|---|---|---|---|
| Fapi_issueDataOnly512Pr ogrammingCommand() | Allowed | Not allowed | Not allowed |
(For more information, see the flash programming example provided in the F29H85x SDK at “f29h85x-sdk > examples > driverlib > single_core > flash > flash_mode0_512_program”)