From ae64129c4705ede94ea4480d2ebf4c0fb76ffff1 Mon Sep 17 00:00:00 2001 From: ccli8 Date: Fri, 8 Jun 2018 11:17:14 +0800 Subject: [PATCH] Change secure flash/SRAM to 256KB/32KB as default This is to compilant with CMSIS pack. --- .../device/TOOLCHAIN_ARM_MICRO/partition_M2351_sub.h | 4 ++-- .../device/TOOLCHAIN_ARM_STD/partition_M2351_sub.h | 4 ++-- .../device/TOOLCHAIN_GCC_ARM/partition_M2351_sub.h | 4 ++-- .../TARGET_M2351/device/TOOLCHAIN_IAR/partition_M2351_sub | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_ARM_MICRO/partition_M2351_sub.h b/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_ARM_MICRO/partition_M2351_sub.h index ffe2057d64..221c09d1c6 100644 --- a/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_ARM_MICRO/partition_M2351_sub.h +++ b/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_ARM_MICRO/partition_M2351_sub.h @@ -14,8 +14,8 @@ /* Secure flash size: 256 KB */ #define NU_TZ_SECURE_FLASH_SIZE 0x40000 -/* Secure SRAM size: 24 KB */ -#define NU_TZ_SECURE_SRAM_SIZE 0x6000 +/* Secure SRAM size: 32 KB */ +#define NU_TZ_SECURE_SRAM_SIZE 0x8000 /* NSC region size: 4 KB */ #define NU_TZ_NSC_REGION_SIZE 0x1000 diff --git a/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_ARM_STD/partition_M2351_sub.h b/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_ARM_STD/partition_M2351_sub.h index ffe2057d64..221c09d1c6 100644 --- a/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_ARM_STD/partition_M2351_sub.h +++ b/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_ARM_STD/partition_M2351_sub.h @@ -14,8 +14,8 @@ /* Secure flash size: 256 KB */ #define NU_TZ_SECURE_FLASH_SIZE 0x40000 -/* Secure SRAM size: 24 KB */ -#define NU_TZ_SECURE_SRAM_SIZE 0x6000 +/* Secure SRAM size: 32 KB */ +#define NU_TZ_SECURE_SRAM_SIZE 0x8000 /* NSC region size: 4 KB */ #define NU_TZ_NSC_REGION_SIZE 0x1000 diff --git a/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_GCC_ARM/partition_M2351_sub.h b/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_GCC_ARM/partition_M2351_sub.h index ffe2057d64..221c09d1c6 100644 --- a/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_GCC_ARM/partition_M2351_sub.h +++ b/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_GCC_ARM/partition_M2351_sub.h @@ -14,8 +14,8 @@ /* Secure flash size: 256 KB */ #define NU_TZ_SECURE_FLASH_SIZE 0x40000 -/* Secure SRAM size: 24 KB */ -#define NU_TZ_SECURE_SRAM_SIZE 0x6000 +/* Secure SRAM size: 32 KB */ +#define NU_TZ_SECURE_SRAM_SIZE 0x8000 /* NSC region size: 4 KB */ #define NU_TZ_NSC_REGION_SIZE 0x1000 diff --git a/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_IAR/partition_M2351_sub b/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_IAR/partition_M2351_sub index 27163b8769..218a73b8ba 100644 --- a/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_IAR/partition_M2351_sub +++ b/targets/TARGET_NUVOTON/TARGET_M2351/device/TOOLCHAIN_IAR/partition_M2351_sub @@ -3,8 +3,8 @@ /* Secure flash size: 256 KB */ define exported symbol NU_TZ_SECURE_FLASH_SIZE = 0x40000 -/* Secure SRAM size: 24 KB */ -define exported symbol NU_TZ_SECURE_SRAM_SIZE = 0x6000 +/* Secure SRAM size: 32 KB */ +define exported symbol NU_TZ_SECURE_SRAM_SIZE = 0x8000 /* NSC region size: 4 KB */ define exported symbol NU_TZ_NSC_REGION_SIZE = 0x1000