1.4.13.11 1.38.13.11 NVMCTRL_DataScrambleEnable Function

C

void NVMCTRL_DataScrambleEnable ( bool enable )

Summary

Enable or Disable data scrambling of the Secure Data Flash

Description

This function is used to Enable or Disable data scrambling of the Secure Data Flash. When Data Flash scrambling is enabled, address and data in the secure portion of the Data Flash are scrambled when written, and de-scrambled when read.

Precondition

None

Parameters

Param Description
enable true for enabling data scramble and false for disabling data scramble.

Returns

None.

Example

// Enable Data Scrambling
NVMCTRL_DataScrambleEnable(true);

Remarks

This NVMCTRL_DataScrambleEnable() function is only available in trustZone supported devices.