# How to Build Drivers for Zephyr | Interrupt

**URL:** <https://community.memfault.com/t/how-to-build-drivers-for-zephyr-interrupt/238>\
**Category:** Blog\
**Created:** [July 23, 2020, 7:46pm UTC](https://community.memfault.com/t/how-to-build-drivers-for-zephyr-interrupt/238 "2020-07-23T19:46:37Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![FrankW](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@FrankW](https://community.memfault.com/u/FrankW)\
**Post date:** [March 31, 2023, 12:40pm UTC](https://community.memfault.com/t/how-to-build-drivers-for-zephyr-interrupt/238/14 "2023-03-31T12:40:10Z")

</div>

Thanks for this tutorial @jaredwolff

I wanted to use it to write a driver for my display with an SSD7317.  
As a template, I took the display driver of the SSD1306 which is already available in the device tree of Zephyr.

I have packed the shield definition into my overlay file, as I have connected it directly to my board.

```auto
	chosen {
		nordic,pm-ext-flash = &mx25r64;
		zephyr,display = &ssd7317;
	};
};

&arduino_i2c {
	status = "okay";

	ssd7317: ssd7317@3c {
		compatible = "solomon,ssd7317";
		reg = <0x3c>;
		width = <128>;
		height = <32>;
		segment-offset = <0>;
		page-offset = <0>;
		display-offset = <0>;
		multiplex-ratio = <31>;
		segment-remap;
		com-invdir;
		com-sequential;
		prechargep = <0x22>;
	};
};

```

Now when I want to use it with LVGL I have the problem that it doesn’t seem to find the device in the DTS.

I get a ` No SOURCES given to Zephyr library: drivers__display` as a warning when compiling and at the end the linker fails with `undefined reference to `\_\_device\_dts\_ord\_128`'.

In zephyr.dts my driver is listed as expected.

However, if I place the same driver under zephyr/drivers/display and adjust the Kconfig and CMakeList.txt the compilation runs through without any errors.  
It also works if I omit the `zephyr_library()` in the CMakeLists.txt of the driver.

Do you have any hints what I am doing wrong with the driver in my project or what I could still check?

---

_[View the full topic](https://community.memfault.com/t/how-to-build-drivers-for-zephyr-interrupt/238)._
