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 | |
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')
-rw-r--r-- | board/hatch_fp/build.mk | 1 | ||||
-rw-r--r-- | board/nocturne_fp/build.mk | 1 | ||||
-rw-r--r-- | board/nucleo-f412zg/build.mk | 1 | ||||
-rw-r--r-- | board/nucleo-h743zi/build.mk | 1 |
4 files changed, 4 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 \ diff --git a/board/nocturne_fp/build.mk b/board/nocturne_fp/build.mk index b1ea0d27a2..a5a3f9d417 100644 --- a/board/nocturne_fp/build.mk +++ b/board/nocturne_fp/build.mk @@ -17,6 +17,7 @@ test-list-y=\ compile_time_macros \ crc32 \ flash_physical \ + flash_write_protect \ mpu \ mutex \ pingpong \ 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 \ diff --git a/board/nucleo-h743zi/build.mk b/board/nucleo-h743zi/build.mk index dae28a73a4..0583db6260 100644 --- a/board/nucleo-h743zi/build.mk +++ b/board/nucleo-h743zi/build.mk @@ -14,6 +14,7 @@ test-list-y=\ compile_time_macros \ crc32 \ flash_physical \ + flash_write_protect \ mpu \ mutex \ pingpong \ |