diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2024-01-20 19:33:21 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2024-01-25 11:03:45 -0500 |
commit | 44e79e0c37a440212a1b7f974adbdbe250e91f83 (patch) | |
tree | d934aef5a22fbff20f1cccfedcb5c1613879ed96 /src/rp2040 | |
parent | 23c5b20f5ba6bbb27c3b5404f7b0912dba511eb5 (diff) | |
download | kutter-44e79e0c37a440212a1b7f974adbdbe250e91f83.tar.gz kutter-44e79e0c37a440212a1b7f974adbdbe250e91f83.tar.xz kutter-44e79e0c37a440212a1b7f974adbdbe250e91f83.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'src/rp2040')
-rw-r--r-- | src/rp2040/rp2040_link.lds.S | 5 |
1 files 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 = .; |