Access to PSRAM on ESP32 3 causes asserts

asargent
Posts: 1
Joined: Mon Oct 21, 2024 5:15 pm

Access to PSRAM on ESP32 3 causes asserts

Postby asargent » 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.

ESP_Sprite
Posts: 9668
Joined: Thu Nov 26, 2015 4:08 am

Re: Access to PSRAM on ESP32 3 causes asserts

Postby ESP_Sprite » Tue Oct 22, 2024 6:03 am

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?

Who is online

Users browsing this forum: Google [Bot] and 81 guests