TMS320F280049C: Generate ECC and detect the error

Part Number: TMS320F280049C

I want to use the relevant functions in flashAPI to generate ECC for the three numbers written to the flash sector, and make some modifications by using the Fapi.ssueProgrammingCommand function and Fapi.AutoEccGeneration programming mode, combined with TI routines. How can I read the generated ECC, change a number, use ECC function to detect and correct errors? Given the three simple numbers written to a sector as shown in the following figure, how to implement this function when flash data cannot be overwritten, or how to use ECC testing mode to test whether ECC has been generated, as stated in the official documentation here.