diff options
author | Tom Hughes <tomhughes@chromium.org> | 2019-07-02 16:53:45 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-07-24 01:54:09 +0000 |
commit | 6f994b8e3ac868ffb1fba35473c753e65dcd1b5e (patch) | |
tree | 445179be58aa1bb824166c4d4ca84c87c600b42a /include | |
parent | dd03af6a9a56a1aed1ebe1a591caac2fa699bd52 (diff) | |
download | chrome-ec-6f994b8e3ac868ffb1fba35473c753e65dcd1b5e.tar.gz |
hatch_fp: Add RDP (read protection) support to STM32F4
BRANCH=none
BUG=b:125419658
TEST=Remove "-U" flag in STM32MON_READ_FLAGS in flash_fp_mcu_common.sh
flash_fp_mcu -r foo.bin => success
hexdump foo.bin => valid data
ectool --name=cros_fp flashprotect enable
ectool --name=cros_fp reboot_ec
flash_fp_mcu -r foo.bin => fails
Add "-U" flag back to STM32MON_READ_FLAGS in flash_fp_mcu_common.sh
flash_fp_mcu -r foo.bin => success
hexdump foo.bin => all 0xFF
Change-Id: Ic3ec18262e653b72baf239caa8db12186a63613c
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1692220
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/config.h b/include/config.h index 14670e0be6..d1a4dfc8d0 100644 --- a/include/config.h +++ b/include/config.h @@ -1677,7 +1677,7 @@ * could allow protected regions readback. * * TODO(crbug.com/888109): Implementation is currently only available on - * STM32H7, and requires more documentation. + * STM32H7 and STM32F4, and requires more documentation. */ #undef CONFIG_FLASH_READOUT_PROTECTION_AS_PSTATE @@ -4748,8 +4748,8 @@ #error "Flash readout protection and PSTATE may not work as intended." #endif -#ifndef CHIP_FAMILY_STM32H7 -#error "Flash readout protection only implemented on STM32H7." +#if !defined(CHIP_FAMILY_STM32H7) && !defined(CHIP_FAMILY_STM32F4) +#error "Flash readout protection only implemented on STM32H7 and STM32F4." #endif #endif /* CONFIG_FLASH_READOUT_PROTECTION_AS_PSTATE */ |