#warning esp_spiram.h has been replaced by esp32/spiram.h, please include esp32/spiram.h instead #include "esp32/spiram.h"