Hi , am developing the st7789v_minimal_sample application using Nrf52840. after creating minimal application am facing some unrecognisable issue. which am stuck can you please suggest me how to resolve it ? or where am going wrong? my nrf52840dk_nrf52840.overlay & proj.conf & Cmakelists.txt is as follows . and attaching the build issue for your reference.
nrf52840dk_nrf52840.overlay:
/ {
chosen {
zephyr,display = &st7789v;
};
#include <zephyr/dt-bindings/mipi_dbi/mipi_dbi.h>
mipi_dbi: mipi_dbi@0 {
compatible = "zephyr,mipi-dbi-spi";
dc-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
spi-dev = <&st7789v>;
reg = <0 1>; // Fix here
spi-max-frequency = <8000000>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
st7789v: st7789v@0 {
compatible = "sitronix,st7789v";
reg = <0>;
status = "okay";
width = <240>;
height = <240>;
pixel-format = "rgb565";
x-offset = <0>;
y-offset = <80>;
mipi-mode = <2>; // 4-wire SPI
gctrl = <0x35>;
vcom = <0x19>;
vrhs = <0x12>;
vdvs = <0x20>;
mdac = <0x00>;
lcm = <0x2c>;
colmod = <0x05>;
gamma = <0x01>;
porch-param = [0C 0C 00 33 33];
cmd2en-param = [5A 69 02 01];
pwctrl1-param = [A4 A1];
pvgam-param = [D0 04 0D 11 13 2B 3F 54 4C 18 0D 0B 1F 23];
nvgam-param = [D0 04 0C 11 13 2C 3F 44 51 2F 1F 1F 20 23];
ram-param = [00 F0];
rgb-param = [CD 08 14];
};
};
};
&spi2 {
status = "okay";
sck-pin = <15>;
mosi-pin = <13>;
cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
};
Proj.conf:
# Logging
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=4
# Display framework
CONFIG_DISPLAY=y
CONFIG_DISPLAY_LOG_LEVEL_DBG=y
# ST7789V driver via MIPI-DBI SPI interface
CONFIG_MIPI_DBI=y
CONFIG_MIPI_DBI_SPI=y
#CONFIG_SITRONIX_ST7789V=y
#CONFIG_SITRONIX_ST789V_RGB565=y
CONFIG_ST7789V=y
CONFIG_ST7789V_RGB565=y
# SPI & GPIO drivers
CONFIG_SPI=y
CONFIG_SPI_NRFX=y
CONFIG_GPIO=y
Cmakelists.txt:
cmake_minimum_required(VERSION 3.20.0)
set(DTC_OVERLAY_FILE boards/nordic/nrf52840dk_nrf52840.overlay)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(st7789v_display_example)
target_sources(app PRIVATE src/main.c)
zephyr_library_include_directories(drivers/display)
