diff --git a/build/tools/amebasmart/gnu_utility/bl32.bin b/build/tools/amebasmart/gnu_utility/bl32.bin index 88f4b762c5..994c6fa22c 100644 Binary files a/build/tools/amebasmart/gnu_utility/bl32.bin and b/build/tools/amebasmart/gnu_utility/bl32.bin differ diff --git a/os/board/rtl8730e/src/component/file_system/ftl/ftl.c b/os/board/rtl8730e/src/component/file_system/ftl/ftl.c index 41b85ce6b2..2207cbdab0 100755 --- a/os/board/rtl8730e/src/component/file_system/ftl/ftl.c +++ b/os/board/rtl8730e/src/component/file_system/ftl/ftl.c @@ -132,7 +132,7 @@ uint16_t read_mapping_table(uint16_t logical_addr); #endif /* Flash Status Bit */ -#define FLASH_STATUS_BITS 0x2c +#define FLASH_STATUS_BITS 0x28 //Protect Lower 512KB uint32_t backup_state = 0; static void ftl_setstatusbits(uint32_t NewState) diff --git a/os/se/ameba/rtl_security_api_wrapper_tz.c b/os/se/ameba/rtl_security_api_wrapper_tz.c index 3495d01479..fd6a14ef59 100644 --- a/os/se/ameba/rtl_security_api_wrapper_tz.c +++ b/os/se/ameba/rtl_security_api_wrapper_tz.c @@ -33,8 +33,16 @@ typedef struct { void (*info_printf)(const char *); } nsfunc_ops_s; -/* Flash Status Bit */ +/* Flash Status Bit Protect Lower 512KB */ +#ifdef CONFIG_AMEBAD_TRUSTZONE #define FLASH_STATUS_BITS 0x2c +#endif +#ifdef CONFIG_AMEBALITE_TRUSTZONE +#define FLASH_STATUS_BITS 0x2c +#endif +#ifdef CONFIG_AMEBASMART_TRUSTZONE +#define FLASH_STATUS_BITS 0x28 +#endif nsfunc_ops_s ns_func;