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"