I’m stuck trying to get the Arducam Mega 3MP (10th anniversary edition) working with the ESP32S-UNO board definition in the Arduino IDE. I’m following the full-featured example from the Arducam docs (ESP32Node page). When I try to compile the sketch it fails in ArducamLink.cpp with:
error: invalid conversion from ‘char*’ to ‘uint8_t*’ {aka ‘unsigned char*’} [-fpermissive]
pointing at the line arducamUartWriteBuff(buff,len); at ArducamLink.cpp:218:26.
I’ve already refreshed the libraries and restarted everything, but it still fails. Board definition is ArduCAM_ESP32S_UNO, platform ESP32.
Thanks for the details. That error usually means printf() is passing a char* buffer into a function that expects a uint8_t*. Can you open ArducamLink.cpp and paste the printf(char* buff) function, plus the arducamUartWriteBuff(…) signature around lines 205-218? I want to confirm the exact types before suggesting the change.
Confirmed. printf(char* buff) is passing a char* to arducamUartWriteBuff(), which expects uint8_t*. Some compilers allow that implicitly, but this ESP32 toolchain treats it as an error, so you need an explicit cast.
That cast fixed the compile error, thanks. But now I’ve hit a new problem. When I try to use the esp32s-uno board definition in the Arduino IDE, the platform install fails. The IDE shows:
That’s an archive integrity failure, not a board definition problem. The downloaded platform archive is 30810480 bytes but the index says it should be 30814208 bytes, so the IDE rejects it. This mismatch happens with some versions of the Arduino IDE / Board Manager. The simplest workaround is to switch to Arduino IDE 1.8 and try the install again.
Steps:
Install Arduino IDE 1.8 (or use an existing 1.8 install).
In 1.8, re-add the board manager URL if needed.
Install the ArduCAM_ESP32S_UNO board definition / ArduCAM_ESP32S_UNO:[email protected] platform again.
Understood. Before I set up 1.8, is there any way to force the current IDE to accept the archive, or is the mismatch purely on the server/index side? I’d rather not downgrade if there’s a quick fix.
To sum up where things stand: the compile error is resolved with the (uint8_t*) cast in printf(). The remaining issue is the platform install — the archive size mismatch (30810480 vs 30814208) is causing the integrity check to fail in the current IDE setup. I don’t have a reliable way to force the current IDE past that check; the recommended workaround is to install the ESP32S-UNO board definition using Arduino IDE 1.8. The library cast fix should also be included in the next release.