From 44e79e0c37a440212a1b7f974adbdbe250e91f83 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 20 Jan 2024 19:33:21 -0500 Subject: [PATCH] rp2040: Run all code from ram Place all normal code into ram. This reduces the chance that rp2040 instruction cache misses could cause subtle timing issues. Signed-off-by: Kevin O'Connor --- src/rp2040/rp2040_link.lds.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rp2040/rp2040_link.lds.S b/src/rp2040/rp2040_link.lds.S index 2052cdbd..fd178847 100644 --- a/src/rp2040/rp2040_link.lds.S +++ b/src/rp2040/rp2040_link.lds.S @@ -31,8 +31,7 @@ SECTIONS _text_vectortable_start = .; KEEP(*(.vector_table)) _text_vectortable_end = .; - *(.text .text.*) - *(.rodata .rodata*) + *(.text.armcm_boot*) } > rom . = ALIGN(4); @@ -42,7 +41,9 @@ SECTIONS { . = ALIGN(4); _data_start = .; + *(.text .text.*) *(.ramfunc .ramfunc.*); + *(.rodata .rodata*) *(.data .data.*); . = ALIGN(4); _data_end = .;