Skip to content

Commit 5b4389c

Browse files
committed
cpu/esp32: update of ld script for littlefs*
During the write access to the SPI flash, the IROM cache is not available and only code from the IRAM can be executed. Therefore, the code of file system implementations which access the SPI flash must reside in IRAM.
1 parent 3230326 commit 5b4389c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cpu/esp32/ld/esp32.common.ld

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@ SECTIONS
101101
*esp_idf_spi_flash.a:*(.literal .text .literal.* .text.*)
102102
/* parts of RIOT that should to run in IRAM */
103103
*core.a:*(.literal .text .literal.* .text.*)
104+
*littlefs.a:*(.literal .text .literal.* .text.*)
105+
*littlefs2.a:*(.literal .text .literal.* .text.*)
104106
*spiffs_fs.a:*(.literal .text .literal.* .text.*)
105107
*spiffs.a:*(.literal .text .literal.* .text.*)
106108
*vfs.a:*(.literal .text .literal.* .text.*)
107109

108-
/* part of RIOT ports that should run in IRAM */
110+
/* part of the RIOT port that should run in IRAM */
109111
*cpu.a:*(.literal .text .literal.* .text.*)
110112
*periph.a:*(.literal .text .literal.* .text.*)
111113
*mtd.a:**(.literal .text .literal.* .text.*)

0 commit comments

Comments
 (0)