Cannot get device binding in Zephyr

i write a simple code to show "hello world" at TFT adafruit 2.8'' 1947 over spi "ili9341" i flashed the code 
but i think it's stack at "device binding in Zephyr" but nothing appears at Display:

const struct device *display;
    // Initialize display
    display = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
    if (!device_is_ready(display)) {
        printf("Display device not ready\n");
        return 0;
    }

The overlay binding supposed to be correct.DSP_ili.rar

µc : nrf52840
Display : Adafruit 
  • Hi sabuna,

    I don't have the same display here so the best I can do is help you figure out the issue.

    but i think it's stack at "device binding in Zephyr" but nothing appears at Display:

    Could you please provide more details? What exactly happened?

    Hieu

  • Hi Hieu,

    I built the code without any errors and flashed it successfully.
    However, I think the code gets stuck at this function.
    If I comment out this function, I can see the green LCD blinking.

    It was just a simple test to configure the display and check whether it is working or not.
    But, as I mentioned previously, the code seems to get stuck at this function.

    The pin mapping is supposed to be correct, as well as its configuration in the overlay file.

    (µC) nrf52840

    Adafruit TFT Display

    +3V3

    Vin

    GND

    GND

    P1.15

    SCK

    P1.14

    MISO

    P1.13

    MOSI

    P1.12

    CS

    P1.11

    DC

    P1.10

    RST

  • Hi sabuna,

    Could you please enable CONFIG_LOG, try again, and see if there is any log?

    If there isn't, could you please enable debug optimization level, and step into the function to see where it fails?

    Hieu

Related