Adafruit_ImageReader Not Compile on ESP32

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Alan112358
 
Posts: 3
Joined: Mon Nov 15, 2021 6:32 pm

Adafruit_ImageReader Not Compile on ESP32

Post by Alan112358 »

The Adafruit_ImageReader does not compile on ESP32 Dev Module. This sketch generates an error esp_flash_t not declared. I have uninstalled and reinstalled Arduino and compile error persists.

#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_ILI9341.h> // Hardware-specific library
#include <Adafruit_ImageReader.h> // Image-reading functions

void setup() {
// put your setup code here, to run once:

}

void loop() {
// put your main code here, to run repeatedly:

}

Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

C:\Users\Alan\Documents\Arduino\libraries\Adafruit_SPIFlash\src\esp32\Adafruit_FlashTransport_ESP32.cpp: In member function 'SPIFlash_Device_t* Adafruit_FlashTransport_ESP32::getFlashDevice()':

C:\Users\Alan\Documents\Arduino\libraries\Adafruit_SPIFlash\src\esp32\Adafruit_FlashTransport_ESP32.cpp:54:3: error: 'esp_flash_t' was not declared in this scope
esp_flash_t const *flash = _partition->flash_chip;
^
C:\Users\Alan\Documents\Arduino\libraries\Adafruit_SPIFlash\src\esp32\Adafruit_FlashTransport_ESP32.cpp:55:36: error: 'flash' was not declared in this scope
_flash_device.manufacturer_id = (flash->chip_id >> 16);
^
exit status 1

Error compiling for board ESP32 Dev Module.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”