SLAAEB4 april   2023 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3105 , MSPM0G3106 , MSPM0G3107 , MSPM0G3505 , MSPM0G3506 , MSPM0G3507 , MSPM0L1105 , MSPM0L1106 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346

 

  1.   Abstract
  2.   Trademarks
  3. 1Introduction
    1. 1.1 Difference Between EEPROM and On-Chip Flash
  4. 2Implementation
    1. 2.1 Principle
    2. 2.2 Header
  5. 3Software Description
    1. 3.1 Software Functionality and Flow
    2. 3.2 EEPROM Functions
      1. 3.2.1 Global Variables
      2. 3.2.2 EEPROM_TypeB_readDataItem
      3. 3.2.3 EEPROM_TypeB_findDataItem
      4. 3.2.4 EEPROM_TypeB_write
      5. 3.2.5 EEPROM_TypeB_transferDataItem
      6. 3.2.6 EEPROM_TypeB_eraseGroup
      7. 3.2.7 EEPROM_TypeB_init
    3. 3.3 Application Integration
    4. 3.4 EEPROM Emulation Memory Footprint
    5. 3.5 EEPROM Emulation Timing
  6. 4Application Aspects
    1. 4.1 Selection of Configurable Parameters
      1. 4.1.1 Number of Data Items
      2. 4.1.2 Cycling Capability
    2. 4.2 Recovery in Case of Power Loss
  7. 5References

Selection of Configurable Parameters

There are three user-configurable parameters in eeprom_emulation_type_b.h. These parameters can be configured accordingly, depending on the requirements of the application.

  • Number of groups: at least 2
  • Number of sectors in one group: at least 1
  • Sector address

When only the number of groups is configured, the change can be seen in Figure 4-1. When only the sectors in one group is configured, the change can be seen in Figure 4-2. Both configuration methods will increase the Flash area used, thereby increasing the cycling capability. But when configuring the number of groups, the maximum number of data items does not change. When configuring the number of sectors in one group, the maximum number of data items will change accordingly.

GUID-325DB855-1467-4F2B-B306-2FCED2C58BC6-low.png Figure 4-1 Change of Structure When Only the Number of Groups is Configured
GUID-FC68FDA1-EA25-448B-90C7-848B625EEEF3-low.png Figure 4-2 Change of Structure When Only the Sectors in One Group is Configured