Other Parts Discussed in Thread: TMS570LC4357,
Hello TI engineer:
The bootloader uses the F021 flash library to program or erase the flash.
When I finished erasing a flash location, we don't see all locations have 0xFF's, some other bits in the erase flash locations are zeros.
I understand that it could be due to the flash ECC issue but not sure which function to call for enabling ECC or autogenerate ECC when erasing flash using the F021 library.
In bootloader program, I used API Fapi_issueAsyncCommandWithAddress(,FlashStartAddress) to earse the flash, and API Fapi_issueProgrammingCommand(, , ,NULL,0u,Fapi_AutoEccGeneration) to program the flash.
I don't program all the sector of flash, but I CRC check the entire flash. So when the address can be programmed, the value isn't 0xff. And CRC check found fault.
Please let me know if how can I solve the problem.