summaryrefslogtreecommitdiff
path: root/board/nucleo-f412zg
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2020-05-18 14:49:43 -0700
committerCommit Bot <commit-bot@chromium.org>2020-05-30 05:16:45 +0000
commit5a2c16ee17339b96eef8351157673253738b461b (patch)
tree20c58304edca68e7ef2edda3b43bec402d49d725 /board/nucleo-f412zg
parenta832f50a83e6d897cf22f306b4e01da4ee40fe4e (diff)
downloadchrome-ec-5a2c16ee17339b96eef8351157673253738b461b.tar.gz
test: Add test for flash write protection
This test demonstrates the inconsistency between STM32H743 (dartmonkey) and STM32F412 (bloonchipper). BRANCH=none BUG=b:155897971 TEST=On bloonchipper after flashing flash_write_protect.bin test: * Enable HW WP: dut-control fw_wp_en:on * Reboot to RO: reboot ro * Enable flash protection: runtest 1 => PASS * Reboot to RO: reboot ro * Try to disable flash protection: runtest 2 => FAIL TEST=On dartmonkey after flashing flash_write_protect.bin test: * Enable HW WP: dut-control fw_wp_en:on * Reboot to RO: reboot ro * Enable flash protection: runtest 1 => PASS * Reboot to RO: reboot ro * Try to disable flash protection: runtest 2 => PASS Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I6eb69257f84f79a6609984efbdad7dd37803c8f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2209419 Commit-Queue: Yicheng Li <yichengli@chromium.org> Tested-by: Yicheng Li <yichengli@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/nucleo-f412zg')
-rw-r--r--board/nucleo-f412zg/build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/nucleo-f412zg/build.mk b/board/nucleo-f412zg/build.mk
index ed320938b0..e3923e4b91 100644
--- a/board/nucleo-f412zg/build.mk
+++ b/board/nucleo-f412zg/build.mk
@@ -14,6 +14,7 @@ test-list-y=\
compile_time_macros \
crc32 \
flash_physical \
+ flash_write_protect \
mpu \
mutex \
pingpong \