summaryrefslogtreecommitdiff
path: root/linker.ld
diff options
context:
space:
mode:
authorNathan Lee <me@nwlee.tech>2026-07-26 15:25:22 -0500
committerNathan Lee <me@nwlee.tech>2026-07-26 15:26:49 -0500
commit5c12f756189373fb25220fe8824d4df785e61742 (patch)
tree9e1907d1f63254e8272358aa51cd4d8e9d627957 /linker.ld
parent9137408a4989fcafca6527a2e17e5a7348d00dde (diff)
create ringbuffer for logging
Diffstat (limited to 'linker.ld')
-rw-r--r--linker.ld11
1 files changed, 10 insertions, 1 deletions
diff --git a/linker.ld b/linker.ld
index 4f86e10..5bf6586 100644
--- a/linker.ld
+++ b/linker.ld
@@ -4,7 +4,8 @@ ENTRY(_start)
MEMORY
{
ROM (rx) : ORIGIN = 0x80000000, LENGTH = 1M
- RAM (rwx) : ORIGIN = 0x80400000, LENGTH = 1M
+ RAM (rwx) : ORIGIN = 0x81000000, LENGTH = 1M
+ LOGRAM (rw) : ORIGIN = 0x82000000, LENGTH = 1M
}
SECTIONS
@@ -51,6 +52,14 @@ SECTIONS
__stack_top = .;
} > RAM
+ .ringbuf (NOLOAD) : ALIGN(64)
+ {
+ __ringbuf_start = .;
+ KEEP(*(.ringbuf))
+ . = ALIGN(64);
+ __ringbuf_end = .;
+ } > LOGRAM
+
/DISCARD/ : {
*(.eh_frame)
*(.eh_frame.*)