aboutsummaryrefslogtreecommitdiff
path: root/ports/nrf/boards/feather52/custom_nrf52832_dfu_app.ld
diff options
context:
space:
mode:
authorAyke van Laethem2017-11-13 22:27:50 +0100
committerDamien George2018-07-18 17:12:25 +1000
commitfcc15685465244525d60d45d9084ed1b8ccbeec5 (patch)
tree8c6ac9fecfb0743ff58881176c5e33989fa9de21 /ports/nrf/boards/feather52/custom_nrf52832_dfu_app.ld
parent83f38a99a9831203a9764986ed7fac8060a875dd (diff)
nrf/boards: Update linker scripts.
* Remove FLASH_ISR and merge .isr_vector into FLASH_TEXT. This saves some code space, especially on nRF52 devices. * Reserve space for nonvolatile storage of data. This is the place for a filesystem (to be added).
Diffstat (limited to 'ports/nrf/boards/feather52/custom_nrf52832_dfu_app.ld')
-rw-r--r--ports/nrf/boards/feather52/custom_nrf52832_dfu_app.ld10
1 files changed, 6 insertions, 4 deletions
diff --git a/ports/nrf/boards/feather52/custom_nrf52832_dfu_app.ld b/ports/nrf/boards/feather52/custom_nrf52832_dfu_app.ld
index de737e158..442ce19e2 100644
--- a/ports/nrf/boards/feather52/custom_nrf52832_dfu_app.ld
+++ b/ports/nrf/boards/feather52/custom_nrf52832_dfu_app.ld
@@ -3,12 +3,14 @@
*/
/* Specify the memory areas */
+/* Memory map: https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide/memory-map */
MEMORY
{
- FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x080000 /* entire flash, 512 KiB */
- FLASH_ISR (rx) : ORIGIN = 0x0001c000, LENGTH = 0x001000 /* sector 0, 4 KiB */
- FLASH_TEXT (rx) : ORIGIN = 0x0001c400, LENGTH = 0x026c00 /* 152 KiB - APP - ISR */
- RAM (xrw) : ORIGIN = 0x200039c0, LENGTH = 0x0c640 /* 49.5 KiB, give 8KiB headroom for softdevice */
+ FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 512K /* entire flash */
+ FLASH_TEXT (rx) : ORIGIN = 0x0001C000, LENGTH = 162K /* app */
+ FLASH_TEMP (rx) : ORIGIN = 0x00044800, LENGTH = 162K /* temporary storage area for DFU */
+ FLASH_USER (rx) : ORIGIN = 0x0006D000, LENGTH = 28K /* app data, filesystem */
+ RAM (xrw) : ORIGIN = 0x200039C0, LENGTH = 0x0C640 /* 49.5 KiB, give 8KiB headroom for softdevice */
}
/* produce a link error if there is not this amount of RAM for these sections */