From 71303a38e698000a33dbdb59837156c93596582e Mon Sep 17 00:00:00 2001 From: imi415 Date: Thu, 17 Sep 2020 01:04:10 +0800 Subject: [PATCH] Added _xxAC version linker script. --- nrf51_xxac_softdevice.ld | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 nrf51_xxac_softdevice.ld diff --git a/nrf51_xxac_softdevice.ld b/nrf51_xxac_softdevice.ld new file mode 100644 index 0000000..6ac4314 --- /dev/null +++ b/nrf51_xxac_softdevice.ld @@ -0,0 +1,28 @@ +/* Linker script to configure memory regions. */ + +SEARCH_DIR(.) +GROUP(-lgcc -lc -lnosys) + +MEMORY +{ + FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x25000 /* --- */ + RAM (rwx) : ORIGIN = 0x20001fe8, LENGTH = 0x6018 /* Nordic S130 SDS v2 */ +} + +SECTIONS +{ + .fs_data : + { + PROVIDE(__start_fs_data = .); + KEEP(*(.fs_data)) + PROVIDE(__stop_fs_data = .); + } > RAM + .pwr_mgmt_data : + { + PROVIDE(__start_pwr_mgmt_data = .); + KEEP(*(.pwr_mgmt_data)) + PROVIDE(__stop_pwr_mgmt_data = .); + } > RAM +} INSERT AFTER .data; + +INCLUDE "nrf5x_common.ld"