File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2626#define ICACHE_RODATA_ATTR
2727
2828// Forces code into IRAM instead of flash.
29- #define IRAM_ATTR __attribute__((section(".text ")))
29+ #define IRAM_ATTR __attribute__((section(".iram1 ")))
3030
3131// Forces data into DRAM instead of flash
32- #define DRAM_ATTR __attribute__((section(".data ")))
32+ #define DRAM_ATTR __attribute__((section(".dram0 ")))
3333
3434// Forces data to be 4 bytes aligned
3535#define WORD_ALIGNED_ATTR __attribute__((aligned(4)))
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ SECTIONS
9393 *(.entry .text )
9494 *(.init .literal )
9595 *(.init )
96+ *(.iram1 .iram1 .*)
9697 *libcore.a :spi_flash.o (.literal .text .literal .* .text .*)
9798 *(.literal .text .stub .gnu .warning .gnu .linkonce .literal .* .gnu .linkonce .t .*.literal .gnu .linkonce .t .*)
9899 *(.fini .literal )
@@ -107,6 +108,7 @@ SECTIONS
107108 _data_start = ABSOLUTE (.);
108109 *(.data )
109110 *(.data .*)
111+ *(.dram0 )
110112 *(.gnu .linkonce .d .*)
111113 *(.data1 )
112114 *(.sdata )
You can’t perform that action at this time.
0 commit comments