From 6ab0106af37abf65bdc9e41912d7e8a46db9bd8d Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Tue, 20 Oct 2020 13:12:38 +0200 Subject: [PATCH] nrf: fix nrf52832 flash size I've accidentally specified just half of the available flash in the linker script. This change fixes that. There is in fact a 256kB version of the nrf52832, but it also has 32kB of RAM so if you had used that it wouldn't actually work right now. Also, extending the available flash should not affect existing programs (as I haven't seen any run into size limitations yet). --- targets/nrf52-s132v6.ld | 2 +- targets/nrf52.ld | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/nrf52-s132v6.ld b/targets/nrf52-s132v6.ld index febac474..82175d2a 100644 --- a/targets/nrf52-s132v6.ld +++ b/targets/nrf52-s132v6.ld @@ -1,7 +1,7 @@ MEMORY { - FLASH_TEXT (rw) : ORIGIN = 0x00000000 + 0x00026000 , LENGTH = 256K - 0x00026000 /* .text */ + FLASH_TEXT (rw) : ORIGIN = 0x00000000 + 0x00026000 , LENGTH = 512K - 0x00026000 /* .text */ RAM (xrw) : ORIGIN = 0x20000000 + 0x000039c0, LENGTH = 64K - 0x000039c0 } diff --git a/targets/nrf52.ld b/targets/nrf52.ld index a388cf7e..6d573993 100644 --- a/targets/nrf52.ld +++ b/targets/nrf52.ld @@ -1,7 +1,7 @@ MEMORY { - FLASH_TEXT (rw) : ORIGIN = 0x00000000, LENGTH = 256K /* .text */ + FLASH_TEXT (rw) : ORIGIN = 0x00000000, LENGTH = 512K /* .text */ RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K }