forked from WyliodrinEmbeddedIoT/tock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.ld
32 lines (26 loc) · 905 Bytes
/
layout.ld
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* Licensed under the Apache License, Version 2.0 or the MIT License. */
/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/* Copyright Tock Contributors 2023. */
MEMORY
{
/* uncomment this to boot from RAM */
/* reset (rx) : ORIGIN = 0x20000000, LENGTH = 16K
rom (rx) : ORIGIN = 0x20000100, LENGTH = 256K
prog (rx) : ORIGIN = 0x20040000, LENGTH = 1K
ram (rwx) : ORIGIN = 0x20004000, LENGTH = 240K */
/* boot from Flash */
rom (rx) : ORIGIN = 0x10000000, LENGTH = 256K
prog (rx) : ORIGIN = 0x10040000, LENGTH = 256K
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 264K
}
PAGE_SIZE = 4K;
ENTRY(jump_to_bootloader)
/* RP2040 has a bootloader that occupies the first 256 bytes of .text */
SECTIONS {
.text : ALIGN(4)
{
KEEP (*(.flash_bootloader));
. = ALIGN (256);
} > rom
}
INCLUDE ../kernel_layout.ld