cpu/esp32: place freertos and periph in IRAM
The IRAM is much faster, while the IROM is much slower and can only be accessed via a cache, which is also sometimes disabled, e.g. by the WiFi module or when writing to the flash. Therefore, time-critical code as well as code that has to work even when the cache is disabled must be placed in the IRAM.
This commit is contained in:
parent
dbbdc8590e
commit
aecc516ce9
@ -133,7 +133,9 @@ SECTIONS
|
||||
/* part of the RIOT port that should run in IRAM */
|
||||
*cpu/*(.literal .text .literal.* .text.*)
|
||||
*esp_common/*(.literal .text .literal.* .text.*)
|
||||
*esp_freertos_common/*(.literal .text .literal.* .text.*)
|
||||
*periph/*(.literal .text .literal.* .text.*)
|
||||
*esp_periph_common/*(.literal .text .literal.* .text.*)
|
||||
*mtd/**(.literal .text .literal.* .text.*)
|
||||
|
||||
INCLUDE esp32.spiram.rom-functions-iram.ld
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user