From 1014c3e79537418b263679885cebd294f1fce48e Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Wed, 24 Aug 2022 16:11:34 -0300 Subject: [PATCH] esp32s3: Fix Data allocation offset within shared Internal SRAM1 Signed-off-by: Gustavo Henrique Nihei --- boards/xtensa/esp32s3/esp32s3-devkit/scripts/esp32s3.ld | 2 +- boards/xtensa/esp32s3/esp32s3-eye/scripts/esp32s3.ld | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/xtensa/esp32s3/esp32s3-devkit/scripts/esp32s3.ld b/boards/xtensa/esp32s3/esp32s3-devkit/scripts/esp32s3.ld index 5abcfa5def..941893364c 100644 --- a/boards/xtensa/esp32s3/esp32s3-devkit/scripts/esp32s3.ld +++ b/boards/xtensa/esp32s3/esp32s3-devkit/scripts/esp32s3.ld @@ -71,7 +71,7 @@ SECTIONS * and dram0_0_seg reflect the same address space on different buses. */ - . = ORIGIN(dram0_0_seg) + _iram_end - _iram_start; + . = ORIGIN(dram0_0_seg) + MAX(_iram_end, _diram_i_start) - _diram_i_start; } > dram0_0_seg /* Shared RAM */ diff --git a/boards/xtensa/esp32s3/esp32s3-eye/scripts/esp32s3.ld b/boards/xtensa/esp32s3/esp32s3-eye/scripts/esp32s3.ld index 4e8a3044c9..d2a9389aa7 100644 --- a/boards/xtensa/esp32s3/esp32s3-eye/scripts/esp32s3.ld +++ b/boards/xtensa/esp32s3/esp32s3-eye/scripts/esp32s3.ld @@ -71,7 +71,7 @@ SECTIONS * and dram0_0_seg reflect the same address space on different buses. */ - . = ORIGIN(dram0_0_seg) + _iram_end - _iram_start; + . = ORIGIN(dram0_0_seg) + MAX(_iram_end, _diram_i_start) - _diram_i_start; } > dram0_0_seg /* Shared RAM */