From 75efd78a59486cbcfb111ef314bafca67bc8d993 Mon Sep 17 00:00:00 2001 From: Daisuke Nojiri Date: Wed, 28 Jun 2017 16:07:02 -0700 Subject: [PATCH] eCTS: Expedite flashing time eCTS tests are small. We can use smaller flash size to expedite tests. This patch reduces flashing time for stm32l476 from 24 sec to 6 sec. BUG=chromium:736020 BRANCH=none TEST=python util/run_ects.py Change-Id: I829ee2c947664f2d7ed373f52ff336e9a9580817 Signed-off-by: Daisuke Nojiri Reviewed-on: https://chromium-review.googlesource.com/553580 Reviewed-by: Randall Spangler --- board/stm32l476g-eval/board.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/board/stm32l476g-eval/board.h b/board/stm32l476g-eval/board.h index 12a83fc8fb..4b8033207b 100644 --- a/board/stm32l476g-eval/board.h +++ b/board/stm32l476g-eval/board.h @@ -8,6 +8,12 @@ #ifndef __CROS_EC_BOARD_H #define __CROS_EC_BOARD_H +#ifdef CTS_MODULE +/* CTS tests are small. We can use smaller size to expedite flash time. */ +#undef CONFIG_FLASH_SIZE +#define CONFIG_FLASH_SIZE 0x00040000 /* 256k */ +#endif + /* Optional features */ #undef CONFIG_WATCHDOG_HELP #undef CONFIG_LID_SWITCH