According to the TI safety manual, I understood
1. SRAM ECC can be enabled by setting B1TCMPCEN and B0TCMPCEN bits of the System control coprocessor’s Auxiliary control register, c1
2. PFlash ECC can be enabled by setting the ATCMPCEN bit of the System control coprocessor’s Auxiliary control register, c1.
I found some assembly code snippets for accessing Auxiliary control register, c1.
Since we are using C-language in our project, so kindly share the details on how to use C-language to access Auxiliary control register, c1?