mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
33 lines
685 B
Plaintext
Executable File
33 lines
685 B
Plaintext
Executable File
/* Linker script to configure memory regions. */
|
|
|
|
SEARCH_DIR(.)
|
|
GROUP(-lgcc -lc -lnosys)
|
|
|
|
MEMORY
|
|
{
|
|
FLASH (rx) : ORIGIN = 0x10000, LENGTH = 0xf0000
|
|
RAM_NVIC (rwx) : ORIGIN = 0x20000000, LENGTH = 0x100
|
|
RAM_CRASH_DATA (rwx) : ORIGIN = (0x20000000 + 0x100), LENGTH = 0x100
|
|
RAM (rwx) : ORIGIN = ((0x20000000 + 0x100) + 0x100), LENGTH = (0x40000 - (0x100 + 0x100))
|
|
}
|
|
|
|
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"
|