In bootloader I want check application flash ECC state before read & check CRC32. How I can check ECC for memory area?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
In bootloader I want check application flash ECC state before read & check CRC32. How I can check ECC for memory area?
Hi Vladimir,
I'm not very clear with your question. The ECC is memory mapped so you can read them. The question I have is that before the application image is programmed into the flash by the bootloader the ECC will still show their erased state. The ECC can be automatically programmed along with the program image when you select the Fapi_AutoEccGeneration parameter for the flash program command.
3.3.1 Fapi_issueProgrammingCommand()
Sets up data and issues program command to valid Flash memory addresses
Synopsis
Fapi_StatusType Fapi_issueProgrammingCommand(
uint32_t *pu32StartAddress,
uint8_t *pu8DataBuffer,
uint8_t u8DataBufferSizeInBytes,
uint8_t *pu8EccBuffer,
uint8_t u8EccBufferSizeInBytes,
Fapi_FlashProgrammingCommandType oMode)
Parameters
pu32StartAddress [in] start address in Flash for the data and ECC to be programmed
pu8DataBuffer [in] pointer to the Data buffer address
u8DataBufferSizeInBytes [in] number of bytes in the Data buffer
pu8EccBuffer [in] pointer to the ECC buffer address
u8EccBufferSizeInBytes [in] number of bytes in the ECC buffer
oMode [in] Indicates the programming mode to use:
Fapi_DataOnly Programs only the data buffer
Fapi_AutoEccGeneration Programs the data buffer and auto generates and programs the ECC.
Fapi_DataAndEcc Programs both the data and ECC buffers
Fapi_EccOnly Programs only the ECC buffer