mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-25 14:17:40 +00:00

Note: This idea is originally from @caveman99 and should be credited as such. Submitting as a separate PR so the work in meshtastic/firmware#4148 can be a bit cleaner and Seeed boards can build while that work is ongoing. The nrf52 boards that depend on the v7 softdevice all use the same code and linker files. Rather than duplicate the code, keep it all together with the platform.
39 lines
824 B
Plaintext
39 lines
824 B
Plaintext
/* Linker script to configure memory regions. */
|
|
|
|
SEARCH_DIR(.)
|
|
GROUP(-lgcc -lc -lnosys)
|
|
|
|
MEMORY
|
|
{
|
|
FLASH (rx) : ORIGIN = 0x27000, LENGTH = 0xED000 - 0x27000
|
|
|
|
/* SRAM required by Softdevice depend on
|
|
* - Attribute Table Size (Number of Services and Characteristics)
|
|
* - Vendor UUID count
|
|
* - Max ATT MTU
|
|
* - Concurrent connection peripheral + central + secure links
|
|
* - Event Len, HVN queue, Write CMD queue
|
|
*/
|
|
RAM (rwx) : ORIGIN = 0x20006000, LENGTH = 0x20040000 - 0x20006000
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
. = ALIGN(4);
|
|
.svc_data :
|
|
{
|
|
PROVIDE(__start_svc_data = .);
|
|
KEEP(*(.svc_data))
|
|
PROVIDE(__stop_svc_data = .);
|
|
} > RAM
|
|
|
|
.fs_data :
|
|
{
|
|
PROVIDE(__start_fs_data = .);
|
|
KEEP(*(.fs_data))
|
|
PROVIDE(__stop_fs_data = .);
|
|
} > RAM
|
|
} INSERT AFTER .data;
|
|
|
|
INCLUDE "nrf52_common.ld"
|