Parser timeout error using Arducam Mega GUI with Arduino IDE 2.0.1

Hi everyone, I’m getting a “Parser timeout error” in the Arducam Mega GUI. I’m using an Arducam Mega 5MP-AF with an Arduino Mega 2560, running Arduino IDE 2.0.1 and the Mega SDK 2.0.2, following the getting-started guide at https://www.arducam.com/docs/arducam-mega/arducam-mega-getting-started/packs/example/ArduinoMega.html . I recorded my whole procedure and the error here: Highlight | Captured by #Outplayed . Any idea what’s going on?

Thanks for the report. Could you share some pictures of your hardware connections? That’ll help us debug this further.

Sure, here are pictures of my wiring setup.

Thanks. Looking at the photos, the wiring connection doesn’t look very stable - one of the wires appears loose.

That wire only came off while I was adjusting things to get a better photo. It was properly connected when I actually tested. I’ll retest anyway just to rule the connection out.

Let’s still focus on the cable connection first. The program is hanging at the SPI port initialization communication step, which usually points to a cabling fault preventing SPI communication. Please make sure every wire is properly and securely seated, then try again.

I rewired everything with better wires so nothing can come loose, but I’m still getting the same “Parser timeout error”. One thing I noticed: the GUI fails immediately if I leave the Serial Monitor open in the Arduino IDE. Here’s a video showing that behavior: Highlight | Captured by #Outplayed .

Sorry for the late reply. Can you connect the SPI wiring to the marked pins on the board? I’ve shared a reference image showing the specific marked SPI pins - please check it and rewire accordingly.

I tried wiring to the marked pins and I’m still getting the same error. Just to double check my reading of the diagram: CIPO = MISO, COPI = MOSI, and RESET = CS, is that right? Also, can this code run on newer versions of the Arduino IDE and Mega SDK, or do I need to change anything in the code? I’m still on IDE 2.0.1 and SDK 2.0.2 since those are what the docs list, and the older IDE takes a long time to start.

The circled part of your wiring is correct - CIPO = MISO and COPI = MOSI are right. But CS is not RESET. CS is a custom pin, pin 7, so please connect CS to pin 7. I’ve shared the wiring diagram so you can see the correct pin mapping.

That fixed it! After moving CS to pin 7 the camera works now. Thanks for the help!