Skip to content

Commit

Permalink
esp32c3_supermini: Switch from SRAM0 to SRAM1 for correct SRAM usage
Browse files Browse the repository at this point in the history
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 <killekulla@rdrz.de>
  • Loading branch information
killekulla authored and kartben committed Jan 27, 2025
1 parent 1b9408b commit 4209d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boards/others/esp32c3_supermini/esp32c3_supermini.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4209d78

Please sign in to comment.