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