From 7848b1dacc2214fade2b85b5fcdd8bd3c909628c Mon Sep 17 00:00:00 2001 From: Peter van der Perk Date: Sun, 29 Jun 2025 14:34:45 +0200 Subject: [PATCH] tropic-community: Don't use last 4kB of flash for storage --- boards/nxp/tropic-community/src/imxrt_flexspi_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/nxp/tropic-community/src/imxrt_flexspi_storage.c b/boards/nxp/tropic-community/src/imxrt_flexspi_storage.c index 4bc5b58c15..567d502967 100644 --- a/boards/nxp/tropic-community/src/imxrt_flexspi_storage.c +++ b/boards/nxp/tropic-community/src/imxrt_flexspi_storage.c @@ -50,7 +50,7 @@ #define NOR_TOTAL_SECTORS (0x0800U) #define NOR_PAGE_SIZE (0x0100U) /* 256 bytes */ #define NOR_SECTOR_SIZE (0x1000U) /* 4KB */ -#define NOR_START_SECTOR (NOR_TOTAL_SECTORS - NOR_USED_SECTORS) +#define NOR_START_SECTOR (NOR_TOTAL_SECTORS - NOR_USED_SECTORS - 1) /* Don't use the last 4kB somehow this gives trouble */ #define NOR_START_PAGE ((NOR_START_SECTOR * NOR_SECTOR_SIZE) / NOR_PAGE_SIZE) #define NOR_STORAGE_ADDR (IMXRT_FLEXCIPHER_BASE + NOR_START_SECTOR * NOR_SECTOR_SIZE) #define NOR_STORAGE_END (IMXRT_FLEXCIPHER_BASE + (NOR_START_SECTOR + NOR_TOTAL_SECTORS) * NOR_SECTOR_SIZE)