<?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>Enabling SPI and TWI drivers on Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113087/enabling-spi-and-twi-drivers-on-zephyr</link><description>Hi 
 First the fundamentals, I am using: 
 
 nRF52840-DK 
 nRF Connect for VS Code: v2024.7.13 
 
 I am trying to create a demonstration project, where I need both SPI and TXI/I2C. 
 Here is a copy of the essentials: 
 prj.conf: 
 
 
 nrf52840dk_nrf52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jul 2024 06:17:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113087/enabling-spi-and-twi-drivers-on-zephyr" /><item><title>RE: Enabling SPI and TWI drivers on Zephyr</title><link>https://devzone.nordicsemi.com/thread/495122?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 06:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba320b3c-d200-492d-8306-b1170f60fb43</guid><dc:creator>kleonhardt</dc:creator><description>&lt;p&gt;Everything is fine. I was just mixing up the devicetree drivers &lt;span&gt;&amp;lt;zephyr/drivers/i2c.h&amp;gt;&amp;nbsp;&lt;/span&gt;with the direct drivers&amp;nbsp;&lt;span&gt;&amp;lt;nrfx_twim.h&amp;gt;. And the fact that most NCS peripheral examples are made with the direct drivers was confusing. Only the examples made for target chip&amp;nbsp;(e.g. bme280 sensor) are made with the devicetree and Zephyr drivers.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling SPI and TWI drivers on Zephyr</title><link>https://devzone.nordicsemi.com/thread/494874?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 17:05:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c660c73-a722-413a-a20a-ddfea44876de</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Is this happening to only this project, or any other project with the overlay that you create?&lt;/p&gt;
&lt;p&gt;Can you exit and restart the VS code and see if it configures correctly?&lt;/p&gt;
&lt;p&gt;Once I also had a weird (but kind of same issue) that the configurations of a specific project were applied to new projects, but I got rid of that by reinstalling. That might also help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling SPI and TWI drivers on Zephyr</title><link>https://devzone.nordicsemi.com/thread/494271?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2024 06:49:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ebeaa97-a2ef-4525-97d6-d45b225e2087</guid><dc:creator>kleonhardt</dc:creator><description>&lt;p&gt;Thanks for the example. It did not compile out of the box, because the path to the devicetree file contains folder names on your local drive. But after changing that, i did build. And I was focusing on the build lines regarding the devicetree: (I shortened the project paths for simplicity)&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- Found BOARD.dts: C:/ncs/v2.5.1/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: C:/.../hello_world_2/nrf52840dk_nrf52840.overlay
-- Found devicetree overlay: nrf52840dk_nrf52840.overlay
-- Generated zephyr.dts: C:/.../hello_world_2/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/.../hello_world_2/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/.../hello_world_2/build/zephyr/dts.cmake
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And the I compared it with the build output from my project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- Found BOARD.dts: C:/ncs/v2.5.1/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts
-- Generated zephyr.dts: C:/.../display-demo/build_1/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/.../display-demo/build_1/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/.../display-demo/build_1/zephyr/dts.cmake
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Therefore I verified the build configuration, where&amp;nbsp;devicetree overlays can be added. It was missing. I believed that I just forgot it (or did not know anything about it). I added it, and hit the &amp;quot;Build Configuration&amp;quot; Button. BUT: No change. I looked at the build configuration once again, and the reference to the devicetree overlay was empty again.&lt;/p&gt;
&lt;p&gt;Byt why . . .&amp;nbsp; ? ? ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling SPI and TWI drivers on Zephyr</title><link>https://devzone.nordicsemi.com/thread/494191?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2024 14:19:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8063e491-9e18-450a-99ab-2056edccd8d4</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am using NCS 2.6.1, and I am not getting any issue: can build and flash&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1721139443588v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Just attaching the whole project (with the build folder as well).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hello_5F00_world_5F00_2.rar"&gt;devzone.nordicsemi.com/.../hello_5F00_world_5F00_2.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>