ArduCAM / Arducam_mini

GNU Lesser General Public License v2.1
2 stars 1 forks source link

Capture2SD demo fails to compile for RPI Pico W #1

Open nickaxgit opened 1 month ago

nickaxgit commented 1 month ago

Unable to compile arducam_mini example in Arduino IDE 2.3.2

Have #defined OV2640_MINI_SMP_PLUS in memorysaver.h and uncommented

define ARDUCAM_SHIELD_REVC

on attempting to upload the sketch to the board (compilation)

errors are :-

`In file included from C:\Users\nicka\AppData\Local\Temp.arduinoIDE-unsaved2024520-22568-o3e7hx.nhk4\ArduCAM_REVC_Capture2SD\ArduCAM_REVC_Capture2SD.ino:15: c:\Users\nicka\Documents\Arduino\libraries\Arducam_mini\src/ArduCAM.h:823:9: error: 'regtype' does not name a type 823 | regtype *P_CS; | ^~~ c:\Users\nicka\Documents\Arduino\libraries\Arducam_mini\src/ArduCAM.h:824:9: error: 'regsize' does not name a type 824 | regsize B_CS; | ^~~ C:\Users\nicka\AppData\Local\Temp.arduinoIDE-unsaved2024520-22568-o3e7hx.nhk4\ArduCAM_REVC_Capture2SD\ArduCAM_REVC_Capture2SD.ino:25:24: error: 'SPI_CS' was not declared in this scope 25 | ArduCAM myCAM( OV2640, SPI_CS ); | ^~ C:\Users\nicka\AppData\Local\Temp.arduinoIDE-unsaved2024520-22568-o3e7hx.nhk4\ArduCAM_REVC_Capture2SD\ArduCAM_REVC_Capture2SD.ino: In function 'void setup()': C:\Users\nicka\AppData\Local\Temp.arduinoIDE-unsaved2024520-22568-o3e7hx.nhk4\ArduCAM_REVC_Capture2SD\ArduCAM_REVC_Capture2SD.ino:121:11: error: 'SPI_CS' was not declared in this scope 121 | pinMode(SPI_CS,OUTPUT); | ^~ Multiple libraries were found for "SD.h" Used: C:\Users\nicka\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.9.3\libraries\SD Not used: C:\Users\nicka\AppData\Local\Arduino15\libraries\SD exit status 1

Compilation error: 'SPI_CS' was not declared in this scope`

I understand that the PI may have no SD writer - but removal of all the SD related code still leaves the 'regtype does not name a type' errors

resolving them is beyond my current C++ skill level

*Every* Pi Pico toolchain and example seems to be broken in one way or another - I have had a very, very frustrating 5 days - trying to get *anything* much working .. On Linux, Windows, CircuitPython (not enough memory to do anything sensbile), Micropython (ditto) .. Vscode/cmake (very hard to get your hear around, even harder to mix examples which are in C and C++) - I did get the camera to work with the USB host app and the C code ... but it suffered badly with image corruption. I am a senior engineer with 35 years development and toolchain experience, who trains other people in the persistence 'mindset' - and yet I am about ready to give up. The hardware is amazing - but the absolute zoo of tools, versions, and broken or obsolete options is just soul destroying .. I feel this is what is holding back the Rpi Pico (and maybe the wider IoT)

Screenshot:-

image

camera detail:- IMG_0005

Sorry for my frustration - I'd really appreciate some help

nickaxgit commented 1 month ago

just a note that you may spot I a using 1.0.0 this was a rollback after i found it not to work in the latest version (where the behaviour is the same)