35.5.6 Scrambling/Unscrambling Function
The external data bus can be scrambled in order to prevent intellectual property data located in off-chip memories from being easily recovered by analyzing data at the package pin level of either the microcontroller or the memory device.
The scrambling and unscrambling are performed on-the-fly without additional wait states.
The scrambling method depends on two user-configurable key registers, KEY1 in the “MPDDRC OCMS KEY1 Register” and KEY2 in the “MPDDRC OCMS KEY2 Register”. These key registers are only accessible in Write mode.
The key must be securely stored in a reliable non-volatile memory in order to recover data from the off-chip memory. Any data scrambled with a given key cannot be recovered if the key is lost.
The scrambling/unscrambling function can be enabled or disabled by programming the “MPDDRC OCMS Register”.