Is it possible to use ESP23-S3 with LCD 16-bit i8080 and OV5640 camera at the same time?

petterk
Posts: 2
Joined: Sun Jul 28, 2024 10:50 am

Is it possible to use ESP23-S3 with LCD 16-bit i8080 and OV5640 camera at the same time?

Postby petterk » Sun Jul 28, 2024 11:34 am

We have made a custom board with a LCD screen with NT35510 and a 16-bits i8080 interface. The board also has a OV2640/OV5640 camera attached and uses a combination of an IO-expander and analog switches to get all GPIOs that is needed. The data and control pins for both LCD and Camera that are needed for communications are accessed directly as GPIOs in the ESP32-S3. The goal is to be able to show the image from the camera on the display.

The LCD works with touch and LVGL using the standard libraries esp_lcd and lvgl. The camera also works with help of esp_camera and we can stream images via WiFi to test the functions.

But we can't get both LCD and Camera to work at the same time. When we initialize the camera after initializing the LCD we get a WDT timeout. We have made a very simple test project that just initializes the i8080 interface and the camera. No touch or LVGL are implemented, to keep the code to a minimum.

We are using the latest version of SDK 5.2 (SDK 5.3 is also tested)


Logoutput when WDT happens:

Code: Select all

D (10236) gdma: new rx channel (0,0) at 0x3fce4180
I (10236) s3 ll_cam: DMA Channel=0
I (10236) cam_hal: cam init ok
D (10246) camera: Enabling XCLK output
D (10246) camera: Searching for camera address
I (10256) camera: Detected camera at address=0x3c
I (10256) camera: Detected OV5640 camera
I (10256) camera: Camera PID=0x5640 VER=0x00 MIDL=0x00 MIDH=0x00
D (10266) camera: Doing SW reset of sensor
D (10806) ov5640: Camera defaults loaded
I (10906) cam_hal: buffer_size: 16384, half_buffer_size: 1024, node_buffer_size: 1024, node_cnt: 16, total_cnt: 15
I (10906) cam_hal: Allocating 15360 Byte frame buffer in PSRAM
D (10906) intr_alloc: Connected src 66 to int 9 (cpu 0)
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0).
The WDT happens when the interrupt is set for VSYNC in the camera driver. No custom code is used at that point.

We can't figure out what is causing the WDT timeout and before we dig deeper or redesign the hardware, we ask if someone knows if there are any hardware or software limitations that prevents the use of LCD and Camera at the same time.

Thanks
/pk

petterk
Posts: 2
Joined: Sun Jul 28, 2024 10:50 am

Re: Is it possible to use ESP23-S3 with LCD 16-bit i8080 and OV5640 camera at the same time?

Postby petterk » Mon Jul 29, 2024 8:06 pm

I have now tested the same concept with a ESP32-S3 DevKitC, with 8-bit 8080 and an OV2640 (ESP LyraP-CAM), no IO-expander.
The code is almost the same but in this version just the standard components for ESP_LCD and ESP_CAMERA. The code just initializes the i8080 interface and the camera.

We still get Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0) during esp_camera_init(). So the problem is not related to our custom hardware.

So we are a uncertain if this setup is possible at all, just now it doesn't seem like it is...

/pk

Who is online

Users browsing this forum: Majestic-12 [Bot] and 58 guests