rp2040: Load vectortable into ram

Load the interrupt vector table into ram at startup.  This reduces the
chance of a flash cache access causing timing instability.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2024-01-20 20:04:16 -05:00
parent 44e79e0c37
commit f1982edcd5
2 changed files with 27 additions and 0 deletions

View File

@@ -37,6 +37,12 @@ SECTIONS
. = ALIGN(4);
_data_flash = .;
.ram_vectortable (NOLOAD) : {
_ram_vectortable_start = .;
. = . + ( _text_vectortable_end - _text_vectortable_start ) ;
_ram_vectortable_end = .;
} > ram
.data : AT (_data_flash)
{
. = ALIGN(4);