From 9d8425bd72aa2fd530370ad77998ac29a865de83 Mon Sep 17 00:00:00 2001 From: XiaXiaotian Date: Mon, 24 Apr 2017 11:22:49 +0800 Subject: [PATCH] put RODATA of libphy.a into DRAM There are some RODATAs of libphy.a that are called in ISR. So need to put them into DRAM to avoid access them when R/W SPI flash. Due to the RODATAs which are called in ISR haven't been picked out to put into DRAM, put all of the RODATA of libphy.a into DRAM. This will be optimized in the future. --- components/esp32/ld/esp32.common.ld | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp32/ld/esp32.common.ld b/components/esp32/ld/esp32.common.ld index ff451132b..48e31d1ea 100644 --- a/components/esp32/ld/esp32.common.ld +++ b/components/esp32/ld/esp32.common.ld @@ -112,6 +112,7 @@ SECTIONS *(.dram1 .dram1.*) *libesp32.a:panic.o(.rodata .rodata.*) *libesp32.a:app_trace.o(.rodata .rodata.*) + *libphy.a:(.rodata .rodata.*) _data_end = ABSOLUTE(.); . = ALIGN(4); } >dram0_0_seg