Hello Zephyr Community,

I am trying to write the device tree for the lcd-tft display of STM32F769I_DISCO board. So that i can work with display of this controller. But after writing the devicetree, i got this kind of error while building the display sample provided by zephyr . Can any one help me to solve this error?

/home/hico/zephyrproject/zephyr/include/zephyr/device.h:85:41: error: '__device_dts_ord_DT_CHOSEN_zephyr_display_ORD' undeclared (first use in this function)
   85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
/home/hico/zephyrproject/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT'
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
/home/hico/zephyrproject/zephyr/include/zephyr/device.h:85:33: note: in expansion of macro '_CONCAT'
   85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
/home/hico/zephyrproject/zephyr/include/zephyr/device.h:211:37: note: in expansion of macro 'DEVICE_NAME_GET'
  211 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
/home/hico/zephyrproject/zephyr/include/zephyr/device.h:228:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  228 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
/home/hico/zephyrproject/zephyr/samples/drivers/display/src/main.c:178:23: note: in expansion of macro 'DEVICE_DT_GET'
  178 |         display_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
      |                       ^~~~~~~~~~~~~
/home/hico/zephyrproject/zephyr/include/zephyr/device.h:85:41: note: each undeclared identifier is reported only once for each function it appears in
   85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
/home/hico/zephyrproject/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT'
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
/home/hico/zephyrproject/zephyr/include/zephyr/device.h:85:33: note: in expansion of macro '_CONCAT'
   85 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
/home/hico/zephyrproject/zephyr/include/zephyr/device.h:211:37: note: in expansion of macro 'DEVICE_NAME_GET'
  211 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
/home/hico/zephyrproject/zephyr/include/zephyr/device.h:228:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  228 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
/home/hico/zephyrproject/zephyr/samples/drivers/display/src/main.c:178:23: note: in expansion of macro 'DEVICE_DT_GET'
  178 |         display_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
      |                       ^~~~~~~~~~~~~
[42/177] Building C object zephyr/CMak...ogging/backends/log_backend_uart.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/hico/zephyrproject/zephyr/build

Thank you very much. Have a nice day!!

Best Regards,
Abhishek Panchal

    Hello , i have solved all the errors related to device tree and i can load display example on cntroller but still lcd display of stm32f769i_disco board is not turning on any idea why its not turning on ? and How to turn it on ?

    This is the pin configuration:
    #include “arduino_r3_connector.dtsi”

    /{
    dsi_lcd_qsh_030: connector_dsi_lcd {
    status = “okay”;
    compatible = “st,dsi-lcd-qsh-030”;
    #gpio-cells = <2>;
    gpio-map-mask = <0xffffffff 0xffffffc0>;
    gpio-map-pass-thru = <0 0×3f>;
    gpio-map = <4 0 &gpioi 13 0>, /* LCD_INT /
    <39 0 &gpiod 11 0>, /
    I2S /
    <40 0 &gpiob 7 0>, /
    I2C4_SDA /
    <44 0 &gpiod 12 0>, /
    I2C4_SCL /
    <49 0 &gpioj 2 0>, /
    DSI_TE /
    <53 0 &gpioi 14 0>, /
    LCD_BL_CTRL /
    <57 0 &gpioj 15 0>; /
    DSI_RESET */
    };
    };
    If you need any other details let me know.
    Thank you .
    Regards,
    Abhishek

    I would check the power path and make sure it’s getting power. Then move on to any chip enable or reset pins to make sure they’re in the right state. Also turn on debug in the display driver to see if you’re getting any issues.

    Hope that helps @abbhishek4444

    Terms and Conditions | Privacy Policy