M5CoreS3 rebooting issue with PSRAM
-
I am using the Arduino IDE with the M5CoreS3 library and am having a reboot issue due to a PSRAM error when I upload any of the Basic examples. I have configured the boot setup per the documentation.
Arduino IDE 2.3.2
M5CoreS3 1.0.0
M5Unified 0.1.16Error message:
14:57:54.043 -> Rebooting... 14:57:54.043 -> ESP-ROM:esp32s3-20210327 14:57:54.043 -> Build:Mar 27 2021 14:57:54.043 -> rst:0xc (RTC_SW_CPU_RST),boot:0x2b (SPI_FAST_FLASH_BOOT) 14:57:54.043 -> Saved PC:0x40377b11 14:57:54.080 -> SPIWP:0xee 14:57:54.080 -> mode:DIO, clock div:1 14:57:54.080 -> load:0x3fce3818,len:0x508 14:57:54.080 -> load:0x403c9700,len:0x4 14:57:54.080 -> load:0x403c9704,len:0xad0 14:57:54.080 -> load:0x403cc700,len:0x29e4 14:57:54.080 -> entry 0x403c9880 14:57:55.084 -> E (1902) mmap: esp_mmu_unmap(595): munmap target pointer is outside external memory regions 14:57:55.326 -> 14:57:55.326 -> assert failed: spi_flash_munmap flash_mmap.c:241 (0 && "invalid handle, or handle already unmapped") 14:57:55.326 -> 14:57:55.326 -> 14:57:55.326 -> Backtrace: 0x403774fe:0x3fcf3cd0 0x4037c4ad:0x3fcf3cf0 0x4038297d:0x3fcf3d10 0x42018df7:0x3fcf3e40 0x4201892d:0x3fcf3e60 0x42018a31:0x3fcf3e80 0x42018ccb:0x3fcf3eb0 0x4200f0cc:0x3fcf3f10 0x42010521:0x3fcf3f40 0x420482a1:0x3fcf3f70 0x4037f092:0x3fcf3fb0 14:57:55.326 -> 14:57:55.326 -> 14:57:55.326 -> 14:57:55.326 -> 14:57:55.326 -> ELF file SHA256: f8a0ae31e3181488
Can someone help me debug this?
Thanks.
-
What board def version of ‘ESP32 by Espressif’ are you using?
Ver3.x.x is broken for some boards. -
I can share a few thoughts on your PSRAM issue:
- Have you tried using an older version of the M5CoreS3 library? Sometimes newer versions can introduce compatibility issues.
- Double-check your board settings in the Arduino IDE. Make sure you've selected the correct board and PSRAM option.
- Try increasing the PSRAM size in your sketch if you're using a lot of memory.
- If possible, test with a different M5CoreS3 unit to rule out hardware issues.
- Consider posting your code snippet if the issue persists. Sometimes the problem can be in how the PSRAM is being accessed in the sketch.
Keep in mind that PSRAM errors can be tricky to debug.