boards: arm: lpcxpresso55s69: Disable flash access for NS
When using the LPC55S69 with TF-M, the ROM-based flash controller is restricted to the secure processing environment to prevent NS access to flash memory. Any access to the flash controller will cause a secure fault, and the NS application will halt execution. This commit disables access to the IAP flash peripheral when using the lpcxpresso55s69_ns target, enabling TF-M to restrict IAP access to the secure side. Signed-off-by: Kevin Townsend <kevin.townsend@linaro.org>
This commit is contained in:
parent
77ebfa9b60
commit
f5c6afeccb
2 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,7 @@ config UART_MCUX_FLEXCOMM
|
||||||
config SOC_FLASH_MCUX
|
config SOC_FLASH_MCUX
|
||||||
default y
|
default y
|
||||||
depends on FLASH
|
depends on FLASH
|
||||||
|
depends on !TRUSTED_EXECUTION_NONSECURE
|
||||||
|
|
||||||
config WDT_MCUX_WWDT
|
config WDT_MCUX_WWDT
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -50,8 +50,10 @@ static ALWAYS_INLINE void clock_init(void)
|
||||||
/* Enable FRO HF(96MHz) output */
|
/* Enable FRO HF(96MHz) output */
|
||||||
CLOCK_SetupFROClocking(96000000U);
|
CLOCK_SetupFROClocking(96000000U);
|
||||||
|
|
||||||
|
#if defined(CONFIG_SOC_FLASH_MCUX)
|
||||||
/*!< Set FLASH wait states for core */
|
/*!< Set FLASH wait states for core */
|
||||||
CLOCK_SetFLASHAccessCyclesForFreq(96000000U);
|
CLOCK_SetFLASHAccessCyclesForFreq(96000000U);
|
||||||
|
#endif
|
||||||
|
|
||||||
/*!< Set up dividers */
|
/*!< Set up dividers */
|
||||||
CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U, false);
|
CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U, false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue