2019-11-17 19:47:04 +00:00
|
|
|
/* Linker script to configure memory regions. */
|
|
|
|
|
|
|
|
SEARCH_DIR(.)
|
|
|
|
GROUP(-lgcc -lc -lnosys)
|
|
|
|
|
2021-08-19 00:14:42 +00:00
|
|
|
NOINIT_SIZE = 0x100;
|
|
|
|
RAM_SIZE = 64K;
|
|
|
|
|
2019-11-17 19:47:04 +00:00
|
|
|
MEMORY
|
|
|
|
{
|
2020-05-24 14:36:04 +00:00
|
|
|
FLASH (rx) : ORIGIN = 0x00000, LENGTH = 0x78000
|
2021-08-19 00:14:42 +00:00
|
|
|
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = RAM_SIZE - NOINIT_SIZE
|
|
|
|
NOINIT (rwx): ORIGIN = ORIGIN(RAM) + LENGTH(RAM), LENGTH = NOINIT_SIZE
|
2019-11-17 19:47:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
2021-08-17 23:53:57 +00:00
|
|
|
noinit (NOLOAD):
|
|
|
|
{
|
|
|
|
PROVIDE(__start_noinit_data = .);
|
|
|
|
KEEP(*(.noinit))
|
|
|
|
PROVIDE(__stop_noinit_data = .);
|
|
|
|
} >NOINIT
|
2019-11-17 19:47:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = ALIGN(4);
|
|
|
|
.mem_section_dummy_ram :
|
|
|
|
{
|
|
|
|
}
|
|
|
|
.cli_sorted_cmd_ptrs :
|
|
|
|
{
|
|
|
|
PROVIDE(__start_cli_sorted_cmd_ptrs = .);
|
|
|
|
KEEP(*(.cli_sorted_cmd_ptrs))
|
|
|
|
PROVIDE(__stop_cli_sorted_cmd_ptrs = .);
|
|
|
|
} > RAM
|
|
|
|
.fs_data :
|
|
|
|
{
|
|
|
|
PROVIDE(__start_fs_data = .);
|
|
|
|
KEEP(*(.fs_data))
|
|
|
|
PROVIDE(__stop_fs_data = .);
|
|
|
|
} > RAM
|
|
|
|
.log_dynamic_data :
|
|
|
|
{
|
|
|
|
PROVIDE(__start_log_dynamic_data = .);
|
|
|
|
KEEP(*(SORT(.log_dynamic_data*)))
|
|
|
|
PROVIDE(__stop_log_dynamic_data = .);
|
|
|
|
} > RAM
|
|
|
|
.log_filter_data :
|
|
|
|
{
|
|
|
|
PROVIDE(__start_log_filter_data = .);
|
|
|
|
KEEP(*(SORT(.log_filter_data*)))
|
|
|
|
PROVIDE(__stop_log_filter_data = .);
|
|
|
|
} > 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
|
|
|
|
.sdh_ble_observers :
|
|
|
|
{
|
|
|
|
PROVIDE(__start_sdh_ble_observers = .);
|
|
|
|
KEEP(*(SORT(.sdh_ble_observers*)))
|
|
|
|
PROVIDE(__stop_sdh_ble_observers = .);
|
|
|
|
} > FLASH
|
|
|
|
.sdh_req_observers :
|
|
|
|
{
|
|
|
|
PROVIDE(__start_sdh_req_observers = .);
|
|
|
|
KEEP(*(SORT(.sdh_req_observers*)))
|
|
|
|
PROVIDE(__stop_sdh_req_observers = .);
|
|
|
|
} > 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
|
|
|
|
.nrf_queue :
|
|
|
|
{
|
|
|
|
PROVIDE(__start_nrf_queue = .);
|
|
|
|
KEEP(*(.nrf_queue))
|
|
|
|
PROVIDE(__stop_nrf_queue = .);
|
|
|
|
} > FLASH
|
|
|
|
.nrf_balloc :
|
|
|
|
{
|
|
|
|
PROVIDE(__start_nrf_balloc = .);
|
|
|
|
KEEP(*(.nrf_balloc))
|
|
|
|
PROVIDE(__stop_nrf_balloc = .);
|
|
|
|
} > 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
|
|
|
|
.pwr_mgmt_data :
|
|
|
|
{
|
|
|
|
PROVIDE(__start_pwr_mgmt_data = .);
|
|
|
|
KEEP(*(SORT(.pwr_mgmt_data*)))
|
|
|
|
PROVIDE(__stop_pwr_mgmt_data = .);
|
|
|
|
} > FLASH
|
|
|
|
.log_const_data :
|
|
|
|
{
|
|
|
|
PROVIDE(__start_log_const_data = .);
|
|
|
|
KEEP(*(SORT(.log_const_data*)))
|
|
|
|
PROVIDE(__stop_log_const_data = .);
|
|
|
|
} > FLASH
|
|
|
|
.log_backends :
|
|
|
|
{
|
|
|
|
PROVIDE(__start_log_backends = .);
|
|
|
|
KEEP(*(SORT(.log_backends*)))
|
|
|
|
PROVIDE(__stop_log_backends = .);
|
|
|
|
} > FLASH
|
|
|
|
.nrf_balloc :
|
|
|
|
{
|
|
|
|
PROVIDE(__start_nrf_balloc = .);
|
|
|
|
KEEP(*(.nrf_balloc))
|
|
|
|
PROVIDE(__stop_nrf_balloc = .);
|
|
|
|
} > FLASH
|
|
|
|
|
|
|
|
} INSERT AFTER .text
|
|
|
|
|
|
|
|
|
2020-01-12 15:26:20 +00:00
|
|
|
INCLUDE "./nrf_common.ld"
|