From 5c26e15cd337dd6b9e2102d6ec013ed5e9279ecb Mon Sep 17 00:00:00 2001 From: adustm Date: Thu, 19 Jul 2018 16:29:13 +0200 Subject: [PATCH] Fix support of max flash size --- targets/TARGET_STM/qspi_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/TARGET_STM/qspi_api.c b/targets/TARGET_STM/qspi_api.c index 3f8d6037cf..cae46fe06a 100644 --- a/targets/TARGET_STM/qspi_api.c +++ b/targets/TARGET_STM/qspi_api.c @@ -35,8 +35,8 @@ #include "PeripheralPins.h" /* Max amount of flash size is 4Gbytes */ -/* hence 2^(31+1), then FLASH_SIZE_DEFAULT = 31<<20 */ -#define QSPI_FLASH_SIZE_DEFAULT 0x1F00000 +/* hence 2^(31+1), then FLASH_SIZE_DEFAULT = 1<<31 */ +#define QSPI_FLASH_SIZE_DEFAULT 0x80000000 void qspi_prepare_command(const qspi_command_t *command, QSPI_CommandTypeDef *st_command) {