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:
Gunar Schorcht 2021-10-30 14:46:57 +02:00
parent dbbdc8590e
commit aecc516ce9

View File

@ -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