summaryrefslogtreecommitdiff
path: root/chip/host/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/host/flash.c')
-rw-r--r--chip/host/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/host/flash.c b/chip/host/flash.c
index 9f79298d60..486c418065 100644
--- a/chip/host/flash.c
+++ b/chip/host/flash.c
@@ -14,7 +14,7 @@
#include "util.h"
/* This needs to be aligned to the erase bank size for NVCTR. */
-__aligned(CONFIG_FLASH_ERASE_SIZE) char __host_flash[CONFIG_FLASH_SIZE];
+__aligned(CONFIG_FLASH_ERASE_SIZE) char __host_flash[CONFIG_FLASH_SIZE_BYTES];
uint8_t __host_flash_protect[PHYSICAL_BANKS];
/* Override this function to make flash erase/write operation fail */