Flash on TMS570 devices features an ECC functionality. The ECC area can be programmed automatically with values corresponding to downloaded data or you can provide your own ECC download data.
The option for automatic ECC generation is located in
Hardware | TI TMS570 | Configure | FLAGS Configuration:
To read from the ECC area, use 16-bit accesses via Debug | Configure Session | SoCs | Memory Regions
The internal flash programming monitor is made with the flash programming
library from TI. The library must be initialized with the correct CPU
frequency for proper timing generation. The value for the CPU frequency can
be set in Hardware | CPU Options | Debugging | CPU clock.
During the debug session the same value is used for download operations and for the memory writes through memory window. Use a initialization sequence to set the CPU clock to the final value before download, to be enable to make flash writes anytime.