PDS Configuration

PDS is enabled in the project files by default. The ENABLE_PDS macro is used for enabling and disabling PDS module. RWW section of SAM R34 SiP is used for storing PDS data.

Perform the following steps to enable RWW section in SAM R34:

  1. 1.Configure EEPROM_SIZE macro in conf_nvm.h in configuration folder.
  2. 2.By default, EEPROM_SIZE is configured as 8192 (8K).
  3. 3.Based on the requirement of application size, RWW section can be increased, if required.
  4. 4.MLS stack requires 4096 (4K) memory for storing PDS data in RWW section.
  5. 5.SAM R34 RWW section allows 4, 8, and 16K memory configuration.
  6. 6.The user must to enable RWW section of SAM R34 using fuse settings from Atmel Studio.
  7. 7.In the fuse settings, USER_WORD_0.NVMCTRL_EEPROM_SIZE setting needs to be updated based on the EEPROM_SIZE macro.
Figure 1. Configuring EEPROM

Table 1. EEPROM Field Value and Row and Size Allocation
EEPROM [2:0] Rows Allocated to EEPROM EEPROM Size in Bytes
7 None 0
6 1 256
5 2 512
4 4 1024
3 8 2048
2 16 4096
1 32 8192
0 64 16384
Note: The RWW section must be enabled for each SAM R34 board. By default, the RWW section is disabled in SAM R34. Before flashing firmware into the SAM R34, enable the RWW section in Tools > Device Programming > Fuses and change the USER_WORD_0.NVMCTRL_EEPROM_SIZE fuse value to one of the above table values based on the EEPROM_SIZE configured in the project.