Users may need to definite custom secure or
non-secure region in FLASH. This section shows how to modify range of secure or non-secure
FLASH in the example shown in Section 4.1.
- For SAU configuration, user should modify NON_SECURE_APP0_START and NON_SECURE_APP0_LEN
in config.h(in secure application) for non-secure FLASH. Users should also modify
SECURE_NSC_APP0_START and SECURE_NSC_APP0_LEN in config.h(in secure application) for
non-secure callable region. The following images show the setting for non-secure FLASH
from 0x00010000 to 0x0001FFFF and non-secure callable region from 0x0000F800 to
0x0000FFFF. See 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 FLASH on first 64KB(0x0-0x0FFFF) and non-secure FLASH on remaining
960KB(0x10000-0x7FFFF).
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 FLASH and non-secure callable FLASH.
Below is the setting for secure FLASH on first 30KB and non-secure callable FLASH on next
2KB.
- Modify cmd file in non-secure application for non-secure FLASH. Below is the setting for
non-secure FLASH(starting from 0x10000).