Page 1 of 1

Access to PSRAM on ESP32 3 causes asserts

Posted: Mon Oct 21, 2024 8:06 pm
by asargent
WIth PSRAM enabled, but not accessed, all works as expected. Once a successfully allocated area of memory " imageBufferPSRAM = (uint8_t *)heap_caps_malloc(TOTAL_BYTES, MALLOC_CAP_SPIRAM);" is read from, the system panics within the uart_vfs.c file (sometimes different places, but most often uart_return_char). This is reached via ESP_LOGE or ESP_LOGI. It has been noticed that writing to the PSRAM variable from the BLE "ESP_GATTS_WRITE_EVT" handler works, but the resulting memory appears to be corrupted.

Re: Access to PSRAM on ESP32 3 causes asserts

Posted: Tue Oct 22, 2024 6:03 am
by ESP_Sprite
What hardware are you using? Are you sure any pins in use by PSRAM are not shorted to e.g. another GPIO, or used by some other peripheral?