You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Dear all,
I had an issue for displaying video streaming (ov5640) on LCD st7789v2 (320x240) with esp32s3 n16r8.
I tried to run this example in /driver/video/capture ](https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/drivers/video/capture)
The camera video worked well, but LCD display nothing. I check wire connection physically, and it connected correctly.
Here are results of running the code:
*** Booting Zephyr OS build v4.3.0-1368-gd02cdc734e6e ***
[00:00:01.248,000] main: Video device: lcd_cam@60041000
[00:00:01.248,000] main: - Capabilities:
[00:00:01.248,000] main: RGBP width [160; 160; 0] height [120; 120; 0]
[00:00:01.248,000] main: RGBP width [320; 320; 0] height [240; 240; 0]
[00:00:01.248,000] main: RGBP width [480; 480; 0] height [272; 272; 0]
[00:00:01.248,000] main: Camera final fmt: RGBP 160x120
[00:00:01.248,000] main: Using forced format: RGBP 160x120 (pitch=320 size=38400)
[00:00:01.248,000] main: - Video format: RGBP 160x120
[00:00:01.263,000] main: - Supported frame intervals for the default format:
[00:00:01.263,000] main: The video source does not support frame rate control
[00:00:01.263,000] main: - Supported controls:
[00:00:01.263,000] main: device: ov5640@3c
[00:00:01.265,000] main: Display device: st7789v@0
[00:00:01.265,000] main: - Capabilities:
[00:00:01.265,000] main: x_resolution = 320, y_resolution = 240, supported_pixel_fo0
[00:00:01.266,000] main: buffers or memory to start streaming: need 2 buffers, frame e
[00:00:01.266,000] main: buffers or memory to start streaming: need 2 buffers, frame e
[00:00:01.266,000] main: buffers or memory to start streaming: need 2 buffers, frame e
[00:00:01.266,000] main: buffers or memory to start streaming: need 2 buffers, frame e
[00:00:01.266,000] main: buffers or memory to start streaming: need 2 buffers, frame e
[00:00:01.266,000] main: Capture started
[00:00:01.314,000] main: Got frame 0! size: 38400; timestamp 0 ms
[00:00:01.361,000] main: Got frame 1! size: 38400; timestamp 0 ms
[00:00:01.408,000] main: Got frame 2! size: 38400; timestamp 0 ms
[00:00:01.454,000] main: Got frame 3! size: 38400; timestamp 0 ms
[00:00:01.501,000] main: Got frame 4! size: 38400; timestamp 0 ms
[00:00:01.548,000] main: Got frame 5! size: 38400; timestamp 0 ms
Here my configure:
prj.conf
CONFIG_VIDEO=y
CONFIG_SHELL=y
CONFIG_DEVICE_SHELL=y
CONFIG_PRINTK=y
CONFIG_LOG=y
CONFIG_DISPLAY=y
CONFIG_REQUIRES_FLOAT_PRINTF=y
CONFIG_LOG_MODE_DEFERRED=y
CONFIG_GPIO=y
CONFIG_SPI=y
CONFIG_ST7789V=y
CONFIG_ST7789V_RGB565=y
CONFIG_VIDEO_BUFFER_POOL_SZ_MAX=160000
CONFIG_VIDEO_BUFFER_POOL_NUM_MAX=5
CONFIG_ESP_SPIRAM=y
CONFIG_SPIRAM_MODE_OCT=y
CONFIG_VIDEO_BUFFER_POOL_ALIGN=32
CONFIG_DMA_ESP32_MAX_DESCRIPTOR_NUM=128
CONFIG_VIDEO_BUFFER_USE_SHARED_MULTI_HEAP=y
CONFIG_VIDEO_BUFFER_SMH_ATTRIBUTE=2
CONFIG_VIDEO_CTRL_VFLIP=y
here is .dtsi file:
&pinctrl {
i2c1_default: i2c1_default {
group1 {
pinmux = <I2C1_SDA_GPIO4>,
<I2C1_SCL_GPIO5>;
bias-pull-up;
drive-open-drain;
output-high;
};
};
};
here is .dts file:
....
mipi_dbi {
compatible = "zephyr,mipi-dbi-spi";
dc-gpios = <&gpio1 41 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio1 42 GPIO_ACTIVE_LOW>;
spi-dev = <&spi3>;
write-only;
#address-cells = <1>;
#size-cells = <0>;
Beta Was this translation helpful? Give feedback.
All reactions