SPRUJE7A January 2025 – July 2025 F29H850TU , F29H859TU-Q1
Verifies region specified against supplied data by byte
Fapi_StatusType Fapi_doVerifyByByte(
uint8_t *pu8StartAddress,
uint32_t u32Length,
uint8_t *pu8CheckValueBuffer,
Fapi_FlashStatusWordType *poFlashStatusWord,
uint8_t u8Iterator,
uint32_t u32UserFlashConfig
);
| pu32StartAddress [in] | start address for region to verify |
| u32Length [in] | length of region in bytes to verify |
| pu8CheckValueBuffer [in] | address of buffer to verify region against. Data buffer can be 128-bit aligned. |
| poFlashStatusWord [in/out] | returns the status of the operation if result is
not Fapi_Status_Success ->au32StatusWord[0] address of first verify failure location ->au32StatusWord[1] data read at first verify failure location ->au32StatusWord[2] value of compare data ->au32StatusWord[3] N/A |
| 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) |
| u32UserFlashConfig [in] | User flash configuration bitfield |
This function verifies the device against the supplied data starting at the specified address for the length of bytes specified. If a location fails to compare, these results are returned in the poFlashStatusWord parameter. When operating on interleaved banks, this function must be called twice (once with each iterator value, the start address stays the same).
Users cannot perform verification operations when in SSUMODE2 and SSUMODE3. If a user wants to perform a verify operation in SSUMODE2 or SSUMODE3, the user can provide the necessary read APR permissions. For details on SSU configuration, see the F29H85x and F29P58x Real-Time Microcontrollers Technical Reference Manual.
Please also note that Flash state machine also internally performs a verify operation after an erase/program pulse to validate the success of the operation. Successive program/program verify loops (or erase/erase verify loops) using the provided functions are done as needed to verify proper erase/programming. If the flash Wrapper state machines fail to completely program or erase all target bits in the flash within the number of program/erase pulses configured in the maximum pulse count setting, the FAILVERIFY bit is set in the STATCMD register.
None