This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

About SSD1306 Intergration

Dear support, 

I am the beginner of  of the Nordic with 52840 chipset, i am try to running sdk 1.90 with zephyr os 

i am try to running this case : cfb

C:\Nordic\NCS\v1.9.0\zephyr\samples\subsys\display

always show me this error.

could you show me some tips ?

C:\Nordic\NCS\v1.9.0\zephyr\include\device.h:291:37: note: in expansion of macro 'DEVICE_NAME_GET'
291 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_NAME(node_id))
| ^~~~~~~~~~~~~~~
C:\Nordic\NCS\v1.9.0\zephyr\include\device.h:311:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
311 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
| ^~~~~~~~~~~~~~~~~~
d:\display1\cfb\src\main.c:20:8: note: in expansion of macro 'DEVICE_DT_GET'
20 | dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));

Parents
  • \Nordic\NCS\v1.9.0\zephyr\include\device.h:96:39: error: '__device_dts_ord_DT_CHOSEN_zephyr_display_ORD' undeclared (first use in this function)
    96 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)
    | ^~~~~~~~~
    C:\Nordic\NCS\v1.9.0\zephyr\include\toolchain\common.h:132:26: note: in definition of macro '_DO_CONCAT'
    132 | #define _DO_CONCAT(x, y) x ## y
    | ^
    C:\Nordic\NCS\v1.9.0\zephyr\include\device.h:96:31: note: in expansion of macro '_CONCAT'
    96 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)
    | ^~~~~~~

  • Hi Steve,

    It may look as a dummy question, but do you have a display connected to your board ?

    dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));

    This line means that, in your board's dts file, you have a node named "zephyr_display" that you can instantiate inside your program.

    Take a look here or here for more information on dts, here for a few information about SSD1306, and here for another related topic.

Reply
  • Hi Steve,

    It may look as a dummy question, but do you have a display connected to your board ?

    dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));

    This line means that, in your board's dts file, you have a node named "zephyr_display" that you can instantiate inside your program.

    Take a look here or here for more information on dts, here for a few information about SSD1306, and here for another related topic.

Children
No Data
Related