1.38.13.12 NVMCTRL_DataScrambleKeySet Function

C

void NVMCTRL_DataScrambleKeySet ( uint32_t dsckey )

Summary

Sets the key for data scrambling of the Secure Data Flash

Description

This function is used to set the key for data scrambling of the Secure Data Flash.

Precondition

Data scrambling has to be disabled using NVMCTRL_DataScrambleEnable() function before calling this function to set the key.

Parameters

Param Description
dsckey Data Scramble Key.

Returns

None.

Example

// Disable Data Scrambling
NVMCTRL_DataScrambleEnable(false);

NVMCTRL_DataScrambleKeySet(0x123456);

Remarks

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