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

Data Bank Protection

A region of flash DATA bank can be configured for read-write protection - either reads or writes or both types of accesses can be blocked. CPU, DMA and debugger accesses are all treated the same way. This is configured by writing to the SYSCTL.SECCFG.FWPROTMAINDATA register. Only the first 4KB of the DATA bank can be protected at a sector (1KB) granularity. Each sector can be configured as below:
  • 0b00: Both Read/Write allowed.
  • 0b01: Read Only.
  • 0b10: No Read No Write.
  • 0b11: No Read No Write - Not Used.
Table 5-1 FWPROTMAINDATA Field Descriptions
Bit Field Type Reset Description
31-8 RESERVED R 0h
7-6 DATA R/W 0h Sector 3 protection configuration
5-4 DATA R/W 0h Sector 2 protection configuration
3-2 DATA R/W 0h Sector 1 protection configuration
1-0 DATA R/W 0h Sector 0 protection configuration