SDAA228 September 2026 MSPM33C321A
The NONMAIN region also supports dynamic modification with the FLASHCTL, which is widely used in the application code and customized bootloader. Figure 5-1 and SDK example provide a generic flow for modifying the NONMAIN flash field in the application codes for user reference.
ECC is required to program with the NONMAIN memory, as the boot code reads the NONMAIN memory with an ECC check. Every NONMIAN register modification requires the user to erase the entire NONMAIN sector and load in the new value of the entire NONMAIN configuration register.
TI recommends erasing and programing the NONMAIN field in a safety state. Frequently updated NONMAIN configurations in the application code introduces the risk that the NONMAIN field becomes empty (unstable power supply, and so forth.).