<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ST7735s lcd custom driver with NRFconnect.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97155/st7735s-lcd-custom-driver-with-nrfconnect</link><description>Hello. 
 i&amp;#39;m trying to implement st7735s 3pin SPI driver based on existing st7735r driver. 
 I used NrfConnect SDK v2.1.0 zephyr/out-of-tree driver example. 
 Adding custom display driver gives such error: No SOURCES given to Zephyr library: drivers__display</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Apr 2023 08:04:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97155/st7735s-lcd-custom-driver-with-nrfconnect" /><item><title>RE: ST7735s lcd custom driver with NRFconnect.</title><link>https://devzone.nordicsemi.com/thread/420929?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 08:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0657e3f6-c0f7-473c-a982-76ca19b22028</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user="Brendel V."]I thougth IT drivers are for official Zephyr repo. OOT drivers are for personal use.[/quote]
&lt;p&gt;You are correct, I got the terms mixed up.&lt;/p&gt;
[quote user="Brendel V."]Tryin to compile&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/example-application"&gt;https://github.com/zephyrproject-rtos/example-application&lt;/a&gt;&amp;nbsp;i got the same error as for my custom project[/quote]
&lt;p&gt;I tried replicating this but I am not able to see the same type of error you are seeing.&lt;/p&gt;
&lt;p&gt;I would suggest sticking with samples that are bundled with the SDK instead of downloading external examples when debugging something like this. You want to make sure you&amp;#39;re not introducing unnecessary extra complexity.&lt;/p&gt;
&lt;p&gt;-Einar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7735s lcd custom driver with NRFconnect.</title><link>https://devzone.nordicsemi.com/thread/420024?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2023 15:20:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:245b4d79-6fb7-450a-84ca-e02b681fa35f</guid><dc:creator>Brendel V.</dc:creator><description>&lt;p&gt;According to&amp;nbsp;&lt;a id="" href="https://blog.golioth.io/adding-an-out-of-tree-sensor-driver-to-zephyr/"&gt;https://blog.golioth.io/adding-an-out-of-tree-sensor-driver-to-zephyr/&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;There are two methods of adding a driver to Zephyr. The first is to add the relevant files to the OS directory internally, such as in&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr"&gt;the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;sensors&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;folder you see on the main Zephyr repo&lt;/a&gt;&lt;span&gt;. The second is to add the driver into a directory structure outside of Zephyr, known as Out-of-Tree.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Working &amp;ldquo;In-Tree&amp;rdquo; (IT) is the most straightforward: the sensor driver lives in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr"&gt;the official Zephyr repository&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;as if it was native to Zephyr the day the project started. Any hardware vendor hoping to get their device driver In-Tree would need to submit a Pull Request (PR) to the Zephyr project to be included on every computer compiling Zephyr in the future. This is also a benefit for my learning: there are many examples of how to do this in the main repository from all the PRs. I can go to GitHub and track down the change that incorporated any particular sensor. This serves as a guide, with relevant file additions and existing file modifications.&lt;/p&gt;
&lt;p&gt;Working in an &amp;ldquo;Out-of-Tree&amp;rdquo; (OOT) context means we will develop driver code independent of the central Zephyr repository, so no upstream changes are required. I think this helps to clarify the driver binding process and hierarchy. There are use cases for retaining the driver code alongside application code and not incorporating the driver within the OS, especially for projects that have customization or need to keep some aspect of driver code out of the public repositories.&amp;quot;&lt;/p&gt;
&lt;p&gt;I thougth IT drivers are for official Zephyr repo. OOT drivers are for personal use.&lt;/p&gt;
&lt;p&gt;I installed&amp;nbsp;NrfConnect for Destop&amp;nbsp;&lt;span&gt;from here:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-Desktop/Download#infotabs"&gt;https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-Desktop/Download#infotabs&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I did use&amp;nbsp;Toolchain Manager to install NCS.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NCS instalation path:&amp;nbsp;C:\code\v2.3.0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;My project with OOT driver:&amp;nbsp;C:\code\out_of_tree_driver_test2&lt;/p&gt;
&lt;p&gt;Zephyr example application path:&lt;/p&gt;
&lt;p&gt;C:\code\example-application-main&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;Can you give more context for what&amp;#39;s going on here? From the error it seems like a simple error like you&amp;#39;re missing a semicolon or something.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Tryin to compile&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/example-application"&gt;https://github.com/zephyrproject-rtos/example-application&lt;/a&gt;&amp;nbsp;i got the same error as for my custom project (archive added in first message).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I suppose the error arises due to KConfig system. Kconfig return 0 instead of pointer to device initialization functiom.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I added&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/example-application"&gt;https://github.com/zephyrproject-rtos/example-application&lt;/a&gt;&amp;nbsp;to show that problem not only with my custom project. I installed fresh NCS, downloaded&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/example-application"&gt;example-application&lt;/a&gt;&amp;nbsp;sources, extracted. Go to NRConnect for Desktop -&amp;gt; Toolchain Manager-&amp;gt; open bash-&amp;gt;&amp;nbsp;west build -b nrf52dk_nrf52832 app-&amp;gt; got error&amp;nbsp;c:\code\out_of_tree_driver_test2\build\zephyr\include\generated\devicetree_generated.h:11592:54: error: expected declaration specifiers or &amp;#39;...&amp;#39; before numeric constant&lt;br /&gt;11592 | #define DT_FOREACH_OKAY_INST_sitronix_st7735s(fn) fn(0)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;The same error i got on compile time for my custom project (on build time i got warning: No sources..).&lt;/p&gt;
&lt;p&gt;To narrow the trouble, i propose to use&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/example-application"&gt;https://github.com/zephyrproject-rtos/example-application&lt;/a&gt;&lt;span&gt;&amp;nbsp;with NCS&amp;nbsp;v2.3.0. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The problem is that i can&amp;#39;t compile this official Zephyr example project with NCS. The same error for&amp;nbsp;&lt;a id="" href="https://github.com/nrfconnect/ncs-example-application"&gt;https://github.com/nrfconnect/ncs-example-application&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Fresh installed NCS, fresh example application from Zephyr or Nordic -&amp;gt;&amp;nbsp;&lt;span&gt;west build -b nrf52dk_nrf52832 app -&amp;gt; error. I suppose that example application should work, because it shows most use cases for developers (including custom dts file and oot driver).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Brendel V.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7735s lcd custom driver with NRFconnect.</title><link>https://devzone.nordicsemi.com/thread/419933?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2023 11:26:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:376cc8e5-d689-4028-8d10-3a81f3467b6d</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello again&lt;/p&gt;
[quote user="Brendel V."]in-tree driver needs to add sources inside nRFconnect&amp;nbsp;zephyr folder. It&amp;#39;s a bad approch i think[/quote]
&lt;p&gt;I disagree.&lt;/p&gt;
&lt;p&gt;If you are making a driver with the intention of making it a part of the official Zephyr repository then of course it should be out of tree. But if you are only adding a driver for your own project then I think it&amp;#39;s perfectly fine to have it as part of your app sources.&lt;/p&gt;
[quote user="Brendel V."]&lt;p&gt;&lt;span&gt;For example trying to build&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/example-application"&gt;https://github.com/zephyrproject-rtos/example-application&lt;/a&gt;&amp;nbsp;i got:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;west build -b nrf52dk_nrf52832 app&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;How exactly have you installed NCS? It looks like you have everything installed inside your &amp;quot;code/&amp;quot; folder, have you used the Toolchain Manager in nRF Connect for Desktop to install it?&lt;/p&gt;
[quote user="Brendel V."]&lt;p&gt;c:\code\out_of_tree_driver_test2\build\zephyr\include\generated\devicetree_generated.h:11592:54: error: expected declaration specifiers or &amp;#39;...&amp;#39; before numeric constant&lt;br /&gt;11592 | #define DT_FOREACH_OKAY_INST_sitronix_st7735s(fn) fn(0)&lt;/p&gt;
&lt;p&gt;where fn(0) means what driver does not inited.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Can you give more context for what&amp;#39;s going on here? From the error it seems like a simple error like you&amp;#39;re missing a semicolon or something.&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7735s lcd custom driver with NRFconnect.</title><link>https://devzone.nordicsemi.com/thread/419356?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2023 07:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c90eb4a1-bef5-4ac0-be32-a7f9276142d0</guid><dc:creator>Brendel V.</dc:creator><description>&lt;p&gt;Futher digging into this isuue.&lt;/p&gt;
&lt;p&gt;It seems my first suggestions that problem related to CMake is not correct.&lt;/p&gt;
&lt;p&gt;CMake does see custom drivers sources. More likely problem related with Kconfig system. Kconfig do not iclude needed sorces, so driver compile fails with&amp;nbsp;&lt;/p&gt;
&lt;p&gt;c:\code\out_of_tree_driver_test2\build\zephyr\include\generated\devicetree_generated.h:11592:54: error: expected declaration specifiers or &amp;#39;...&amp;#39; before numeric constant&lt;br /&gt;11592 | #define DT_FOREACH_OKAY_INST_sitronix_st7735s(fn) fn(0)&lt;/p&gt;
&lt;p&gt;where fn(0) means what driver does not inited.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So actually driver sources tries to compile, but has wrong values from Kconfig system.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7735s lcd custom driver with NRFconnect.</title><link>https://devzone.nordicsemi.com/thread/418296?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 12:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d19e177-144c-4a5c-a4d4-7edcaaf84a47</guid><dc:creator>Brendel V.</dc:creator><description>&lt;p&gt;Thanks for you support, Einar.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&lt;span&gt;&amp;nbsp;was trying to&amp;nbsp;solve this isue for a month. No luck.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The main problem is that CMake provide too little&amp;nbsp;debug information.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I suppose that &amp;quot;No SOURCES given to Zephyr library: drivers__display&amp;quot; arries due to&amp;nbsp;&lt;/span&gt;&lt;span&gt;that Cmake can&amp;#39;t find .c sources because of&amp;nbsp;some nRFconnect build system bug.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I suppose that in-tree driver needs to add sources inside nRFconnect&amp;nbsp;zephyr folder. It&amp;#39;s a bad approch i think, because i want my git contain only app sources, not zephyr sources.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;On current state, i just stuck. All exapmples i found&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a id="" href="https://blog.golioth.io/adding-an-out-of-tree-sensor-driver-to-zephyr/"&gt;https://blog.golioth.io/adding-an-out-of-tree-sensor-driver-to-zephyr/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a id="" href="https://github.com/zephyrproject-rtos/example-application"&gt;https://github.com/zephyrproject-rtos/example-application&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a id="" href="https://zephyrproject.org/how-to-build-drivers-for-zephyr-rtos/"&gt;https://zephyrproject.org/how-to-build-drivers-for-zephyr-rtos/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;have some differences from my case.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For example trying to build&amp;nbsp;&lt;a id="" href="https://github.com/zephyrproject-rtos/example-application"&gt;https://github.com/zephyrproject-rtos/example-application&lt;/a&gt;&amp;nbsp;i got:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;west build -b nrf52dk_nrf52832 app&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;-- west build: generating a build system&lt;br /&gt;Loading Zephyr default modules (Zephyr base (cached)).&lt;br /&gt;-- Application: C:/code/example-application-main/app&lt;br /&gt;-- Using NCS Toolchain 2.3.0 for building. (C:/code/toolchains/v2.3.0/cmake)&lt;br /&gt;-- Cache files will be written to: C:/code/v2.3.0/zephyr/.cache&lt;br /&gt;-- Zephyr version: 3.2.99 (C:/code/v2.3.0/zephyr)&lt;br /&gt;-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)&lt;br /&gt;-- Board: nrf52dk_nrf52832&lt;br /&gt;-- Found host-tools: zephyr 0.15.2 (C:/code/toolchains/v2.3.0/opt/zephyr-sdk)&lt;br /&gt;-- Found toolchain: zephyr 0.15.2 (C:/code/toolchains/v2.3.0/opt/zephyr-sdk)&lt;br /&gt;-- Found Dtc: C:/code/toolchains/v2.3.0/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)&lt;br /&gt;-- Found BOARD.dts: C:/code/v2.3.0/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts&lt;br /&gt;-- Generated zephyr.dts: C:/code/example-application-main/build/zephyr/zephyr.dts&lt;br /&gt;-- Generated devicetree_generated.h: C:/code/example-application-main/build/zephyr/include/generated/devicetree_generated.h&lt;br /&gt;-- Including generated dts.cmake file: C:/code/example-application-main/build/zephyr/dts.cmake&lt;br /&gt;Parsing C:/code/example-application-main/app/Kconfig&lt;br /&gt;Loaded configuration &amp;#39;C:/code/v2.3.0/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832_defconfig&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;C:/code/example-application-main/app/prj.conf&amp;#39;&lt;br /&gt;Configuration saved to &amp;#39;C:/code/example-application-main/build/zephyr/.config&amp;#39;&lt;br /&gt;Kconfig header saved to &amp;#39;C:/code/example-application-main/build/zephyr/include/generated/autoconf.h&amp;#39;&lt;br /&gt;-- The C compiler identification is GNU 12.1.0&lt;br /&gt;-- The CXX compiler identification is GNU 12.1.0&lt;br /&gt;-- The ASM compiler identification is GNU&lt;br /&gt;-- Found assembler: C:/code/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe&lt;br /&gt;-- Configuring done&lt;br /&gt;-- Generating done&lt;br /&gt;-- Build files have been written to: C:/code/example-application-main/build&lt;br /&gt;-- west build: building application&lt;br /&gt;[1/166] Generating include/generated/version.h&lt;br /&gt;-- Zephyr version: 3.2.99 (C:/code/v2.3.0/zephyr), build: v3.2.99-ncs2&lt;br /&gt;[65/166] Building C object CMakeFiles/app.dir/src/main.c.obj&lt;br /&gt;FAILED: CMakeFiles/app.dir/src/main.c.obj&lt;br /&gt;C:\code\toolchains\v2.3.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF52832_XXAA -DUSE_PARTITION_MANAGER=0 -D__PROGRAM_START -D__ZEPHYR__=1 -Iapp/include -IC:/code/example-application-main/app/src -IC:/code/v2.3.0/zephyr/include -Izephyr/include/generated -IC:/code/v2.3.0/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/code/v2.3.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/code/v2.3.0/nrf/include -IC:/code/v2.3.0/nrf/tests/include -IC:/code/v2.3.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/code/v2.3.0/modules/hal/nordic/nrfx -IC:/code/v2.3.0/modules/hal/nordic/nrfx/drivers/include -IC:/code/v2.3.0/modules/hal/nordic/nrfx/mdk -IC:/code/v2.3.0/zephyr/modules/hal_nordic/nrfx/. -IC:/code/v2.3.0/modules/debug/segger/SEGGER -IC:/code/v2.3.0/modules/debug/segger/Config -IC:/code/v2.3.0/zephyr/modules/segger/. -isystem C:/code/v2.3.0/zephyr/lib/libc/minimal/include -isystem c:/code/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include -isystem c:/code/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/include-fixed -fno-strict-aliasing -Os -imacros C:/code/example-application-main/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/code/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/code/v2.3.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/code/example-application-main/app=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/code/v2.3.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/code/v2.3.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c C:/code/example-application-main/app/src/main.c&lt;br /&gt;In file included from C:/code/v2.3.0/zephyr/include/zephyr/toolchain/gcc.h:89,&lt;br /&gt; from C:/code/v2.3.0/zephyr/include/zephyr/toolchain.h:50,&lt;br /&gt; from C:/code/v2.3.0/zephyr/include/zephyr/kernel_includes.h:19,&lt;br /&gt; from C:/code/v2.3.0/zephyr/include/zephyr/kernel.h:17,&lt;br /&gt; from C:/code/example-application-main/app/src/main.c:6:&lt;br /&gt;C:/code/example-application-main/app/src/main.c: In function &amp;#39;main&amp;#39;:&lt;br /&gt;C:/code/v2.3.0/zephyr/include/zephyr/device.h:83:41: error: &amp;#39;__device_dts_ord_DT_N_NODELABEL_examplesensor0_ORD&amp;#39; undeclared (first use in this function)&lt;br /&gt; 83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)&lt;br /&gt; | ^~~~~~~~~&lt;br /&gt;C:/code/v2.3.0/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro &amp;#39;_DO_CONCAT&amp;#39;&lt;br /&gt; 132 | #define _DO_CONCAT(x, y) x ## y&lt;br /&gt; | ^&lt;br /&gt;C:/code/v2.3.0/zephyr/include/zephyr/device.h:83:33: note: in expansion of macro &amp;#39;_CONCAT&amp;#39;&lt;br /&gt; 83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)&lt;br /&gt; | ^~~~~~~&lt;br /&gt;C:/code/v2.3.0/zephyr/include/zephyr/device.h:209:37: note: in expansion of macro &amp;#39;DEVICE_NAME_GET&amp;#39;&lt;br /&gt; 209 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))&lt;br /&gt; | ^~~~~~~~~~~~~~~&lt;br /&gt;C:/code/v2.3.0/zephyr/include/zephyr/device.h:226:34: note: in expansion of macro &amp;#39;DEVICE_DT_NAME_GET&amp;#39;&lt;br /&gt; 226 | #define DEVICE_DT_GET(node_id) (&amp;amp;DEVICE_DT_NAME_GET(node_id))&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~&lt;br /&gt;C:/code/example-application-main/app/src/main.c:21:18: note: in expansion of macro &amp;#39;DEVICE_DT_GET&amp;#39;&lt;br /&gt; 21 | sensor = DEVICE_DT_GET(DT_NODELABEL(examplesensor0));&lt;br /&gt; | ^~~~~~~~~~~~~&lt;br /&gt;C:/code/v2.3.0/zephyr/include/zephyr/device.h:83:41: note: each undeclared identifier is reported only once for each function it appears in&lt;br /&gt; 83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)&lt;br /&gt; | ^~~~~~~~~&lt;br /&gt;C:/code/v2.3.0/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro &amp;#39;_DO_CONCAT&amp;#39;&lt;br /&gt; 132 | #define _DO_CONCAT(x, y) x ## y&lt;br /&gt; | ^&lt;br /&gt;C:/code/v2.3.0/zephyr/include/zephyr/device.h:83:33: note: in expansion of macro &amp;#39;_CONCAT&amp;#39;&lt;br /&gt; 83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)&lt;br /&gt; | ^~~~~~~&lt;br /&gt;C:/code/v2.3.0/zephyr/include/zephyr/device.h:209:37: note: in expansion of macro &amp;#39;DEVICE_NAME_GET&amp;#39;&lt;br /&gt; 209 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))&lt;br /&gt; | ^~~~~~~~~~~~~~~&lt;br /&gt;C:/code/v2.3.0/zephyr/include/zephyr/device.h:226:34: note: in expansion of macro &amp;#39;DEVICE_DT_NAME_GET&amp;#39;&lt;br /&gt; 226 | #define DEVICE_DT_GET(node_id) (&amp;amp;DEVICE_DT_NAME_GET(node_id))&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~&lt;br /&gt;C:/code/example-application-main/app/src/main.c:21:18: note: in expansion of macro &amp;#39;DEVICE_DT_GET&amp;#39;&lt;br /&gt; 21 | sensor = DEVICE_DT_GET(DT_NODELABEL(examplesensor0));&lt;br /&gt; | ^~~~~~~~~~~~~&lt;br /&gt;[70/166] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\code\toolchains\v2.3.0\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;C:\code\example-application-main\build&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So&amp;nbsp;even example application with oot driver can&amp;#39;t be build by nRFconnect build system. The reason i supose the same - build system do not see sources on some reason.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Brendel V.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7735s lcd custom driver with NRFconnect.</title><link>https://devzone.nordicsemi.com/thread/412758?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2023 13:35:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5621a155-95ca-45e8-81fa-8f66c3bebc8d</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Looking further into this, I was able to replicate your error.&lt;/p&gt;
&lt;p&gt;When using the existing st7735r driver instead I was able to compile, which confirms that your error is caused by something in your custom driver.&lt;/p&gt;
&lt;p&gt;I was also able to build the basic out of tree sample without your modifications with no issues.&lt;/p&gt;
&lt;p&gt;It seems like the main difference between the basic Zephyr sample and what you are trying to do; is that you want to add a driver to the &lt;code&gt;display&lt;/code&gt; module, instead of adding a completely free-standing module, and I believe this is the source of your issue.&lt;/p&gt;
&lt;p&gt;You should probably look over these parts of Zephyr&amp;#39;s CMake documentation, you might find some hints there to what is going on:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/3.1.0/develop/modules.html#module-integration-files-external"&gt;https://docs.zephyrproject.org/3.1.0/develop/modules.html#module-integration-files-external&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/3.1.0/develop/modules.html#integrate-modules-in-zephyr-build-system"&gt;https://docs.zephyrproject.org/3.1.0/develop/modules.html#integrate-modules-in-zephyr-build-system&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I believe the the key to this is figuring out how to make the display module find your st7735s driver, maybe it could be easier to add your driver in-tree?&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7735s lcd custom driver with NRFconnect.</title><link>https://devzone.nordicsemi.com/thread/412605?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 19:57:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be70f48f-c35e-45f8-96e5-c309863e1c47</guid><dc:creator>Brendel V.</dc:creator><description>&lt;div&gt;prj.conf fragment:&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SPI&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DISPLAY&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_ST7735S&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ST7735s lcd custom driver with NRFconnect.</title><link>https://devzone.nordicsemi.com/thread/412563?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 15:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31171c09-4e96-4a9a-99ae-a8f6a7e01f4b</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Looks very similar to this case:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/88367/cmake-warning-no-sources-given-to-zephyr-library-drivers__eeprom"&gt;CMake warning: No SOURCES given to Zephyr library: drivers__eeprom&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe you need to add &lt;code&gt;CONFIG_DISPLAY=y&lt;/code&gt; to your &lt;code&gt;prj.conf&lt;/code&gt;?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>