User may need to definite custom secure or
non-secure region in SRAM. This section shows how to modify range of
secure or non-secure SRAM in the example showed in Section 4.1.
- For SAU configuration, user should modify
NON_SECURE_APP0_SRAM_START and NON_SECURE_APP0_SRAM_LEN in
config.h(in secure application) for non-secure SRAM. Below
is the setting for non-secure SRAM from 0x20020000 to
0x2003FFFF. Please refer to Section 3.2.2
for the details on configuration.
- For GSC configuration, user should modify sysconfig(in secure
application). Below is the setting for secure SRAM on first
128KB(0x0-0x1FFFF) and non-secure SRAM on remaining
128KB(0x20000-0x3FFFF)
Note: Typically security attribution setting is same in
SAU configuration and GSC configuration. If two
configurations are different, please refer to
Section 2.2.4
for the final security attribution.
- Modify cmd file in secure application for secure SRAM. Below is
the setting for secure SRAM on first 128KB.
- Modify cmd file in non-secure application for non-secure SRAM.
The following image is the setting for non-secure SRAM on
the remaining 128KB.