tropic-community: Don't use last 4kB of flash for storage

This commit is contained in:
Peter van der Perk
2025-06-29 14:34:45 +02:00
parent 6e0d744c51
commit 7848b1dacc
@@ -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)