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>
This commit is contained in:
Kevin O'Connor 2024-01-20 19:33:21 -05:00
parent 23c5b20f5b
commit 44e79e0c37
1 changed files with 3 additions and 2 deletions

View File

@ -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 = .;