-
-
Notifications
You must be signed in to change notification settings - Fork 1
Troubleshooting
Phil Schatzmann edited this page Jun 11, 2025
·
1 revision
-
Ensure PSRAM is enabled in your Arduino IDE board configuration:
- Tools > PSRAM: "Enabled"
-
Add this to your setup function to verify PSRAM:
if (psramFound()) { Serial.printf("PSRAM size: %d bytes\n", ESP.getPsramSize()); } else { Serial.println("No PSRAM detected!"); }
-
When using large allocations, check available memory first:
Serial.printf("Free PSRAM: %d bytes\n", ESP.getFreePsram()); -
Try reducing buffer sizes or using multiple smaller buffers
- HIMEM access is slower than PSRAM or RAM
- For frequently accessed data, prefer RAM > PSRAM > HIMEM
- Use the appropriate container for your use case