SPRADN2 January   2025 MSPM0G1518 , MSPM0G1519 , MSPM0G3518 , MSPM0G3519 , MSPM0L1227 , MSPM0L1228 , MSPM0L2227 , MSPM0L2228

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Nonvolatile Memory (NVM) Basic Introduction
    1. 1.1 Flash Memory Protection
  5. 2Customer Secure Code (CSC) Introduction
    1. 2.1 CSC Execution Overview
    2. 2.2 CSC Memory Maps
    3. 2.3 CSC Execution Process
  6. 3Bank Swap Example Implementation
    1. 3.1 CSC Code Project Preparation
      1. 3.1.1 Enable CSC in NONMAIN
      2. 3.1.2 Implementation of CSC Application Code - Bank Swap Feature
    2. 3.2 Application Code Project Preparation
  7. 4Common Use Case Introduction
  8. 5Data Bank Introduction
    1. 5.1 Data Bank Protection
    2. 5.2 Data Bank Erase Write Operation
  9. 6Summary
  10. 7References

Enable CSC in NONMAIN

Start with an empty project. Open Sysconfig and check the boxes for Enable CSC Policy and Enable Flash Bank Swap Policy in Configuration NVM (NONMAIN).

 NONMAIN Configuration To
                    Enable CSC Policy Figure 3-1 NONMAIN Configuration To Enable CSC Policy

Save the NONMAIN configuration and program the MCU with new NONMAIN information. TI recommends to program the NONMAIN alone. For security purposes, MSPM0 devices require a valid Configuration NVM (NONMAIN) at all times. When updating Configuration NVM, the old Configuration NVM configuration is erased, and the new configuration is programmed. Any interruption during the erase or re-program operations (that is, unplugging device, removing SWD jumpers, hitting reset by accident, canceling the code download, an IDE crash, and so forth) can brick the device permanently. Improper configuration of Configuration NVM can also lead to permanent locking of the device.

Change the erase configuration in project -> Properties -> Debug -> MSPM0 Flash Settings -> Erase method choose Erase MAIN and NONMAIN memory (see warning above). This setting allows customers to erase the NONMAIN and program with new configurations. This takes similar steps for other IDE or programmer tools to enable erase NONMAIN setting to program the NONMAIN configuration to the chip.

 Erase Method
                    Configuration Figure 3-2 Erase Method Configuration