Pico RGB565 opinion doesn’t seem to work

  1. Where did you get the camera module(s)?

  2. Model number of the product(s)?
    OV2640 2MP

  3. What hardware/platform were you working on?
    Raspberry pi pico.

  4. Instructions you have followed. (link/manual/etc.)
    I am using the https://github.com/ArduCAM/RPI-Pico-Cam/tree/master/tflmicro/Arducam/src repository which has a function to set the camera as RGB565.

  5. Problems you were having?
    I am trying to get the RGB565 data from the camera but the code stops when it tries to read the data from spi for RGB_565. The camera seems to work when using YUV.

  6. Troubleshooting attempts you’ve made?
    I’ve tried using the print function to see where the code stops and it seems to stop at spi_read_blocking(SPI_PORT, BURST_FIFO_READ, value, length);

  7. What help do you need?
    I am trying to read the rgb data from the camera using the tflmicro library from the RPI-Pico-Cam repository however, it doesn’t seem to work. The code I am currently using is similar to the code for Arducam_demo

#include <stdio.h>
#include <string.h>
#include “pico/stdlib.h”
#include “hardware/i2c.h”
#include “hardware/spi.h”
#include “pico/binary_info.h”
#include “src/arducam.h”
int main() {
uint8_t table[320*240] = {};
picoSystemInit();
if(spiBusDetect()){
return 1;
}
if(ov2640Probe()){
return 1;
}
ov2640Init(RGB565);
arducam.setJpegSize(res_320x240); // I have tried both deleting and keeping this here but it doesn’t seem to work
while (true) {
capture(&table);
}
return 0;
}
The code goes up to capture and then stops, inside the function it seems to stop at
spi_read_blocking(SPI_PORT, BURST_FIFO_READ, value, length);

Hello,

In our PICO project, OV2640 has no RGB configuration, only YUV and JPEG configurations.