2 Answers
Got these toys a week ago – cant make the ESP32 capture sketch upload
Thought maybe someone could loo at errors and point me the right way
Arduino: 1.8.12 (Mac OS X), Board: "ArduCAM ESP32S UNO, Disabled, Default, QIO, 80MHz, 4MB (32Mb), 921600, None" /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/WiFi/src/WiFiClient.cpp: In member function 'virtual uint8_t WiFiClient::connected()': /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/WiFi/src/WiFiClient.cpp:440:13: warning: unused variable 'res' [-Wunused-variable] int res = recv(fd(), &dummy, 0, MSG_DONTWAIT); ^ /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/WiFi/src/WiFiSTA.cpp: In static member function 'static void WiFiSTAClass::_smartConfigCallback(uint32_t, void*)': /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/WiFi/src/WiFiSTA.cpp:686:30: warning: unused variable 'type' [-Wunused-variable] smartconfig_type_t * type = (smartconfig_type_t *)result; ^ /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/WiFi/src/WiFiSTA.cpp:697:26: warning: unused variable 'ip' [-Wunused-variable] ip4_addr_t * ip = (ip4_addr_t *)result; ^ /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/WiFi/src/WiFiMulti.cpp: In member function 'uint8_t WiFiMulti::run(uint32_t)': /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/WiFi/src/WiFiMulti.cpp:129:27: warning: variable 'mac' set but not used [-Wunused-but-set-variable] uint8_t * mac; ^ /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/ArduCAM/ArduCAM.cpp: In member function 'int ArduCAM::wrSensorRegs8_8(const sensor_reg*)': /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/ArduCAM/ArduCAM.cpp:945:7: warning: variable 'err' set but not used [-Wunused-but-set-variable] int err = 0; ^ /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/ArduCAM/ArduCAM.cpp: In member function 'int ArduCAM::wrSensorRegs8_16(const sensor_reg*)': /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/ArduCAM/ArduCAM.cpp:969:7: warning: variable 'err' set but not used [-Wunused-but-set-variable] int err = 0; ^ /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/ArduCAM/ArduCAM.cpp: In member function 'int ArduCAM::wrSensorRegs16_8(const sensor_reg*)': /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/ArduCAM/ArduCAM.cpp:1000:7: warning: variable 'err' set but not used [-Wunused-but-set-variable] int err = 0; ^ /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/ArduCAM/ArduCAM.cpp: In member function 'int ArduCAM::wrSensorRegs16_16(const sensor_reg*)': /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/ArduCAM/ArduCAM.cpp:1032:8: warning: variable 'err' set but not used [-Wunused-but-set-variable] int err = 0; ^ /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/ArduCAM/ArduCAM.cpp: In member function 'int ArduCAM::wrSensorRegs8_16(const sensor_reg*)': /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/ArduCAM/ArduCAM.cpp:973:4: error: 'reg_val' may be used uninitialized in this function [-Werror=maybe-uninitialized] while ((reg_addr != 0xff) | (reg_val != 0xffff)) ^ /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/ArduCAM/ArduCAM.cpp:973:4: error: 'reg_addr' may be used uninitialized in this function [-Werror=maybe-uninitialized] /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/ArduCAM/ArduCAM.cpp: In member function 'int ArduCAM::wrSensorRegs16_8(const sensor_reg*)': /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/ArduCAM/ArduCAM.cpp:1005:4: error: 'reg_val' may be used uninitialized in this function [-Werror=maybe-uninitialized] while ((reg_addr != 0xffff) | (reg_val != 0xff)) ^ /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/ArduCAM/ArduCAM.cpp:1005:4: error: 'reg_addr' may be used uninitialized in this function [-Werror=maybe-uninitialized] cc1plus: some warnings being treated as errors Multiple libraries were found for "WiFi.h" Used: /Users/admin/Library/Arduino15/packages/ArduCAM_ESP32S_UNO/hardware/esp32/2.0.0/libraries/WiFi Not used: /Applications/Arduino.app/Contents/Java/libraries/WiFi exit status 1 Error compiling for board ArduCAM ESP32S UNO. Invalid library found in /Arduino Sketches/libraries/ArduCAM_ESP32S_UNO: no headers files (.h) found in /Arduino Sketches/libraries/ArduCAM_ESP32S_UNO Invalid library found in /Arduino Sketches/libraries/ArduCAM_ESP32S_UNO: no headers files (.h) found in /Arduino Sketches/libraries/ArduCAM_ESP32S_UNO #ifndef _MEMORYSAVER_ #define _MEMORYSAVER_ //Only when using raspberry,enable it //#define RASPBERRY_PI //There are two steps you need to modify in this file before normal compilation //Only ArduCAM Shield series platform need to select camera module, ArduCAM-Mini series platform doesn't //Step 1: select the hardware platform, only one at a time //#define OV2640_MINI_2MP //#define OV3640_MINI_3MP //#define OV5642_MINI_5MP //#define OV5642_MINI_5MP_BIT_ROTATION_FIXED #define OV5642_MINI_5MP_PLUS //#define OV5640_MINI_5MP_PLUS //#define ARDUCAM_SHIELD_REVC //#define ARDUCAM_SHIELD_V2 //Step 2: Select one of the camera module, only one at a time //#if (defined(ARDUCAM_SHIELD_REVC) || defined(ARDUCAM_SHIELD_V2)) //#define OV7660_CAM //#define OV7725_CAM //#define OV7670_CAM //#define OV7675_CAM //#define OV2640_CAM //#define OV3640_CAM //#define OV5642_CAM //#define OV5640_CAM //#define MT9D111A_CAM //#define MT9D111B_CAM //#define MT9M112_CAM //#define MT9V111_CAM //#define MT9M001_CAM //#define MT9V034_CAM //#define MT9T112_CAM //#define MT9D112_CAM #endif //#endif //_MEMORYSAVER_