From cbae02676e20c249a106b8750b12c7f1af9e2053 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Fri, 25 Aug 2023 19:25:23 -0700 Subject: [PATCH] flash layout --- firmware/hw_layer/openblt/flash_layout.c | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/firmware/hw_layer/openblt/flash_layout.c b/firmware/hw_layer/openblt/flash_layout.c index d73189314e..ac0ea2b226 100644 --- a/firmware/hw_layer/openblt/flash_layout.c +++ b/firmware/hw_layer/openblt/flash_layout.c @@ -8,19 +8,19 @@ static const tFlashSector flashLayout[] = * interfaces enabled. when for example only UART is needed, then the space required * for the bootloader can be made a lot smaller here. */ - /* { 0x08000000, 0x04000, 0 }, flash sector 0 - reserved for bootloader */ - /* { 0x08004000, 0x04000, 1 }, flash sector 1 - reserved for bootloader */ - { 0x08008000, 0x08000, 2}, /* flash sector 2 - 16kb */ - { 0x0800c000, 0x08000, 3}, /* flash sector 3 - 16kb */ - { 0x08010000, 0x10000, 4}, /* flash sector 4 - 64kb */ - { 0x08020000, 0x20000, 5}, /* flash sector 5 - 128kb */ - { 0x08040000, 0x20000, 6}, /* flash sector 6 - 128kb */ - { 0x08060000, 0x20000, 7}, /* flash sector 7 - 128kb */ -#if (BOOT_NVM_SIZE_KB > 1024) - { 0x08080000, 0x20000, 8}, /* flash sector 8 - 128kb */ - { 0x080a0000, 0x20000, 9}, /* flash sector 9 - 128kb */ - { 0x080c0000, 0x20000, 10}, /* flash sector 10 - 128kb */ - { 0x080e0000, 0x20000, 11}, /* flash sector 11 - 128kb */ +/*{ 0x08000000, 16 * 1024, 0 }, flash sector 0 - 16kb - reserved for OpenBLT */ +/*{ 0x08004000, 16 * 1024, 1 }, flash sector 1 - 16kb - reserved for OpenBLT */ + { 0x08008000, 16 * 1024, 2 }, /* flash sector 2 - 16kb */ + { 0x0800c000, 16 * 1024, 3 }, /* flash sector 3 - 16kb */ + { 0x08010000, 64 * 1024, 4 }, /* flash sector 4 - 64kb */ + { 0x08020000, 128 * 1024, 5 }, /* flash sector 5 - 128kb */ + { 0x08040000, 128 * 1024, 6 }, /* flash sector 6 - 128kb */ + { 0x08060000, 128 * 1024, 7 }, /* flash sector 7 - 128kb */ +#if (BOOT_NVM_SIZE_KB > 512) + { 0x08080000, 128 * 1024, 8 }, /* flash sector 8 - 128kb */ + { 0x080a0000, 128 * 1024, 9 }, /* flash sector 9 - 128kb */ + { 0x080c0000, 128 * 1024, 10}, /* flash sector 10 - 128kb */ + { 0x080e0000, 128 * 1024, 11}, /* flash sector 11 - 128kb */ #endif /* Bank #2 is not defined */ #if (BOOT_NVM_SIZE_KB > 2048)