From 4209d78eaf368d33c04f4f03230dffdefddd367d Mon Sep 17 00:00:00 2001 From: Raphael Zimmerer Date: Tue, 21 Jan 2025 06:45:16 +0100 Subject: [PATCH] esp32c3_supermini: Switch from SRAM0 to SRAM1 for correct SRAM usage SRAM0 is dedicated to IBUS and caching, whereas SRAM1 is assigned to DBUS. This change corrects an incorrect SRAM usage that previously triggered the following assertion due to invalid heap size calculations: Despite of invalid SRAM usage, that triggered following assertion due to invalid heap size calucaltions: ASSERTION FAIL [bytes / 8U <= 0x7fffU] @ .../zephyr/lib/heap/heap.c:491 "heap size is too big" Signed-off-by: Raphael Zimmerer --- boards/others/esp32c3_supermini/esp32c3_supermini.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/others/esp32c3_supermini/esp32c3_supermini.dts b/boards/others/esp32c3_supermini/esp32c3_supermini.dts index ebbd64d4f81f..30470c1a90fb 100644 --- a/boards/others/esp32c3_supermini/esp32c3_supermini.dts +++ b/boards/others/esp32c3_supermini/esp32c3_supermini.dts @@ -16,7 +16,7 @@ compatible = "espressif,esp32c3_supermini"; chosen { - zephyr,sram = &sram0; + zephyr,sram = &sram1; zephyr,console = &usb_serial; zephyr,shell-uart = &usb_serial; zephyr,flash = &flash0;