aboutsummaryrefslogtreecommitdiff
path: root/code/temperature/temp.ld
diff options
context:
space:
mode:
Diffstat (limited to 'code/temperature/temp.ld')
-rw-r--r--code/temperature/temp.ld117
1 files changed, 117 insertions, 0 deletions
diff --git a/code/temperature/temp.ld b/code/temperature/temp.ld
new file mode 100644
index 0000000..c650cde
--- /dev/null
+++ b/code/temperature/temp.ld
@@ -0,0 +1,117 @@
+/* Linker script to configure memory regions. */
+
+SEARCH_DIR(.)
+GROUP(-lgcc -lc -lnosys)
+
+MEMORY
+{
+ FLASH (rx) : ORIGIN = 0x26000, LENGTH = 0x5a000
+ RAM (rwx) : ORIGIN = 0x20002218, LENGTH = 0xdde8
+}
+
+SECTIONS
+{
+}
+
+SECTIONS
+{
+ . = ALIGN(4);
+ .mem_section_dummy_ram :
+ {
+ }
+ .log_dynamic_data :
+ {
+ PROVIDE(__start_log_dynamic_data = .);
+ KEEP(*(SORT(.log_dynamic_data*)))
+ PROVIDE(__stop_log_dynamic_data = .);
+ } > RAM
+ .fs_data :
+ {
+ PROVIDE(__start_fs_data = .);
+ KEEP(*(.fs_data))
+ PROVIDE(__stop_fs_data = .);
+ } > RAM
+ .cli_sorted_cmd_ptrs :
+ {
+ PROVIDE(__start_cli_sorted_cmd_ptrs = .);
+ KEEP(*(.cli_sorted_cmd_ptrs))
+ PROVIDE(__stop_cli_sorted_cmd_ptrs = .);
+ } > RAM
+
+} INSERT AFTER .data;
+
+SECTIONS
+{
+ .mem_section_dummy_rom :
+ {
+ }
+ .sdh_soc_observers :
+ {
+ PROVIDE(__start_sdh_soc_observers = .);
+ KEEP(*(SORT(.sdh_soc_observers*)))
+ PROVIDE(__stop_sdh_soc_observers = .);
+ } > FLASH
+ .pwr_mgmt_data :
+ {
+ PROVIDE(__start_pwr_mgmt_data = .);
+ KEEP(*(SORT(.pwr_mgmt_data*)))
+ PROVIDE(__stop_pwr_mgmt_data = .);
+ } > FLASH
+ .sdh_ble_observers :
+ {
+ PROVIDE(__start_sdh_ble_observers = .);
+ KEEP(*(SORT(.sdh_ble_observers*)))
+ PROVIDE(__stop_sdh_ble_observers = .);
+ } > FLASH
+ .log_const_data :
+ {
+ PROVIDE(__start_log_const_data = .);
+ KEEP(*(SORT(.log_const_data*)))
+ PROVIDE(__stop_log_const_data = .);
+ } > FLASH
+ .nrf_balloc :
+ {
+ PROVIDE(__start_nrf_balloc = .);
+ KEEP(*(.nrf_balloc))
+ PROVIDE(__stop_nrf_balloc = .);
+ } > FLASH
+ .sdh_state_observers :
+ {
+ PROVIDE(__start_sdh_state_observers = .);
+ KEEP(*(SORT(.sdh_state_observers*)))
+ PROVIDE(__stop_sdh_state_observers = .);
+ } > FLASH
+ .sdh_stack_observers :
+ {
+ PROVIDE(__start_sdh_stack_observers = .);
+ KEEP(*(SORT(.sdh_stack_observers*)))
+ PROVIDE(__stop_sdh_stack_observers = .);
+ } > FLASH
+ .sdh_req_observers :
+ {
+ PROVIDE(__start_sdh_req_observers = .);
+ KEEP(*(SORT(.sdh_req_observers*)))
+ PROVIDE(__stop_sdh_req_observers = .);
+ } > FLASH
+ .nrf_queue :
+ {
+ PROVIDE(__start_nrf_queue = .);
+ KEEP(*(.nrf_queue))
+ PROVIDE(__stop_nrf_queue = .);
+ } > FLASH
+ .cli_command :
+ {
+ PROVIDE(__start_cli_command = .);
+ KEEP(*(.cli_command))
+ PROVIDE(__stop_cli_command = .);
+ } > FLASH
+ .crypto_data :
+ {
+ PROVIDE(__start_crypto_data = .);
+ KEEP(*(SORT(.crypto_data*)))
+ PROVIDE(__stop_crypto_data = .);
+ } > FLASH
+
+} INSERT AFTER .text
+
+INCLUDE "nrf_common.ld"