diff options
author | Tom Hughes <tomhughes@chromium.org> | 2020-05-18 14:49:43 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-30 05:16:45 +0000 |
commit | 5a2c16ee17339b96eef8351157673253738b461b (patch) | |
tree | 20c58304edca68e7ef2edda3b43bec402d49d725 /board/hatch_fp | |
parent | a832f50a83e6d897cf22f306b4e01da4ee40fe4e (diff) | |
download | chrome-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/hatch_fp')
-rw-r--r-- | board/hatch_fp/build.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/hatch_fp/build.mk b/board/hatch_fp/build.mk index eb5b8906c1..d2dc627789 100644 --- a/board/hatch_fp/build.mk +++ b/board/hatch_fp/build.mk @@ -16,6 +16,7 @@ test-list-y=\ compile_time_macros \ crc32 \ flash_physical \ + flash_write_protect \ mpu \ mutex \ pingpong \ |