Home
last modified time | relevance | path

Searched refs:flash_option_bytes_bank1 (Results 1 – 3 of 3) sorted by relevance

/trusted-firmware-m-latest/platform/ext/target/stm/common/stm32l5xx/bl2/
Dtfm_low_level_security.c135 static FLASH_OBProgramInitTypeDef flash_option_bytes_bank1 = {0}; in TFM_LL_SECU_CheckStaticProtections() local
156 flash_option_bytes_bank1.WRPArea = OB_WRPAREA_BANK1_AREAA; in TFM_LL_SECU_CheckStaticProtections()
157 flash_option_bytes_bank1.WMSecConfig = OB_WMSEC_AREA1; in TFM_LL_SECU_CheckStaticProtections()
158 flash_option_bytes_bank1.BootAddrConfig = OB_BOOTADDR_SEC0; in TFM_LL_SECU_CheckStaticProtections()
159 HAL_FLASHEx_OBGetConfig(&flash_option_bytes_bank1); in TFM_LL_SECU_CheckStaticProtections()
168 flash_option_bytes_bank1.OptionType = 0; in TFM_LL_SECU_CheckStaticProtections()
171 flash_option_bytes_bank1.WRPArea = 0; in TFM_LL_SECU_CheckStaticProtections()
175 if ((flash_option_bytes_bank1.USERConfig & FLASH_OPTR_TZEN) != FLASH_OPTR_TZEN) in TFM_LL_SECU_CheckStaticProtections()
182 if ((flash_option_bytes_bank1.USERConfig & FLASH_OPTR_DBANK) != FLASH_OPTR_DBANK) in TFM_LL_SECU_CheckStaticProtections()
189 if (flash_option_bytes_bank1.BootAddr != SBSFU_BOOT_VTOR_ADDR) in TFM_LL_SECU_CheckStaticProtections()
[all …]
/trusted-firmware-m-latest/platform/ext/target/stm/common/stm32u5xx/bl2/
Dlow_level_security.c581 static FLASH_OBProgramInitTypeDef flash_option_bytes_bank1 = {0}; in LL_SECU_CheckStaticProtections() local
602 flash_option_bytes_bank1.WRPArea = OB_WRPAREA_BANK1_AREAA; in LL_SECU_CheckStaticProtections()
603 flash_option_bytes_bank1.WMSecConfig = OB_WMSEC_AREA1; in LL_SECU_CheckStaticProtections()
604 flash_option_bytes_bank1.BootAddrConfig = OB_BOOTADDR_SEC0; in LL_SECU_CheckStaticProtections()
605 HAL_FLASHEx_OBGetConfig(&flash_option_bytes_bank1); in LL_SECU_CheckStaticProtections()
614 flash_option_bytes_bank1.OptionType = 0; in LL_SECU_CheckStaticProtections()
617 flash_option_bytes_bank1.WRPArea = 0; in LL_SECU_CheckStaticProtections()
621 if ((flash_option_bytes_bank1.USERConfig & FLASH_OPTR_TZEN) != FLASH_OPTR_TZEN) in LL_SECU_CheckStaticProtections()
628 if ((flash_option_bytes_bank1.USERConfig & FLASH_OPTR_DUALBANK) != FLASH_OPTR_DUALBANK) in LL_SECU_CheckStaticProtections()
635 if ((flash_option_bytes_bank1.USERConfig & FLASH_OPTR_SWAP_BANK) != 0) in LL_SECU_CheckStaticProtections()
[all …]
/trusted-firmware-m-latest/platform/ext/target/stm/common/stm32h5xx/bl2/
Dlow_level_security.c693 static FLASH_OBProgramInitTypeDef flash_option_bytes_bank1 = {0}; in LL_SECU_CheckStaticProtections() local
704 flash_option_bytes_bank1.Banks = FLASH_BANK_1; in LL_SECU_CheckStaticProtections()
705 flash_option_bytes_bank1.BootConfig = OB_BOOT_SEC; in LL_SECU_CheckStaticProtections()
706 HAL_FLASHEx_OBGetConfig(&flash_option_bytes_bank1); in LL_SECU_CheckStaticProtections()
714 flash_option_bytes_bank1.OptionType = 0; in LL_SECU_CheckStaticProtections()
719 if ((flash_option_bytes_bank1.USERConfig2 & FLASH_OPTSR2_TZEN) != OB_TZEN_ENABLE) in LL_SECU_CheckStaticProtections()
727 if ((flash_option_bytes_bank1.USERConfig & FLASH_OPTSR_SWAP_BANK) != 0) in LL_SECU_CheckStaticProtections()
735 if ((flash_option_bytes_bank1.USERConfig & FLASH_OPTSR_BOOT_UBE) != OB_UBE_ST_IROT) in LL_SECU_CheckStaticProtections()
737 if ((flash_option_bytes_bank1.USERConfig & FLASH_OPTSR_BOOT_UBE) != OB_UBE_OEM_IROT) in LL_SECU_CheckStaticProtections()
746 if (flash_option_bytes_bank1.BootAddr != BL2_BOOT_VTOR_ADDR) in LL_SECU_CheckStaticProtections()
[all …]