Access to PSRAM on ESP32 3 causes asserts
Posted: Mon Oct 21, 2024 8:06 pm
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.