Zephyr ILI9341 Display Driver Compilation Errors - Missing Devicetree Properties

I'm trying to use an ILI9341 display with nRF52840 in Zephyr (v4.1.99). The build fails with multiple errors about missing Devicetree properties when compiling display_ili9xxx.c:

Fullscreen
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

This is my overlay file:

Fullscreen
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I tried fixing the issue by modifying the prj.conf file, but it's still not working. Here's my current prj.conf:

Fullscreen
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

This is part from zephyr.dts which include spi1:

Fullscreen
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parents
  • Hi,

     

    It looks like you are setting up a legacy way of declaring a display node. Please see here for the new mipi-dpi setup:

    https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/zephyr/releases/migration-guide-3.7.html#display

     

    Please see here for an example implementation of your device:

    https://github.com/nrfconnect/sdk-zephyr/blob/v4.0.99-ncs1/boards/st/stm32f429i_disc1/stm32f429i_disc1.dts#L66-L101

     

    PS: you should use the NRF_SPIM hardware module instead of the NRF_SPI module that you are currently pointing towards in your device tree node.

    NRF_SPIM is DMA capable, so will be much faster than the NRF_SPI.

    Change this line:

    compatible = "nordic,nrf-spi";

    To:

    compatible = "nordic,nrf-spim";

     

    Kind regards,

    Håkon

  • Thank you very much. This is my overlay file now. But it is still do not show anything:

    Fullscreen
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    And this is my simple main.c:

    Fullscreen
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi,

     

    I assume you are able to successfully compile now? 

    Does the log show any issues?

     

    Have you probed the pins to see if the communication is as expected with the display?

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    I assume you are able to successfully compile now? 

    Does the log show any issues?

     

    Have you probed the pins to see if the communication is as expected with the display?

     

    Kind regards,

    Håkon

Children
No Data