Arducam Mega B0437 camera not responding over SPI on STM32, Arduino Due and Pi Pico

Hi everyone, I’m having trouble getting an Arducam B0437 (Mega 5MP Color Rolling Shutter Camera Module with M12 lens, Noir version) to respond at all. The lot code on the module is 20230825. It has never worked since I got it. I’ve tried it on three different boards — an STM32 Nucleo-L476RG, an Arduino Due, and a Raspberry Pi Pico — and I’m not getting any SPI response back, even when I drop the SPI frequency down to 312.5 kbits/s. Has anyone seen something like this?

Welcome to the forum. Let’s narrow this down a bit. Can you tell us which Arducam Mega SDK versions and which Arduino IDE versions you’re using? Also, when you say no SPI response, are you sending a specific command? For example, if you set the camera resolution command (CMD = 0x01) as the parameter, do you see anything come back on MISO?

I tried that one. With Set camera resolution (CMD = 0x01) set as the parameter, I get no response at all. I also tested at both 312.5 kbits/s and 1.25 Mbits/s — I left several bytes waiting for the response, but still nothing comes back. The Arduino Due also just doesn’t respond.

Thanks for the details. The Mega SPI camera protocol needs specific timing and a busy/ready check before you read the response. Which host communication structure are you following from the Arducam Host Communication Protocol documentation? Also, could you confirm the library version? There were some known issues with certain Arduino IDE 2.x versions.

I’ve tested different versions of the Arducam Mega SDK with different versions of the Arduino IDE on both the Due and the Raspberry Pi Pico. No response on any combination. More specifically, with Arduino IDE 2.0.2 and 2.0.1 the library doesn’t work at all, so I ended up using library version 1.0.0 just to get it to compile and run.

Got it. Let’s verify what’s actually happening on the bus. Do you have a logic analyzer handy? If so, could you capture the SPI frames while sending a camera characteristics query? Specifically on the STM32 Nucleo-L476RG, what do the MISO frames look like during that query?

I do have one. I captured the SPI frames with a logic analyzer on the STM32 Nucleo-L476RG — the camera never responds to the characteristics query. Same story for frames sent by the Arducam Mega software through the Due and the Pico: the analyzer shows the camera never responds to the SPI communication, and the software returns a ‘Parser timeout error’.

That parser timeout is consistent with the camera not clocking anything back on MISO. Which command are you sending when you see that error — are you trying 0x0F? And are you using the timing from the protocol doc to wait for the response before trying to read it?

Yes, I tried the 0x0F command and followed the ‘camera to host’ structure and the wait timing from the protocol. I also reduced the SPI frequency further and watched it on the logic analyzer, swapped the connection cables between the camera and the boards, and replicated the exact frames the Arducam Mega software sends. Still nothing. One other thing — the camera module heats up slightly. Is that normal, or could that point to a hardware problem?

A little warmth can be normal on these modules, but given that it’s not responding at all across three boards, multiple SDK and IDE versions, and low SPI rates, we need to look at the actual signaling. Could you post pictures or videos of the square waves the logic analyzer captures (SCK, MOSI, MISO, CS) and a screenshot of the parser timeout error? That will help us see whether the camera is holding MISO in a particular state or if there’s a signal integrity issue. As it stands, the camera has never returned a valid SPI response in any of these setups, so we haven’t pinned down a root cause yet — those captures are the next step.