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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user