<?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>Enable SPIM0 and TWIM1 Drivers in KConfig NCS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95125/enable-spim0-and-twim1-drivers-in-kconfig-ncs</link><description>Hello, 
 I am trying to enable the SPIM0 and TWIM1 drivers for my current project. Under the VS Code GUI for KConfig, I see the options, but they are grayed out and cannot be selected. Can someone guide me as to how to enable them? Maybe I have something</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Jan 2023 08:55:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95125/enable-spim0-and-twim1-drivers-in-kconfig-ncs" /><item><title>RE: Enable SPIM0 and TWIM1 Drivers in KConfig NCS</title><link>https://devzone.nordicsemi.com/thread/403109?ContentTypeID=1</link><pubDate>Wed, 04 Jan 2023 08:55:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3738f225-7e0b-4ee1-93a5-f55442a8c989</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like it should work.&lt;br /&gt;The following part seems redundant, since you already set CONFIG_SPI and CONFIG_I2C in prj.conf:&lt;/p&gt;
[quote user="adnankhalid"]&lt;div&gt;&lt;span&gt;The following to the KCONFIG:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;config&lt;/span&gt;&lt;span&gt; CONFIG_SPI_NRFX&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;bool&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;Enable SPI NRFX&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;default&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;select&lt;/span&gt;&lt;span&gt; CONFIG_SPI&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;config&lt;/span&gt;&lt;span&gt; CONFIG_I2C_NRFX&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;bool&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;Enable SPI NRFX&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;default&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;select&lt;/span&gt;&lt;span&gt; CONFIG_I2C&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;To get started with SPI and I2C, see the following:&lt;/p&gt;
&lt;p&gt;Zephyr drivers for &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/zephyr/hardware/peripherals/spi.html"&gt;SPI&lt;/a&gt; and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/zephyr/hardware/peripherals/i2c.html"&gt;I2C&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For C code, have a look at this &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/tests/drivers/spi/spi_loopback/src/spi.c"&gt;spi test&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For an I2C example, I always liked &lt;a href="https://github.com/crfosse/ncs_projects/tree/main/peripheral_zephyr/i2c"&gt;https://github.com/crfosse/ncs_projects/tree/main/peripheral_zephyr/i2c&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For how to send serial data over Bluetooth Low Energy, the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;Peripheral UART sample&amp;nbsp; &lt;/a&gt;should be relevant.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable SPIM0 and TWIM1 Drivers in KConfig NCS</title><link>https://devzone.nordicsemi.com/thread/403060?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 23:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2e056c7-55c8-4fef-bc6b-f38080d852d7</guid><dc:creator>adnankhalid</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So I added the following to the overlay file:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;spi0&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; compatible &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;nordic,nrf-spim&amp;quot;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; status &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;okay&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; sck-pin &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;23&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; mosi-pin &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;25&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; miso-pin &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;24&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; cs-gpios &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;gpio0&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;22&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;GPIO_ACTIVE_LOW&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;spi1&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; status &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;disabled&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;i2c0&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; status &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;disabled&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;i2c1&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; compatible &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;nordic,nrf-twim&amp;quot;&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; status &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;okay&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I added the following to the prj.conf:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#Enable SPI and I2C&lt;/span&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_I2C&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SOC_NRF52832_ALLOW_SPIM_DESPITE_PAN_58&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;The following to the KCONFIG:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;config&lt;/span&gt;&lt;span&gt; CONFIG_SPI_NRFX&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;bool&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;Enable SPI NRFX&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;default&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;select&lt;/span&gt;&lt;span&gt; CONFIG_SPI&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;config&lt;/span&gt;&lt;span&gt; CONFIG_I2C_NRFX&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;bool&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;Enable SPI NRFX&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;default&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;select&lt;/span&gt;&lt;span&gt; CONFIG_I2C&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Now I seem to have access to the SPIM and TWIM drivers!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Please advise if this is the right approach?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;Now I am trying to find the equivalent in NCS for the following:&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;Get image data over the SPI/TWI and send it over BLE to device&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;Any help/sample code to get this done would be most helpful.&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable SPIM0 and TWIM1 Drivers in KConfig NCS</title><link>https://devzone.nordicsemi.com/thread/403034?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2023 16:58:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cb97c97-2cd3-4334-a680-63452ba3945d</guid><dc:creator>adnankhalid</dc:creator><description>&lt;p&gt;Hello Siguard,&lt;/p&gt;
&lt;p&gt;So in the echo_bot example I commented out the&amp;nbsp;&lt;span&gt;CONFIG_NRFX_SPIM0 and CONFIG_NRFX_TWIM1 configs in the prj.conf file and the overlay file already had the spi0 and i2c1 enabled as follows:&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;spi0&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; status &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;okay&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;spi1&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; status &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;disabled&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;i2c1&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; status &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;okay&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;i2c0&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; status &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;disabled&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I built and flashed the sample to the board but again I do not get anything on the RTT.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Please advise.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Adnan&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable SPIM0 and TWIM1 Drivers in KConfig NCS</title><link>https://devzone.nordicsemi.com/thread/402851?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2023 14:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e43d34e-c80a-463c-b23d-6d72489e3ddf</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Adnan,&lt;/p&gt;
&lt;p&gt;You&amp;nbsp; are right, I forgot to check the build log.&lt;/p&gt;
&lt;p&gt;Instead of using CONFIG_NRFX_SPIM and CONFIG_NRFX_TWIM1, can you instead try to only set spi0/i2c1&amp;nbsp; in the devicetree?&lt;br /&gt;And enable CONFIG_SPI and CONFIG_I2C.&lt;/p&gt;
&lt;p&gt;Then I think the configuration system might handle the rest.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable SPIM0 and TWIM1 Drivers in KConfig NCS</title><link>https://devzone.nordicsemi.com/thread/402702?ContentTypeID=1</link><pubDate>Fri, 30 Dec 2022 18:06:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f164f332-7e18-4389-9ca1-8334fdfd2247</guid><dc:creator>adnankhalid</dc:creator><description>&lt;p&gt;Hello Siguard,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So the sample builds, compiles and flashes but I get nothing on the NRF RTT Terminal. A look at the prj.conf file shows 2 problems:&lt;/p&gt;
&lt;p&gt;1)&amp;nbsp;CONFIG_NRFX_SPIM0 was assigned the value y, but got the value n. Missing dependencies:&lt;/p&gt;
&lt;div&gt;n&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;2)&amp;nbsp;CONFIG_NRFX_TWIM1 was assigned the value y, but got the value n. Missing dependencies:
&lt;div&gt;n&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I am running nRF Connect SDK v2.1.2 with&amp;nbsp;&lt;span&gt;nRF52 DK (nRF52832) eval board: PCA10040, 2.1.0, 2021.02.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Please advise. Thanks!&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Adnan&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable SPIM0 and TWIM1 Drivers in KConfig NCS</title><link>https://devzone.nordicsemi.com/thread/402492?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 08:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1977c60a-ec60-4aab-bdb8-6a14dd4036eb</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Adnan,&lt;/p&gt;
&lt;p&gt;Does this sample work for you?&lt;/p&gt;
&lt;p&gt;It is based on the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/zephyr/samples/drivers/uart/echo_bot/README.html"&gt;zephyr UART driver sample&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/echo_5F00_bot_5F00_with_5F00_i2c_5F00_and_5F00_spi.zip"&gt;devzone.nordicsemi.com/.../echo_5F00_bot_5F00_with_5F00_i2c_5F00_and_5F00_spi.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable SPIM0 and TWIM1 Drivers in KConfig NCS</title><link>https://devzone.nordicsemi.com/thread/402464?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 17:37:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcb58298-8e31-4bed-846d-9f7e759892e6</guid><dc:creator>adnankhalid</dc:creator><description>&lt;p&gt;Hi Siguard,&lt;/p&gt;
&lt;p&gt;So when I look into the dependencies of the SPIM0 and TWIM1 in the KCONGIH GUI. They are both grayed out, so cannot be selected, and the only thing it says for dependencies is =n.&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/pastedimage1672248975601v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I need to, some how, enable the NRFX SPIM0 and NRFX TWIM1 drivers to move forward with my project.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Adnan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable SPIM0 and TWIM1 Drivers in KConfig NCS</title><link>https://devzone.nordicsemi.com/thread/402367?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2022 08:47:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:948eee6d-7f74-4a90-8c95-fb8cb8719e9d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Adnan,&lt;/p&gt;
&lt;p&gt;Ah, then we know that the devicetree is correct.&lt;/p&gt;
&lt;p&gt;The errors below is that Kconfigs are not set.&lt;br /&gt;You can check their dependencies of Kconfig options in VS Code using the Kconfig feature:&lt;br /&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/pastedimage1672216975903v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Then check the value of the dependencies:&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/pastedimage1672217033180v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Does this show you what you are missing with your options?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable SPIM0 and TWIM1 Drivers in KConfig NCS</title><link>https://devzone.nordicsemi.com/thread/402322?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2022 18:07:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fe45d4a-66d8-4bf4-9930-bf6b749bd9e7</guid><dc:creator>adnankhalid</dc:creator><description>&lt;p&gt;Hello Sigurd,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My apologies, I misunderstood the question. Yes the peripherals (GPIO and ADC) from my custom overlay file are indeed represented in the zephyr.dts file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Further proof of this is that my control code in main is working. I can control the GPIOs and the read from the desired ADC input.&lt;/p&gt;
&lt;p&gt;The kit I am using is the nRF52 DK (nRF52832). I am trying to integrate a camera module and need access to the SPIM and TWIM drivers, hence the original question.&lt;/p&gt;
&lt;p&gt;Please advise.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Adnan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable SPIM0 and TWIM1 Drivers in KConfig NCS</title><link>https://devzone.nordicsemi.com/thread/402218?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2022 09:16:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ed07dcc-a2fb-4b2a-9924-d27dc30d0ed2</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="adnankhalid"]I cannot see the peripherals in this file.[/quote]
&lt;p&gt;If you can not see the peripherals in this zephyr.dts, it means that your devicetree overlay was not included properly.&lt;/p&gt;
&lt;p&gt;How did you include your overlay into your project?&lt;/p&gt;
&lt;p&gt;For later reference: Which developement kit are you using?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable SPIM0 and TWIM1 Drivers in KConfig NCS</title><link>https://devzone.nordicsemi.com/thread/402207?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2022 08:04:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e11f638-7f22-431d-8f94-e1e96bb634a3</guid><dc:creator>adnankhalid</dc:creator><description>&lt;p&gt;Hello Siguard,&lt;/p&gt;
&lt;p&gt;Thank you for getting back to me on this. Please review the requested info below:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// To get started, press Ctrl+Space to bring up the completion menu and view the available nodes.

// You can also use the buttons in the sidebar to perform actions on nodes.
// Actions currently available include:

// * Enabling / disabling the node
// * Adding the bus to a bus
// * Removing the node
// * Connecting ADC channels

// For more help, browse the DeviceTree documentation at https://docs.zephyrproject.org/latest/guides/dts/index.html
// You can also visit the nRF DeviceTree extension documentation at https://nrfconnect.github.io/vscode-nrf-connect/devicetree/nrfdevicetree.html
&amp;amp;pinctrl {
	pwm0_default: pwm0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 11)&amp;gt;;
			nordic,invert;
		};
	};

	pwm0_sleep: pwm0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 11)&amp;gt;;
			low-power-enable;
		};
	};

    pwm1_default: pwm1_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 12)&amp;gt;;
			nordic,invert;
		};
	};

	pwm1_sleep: pwm1_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 12)&amp;gt;;
			low-power-enable;
		};
	};

    pwm2_default: pwm2_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 13)&amp;gt;;
			nordic,invert;
		};
	};

	pwm2_sleep: pwm2_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(PWM_OUT0, 0, 13)&amp;gt;;
			low-power-enable;
		};
	};
};

/ {
	pwmleds {
		compatible = &amp;quot;pwm-leds&amp;quot;;
		pwm_led0: pwm_led_0 {
			pwms = &amp;lt;&amp;amp;pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED&amp;gt;;
		};
        pwm_led1: pwm_led_1 {
			pwms = &amp;lt;&amp;amp;pwm1 0 PWM_MSEC(20) PWM_POLARITY_INVERTED&amp;gt;;
		};
        pwm_led2: pwm_led_2 {
			pwms = &amp;lt;&amp;amp;pwm2 0 PWM_MSEC(20) PWM_POLARITY_INVERTED&amp;gt;;
		};
	};

    aliases {
        pwm-led0 = &amp;amp;pwm_led0;
        pwm-led1 = &amp;amp;pwm_led1;
        pwm-led2 = &amp;amp;pwm_led2;
		adcctrl = &amp;amp;adc;
    };
};

&amp;amp;pwm0 {
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;pwm0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pwm0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};
&amp;amp;pwm1 {
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;pwm1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pwm1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};
&amp;amp;pwm2 {
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;pwm2_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pwm2_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;adc { /* ADC */
    label = &amp;quot;adc&amp;quot;;
    status = &amp;quot;okay&amp;quot;;
   };&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;zephyr.dts&lt;/p&gt;
&lt;p&gt;I cannot see the peripherals in this file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;KCONFIG compile issues:&lt;/p&gt;
&lt;p&gt;warning: BT_SMP (defined at C:/TPR-Nordicsemi-&lt;br /&gt;Sources/ncs/v2.1.2/zephyr/subsys/bluetooth/host/Kconfig:317, subsys/bluetooth\host/Kconfig:317) was&lt;br /&gt;assigned the value &amp;#39;n&amp;#39; but got the value &amp;#39;y&amp;#39;. See&lt;br /&gt;&lt;a href="http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_BT_SMP"&gt;docs.zephyrproject.org/.../kconfig.html&lt;/a&gt; and/or look up BT_SMP in the&lt;br /&gt;menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,&lt;br /&gt;and Kconfig - Tips and Best Practices sections of the manual might be helpful too.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;warning: NRFX_SPIM0 (defined at C:/TPR-Nordicsemi-&lt;br /&gt;Sources/ncs/v2.1.2/zephyr/modules/hal_nordic\nrfx/Kconfig:193, modules\hal_nordic\nrfx/Kconfig:193)&lt;br /&gt;was assigned the value &amp;#39;y&amp;#39; but got the value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: n (=n). See&lt;br /&gt;&lt;a href="http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_NRFX_SPIM0"&gt;docs.zephyrproject.org/.../kconfig.html&lt;/a&gt; and/or look up NRFX_SPIM0 in the&lt;br /&gt;menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,&lt;br /&gt;and Kconfig - Tips and Best Practices sections of the manual might be helpful too.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;warning: NRFX_TWIM1 (defined at C:/TPR-Nordicsemi-&lt;br /&gt;Sources/ncs/v2.1.2/zephyr/modules/hal_nordic\nrfx/Kconfig:298, modules\hal_nordic\nrfx/Kconfig:298)&lt;br /&gt;was assigned the value &amp;#39;y&amp;#39; but got the value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: n (=n). See&lt;br /&gt;&lt;a href="http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_NRFX_TWIM1"&gt;docs.zephyrproject.org/.../kconfig.html&lt;/a&gt; and/or look up NRFX_TWIM1 in the&lt;br /&gt;menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,&lt;br /&gt;and Kconfig - Tips and Best Practices sections of the manual might be helpful too.&lt;/p&gt;
&lt;p&gt;-- The C compiler identification is GNU 10.3.0&lt;br /&gt;-- The CXX compiler identification is GNU 10.3.0&lt;br /&gt;-- The ASM compiler identification is GNU&lt;br /&gt;-- Found assembler: C:/TPR-Nordicsemi-Sources/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe&lt;br /&gt;CMake Warning at C:/TPR-Nordicsemi-Sources/ncs/v2.1.2/zephyr/CMakeLists.txt:1839 (message):&lt;br /&gt; __ASSERT() statements are globally ENABLED&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable SPIM0 and TWIM1 Drivers in KConfig NCS</title><link>https://devzone.nordicsemi.com/thread/402202?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2022 07:45:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb086b5c-ecdc-420b-b2e2-6d262abcef94</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Adnan,&lt;/p&gt;
&lt;p&gt;Can you post your custom overlay file using Insert-&amp;gt;Code?&lt;/p&gt;
&lt;p&gt;You can see the devicetree configuration of the compiled project from build/zephyr/zephyr.dts.&lt;br /&gt;Can you see the status of the peripherals here?&lt;/p&gt;
[quote user=""]Manually adding them in the KConfig only produces compile errors. [/quote]
&lt;p&gt;Can you post the errors you get using Insert-&amp;gt;Code?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable SPIM0 and TWIM1 Drivers in KConfig NCS</title><link>https://devzone.nordicsemi.com/thread/402111?ContentTypeID=1</link><pubDate>Fri, 23 Dec 2022 20:03:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24fd7a4d-e4cf-49ec-92db-55550ef295f9</guid><dc:creator>adnankhalid</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am trying to use a peripheral, camera module, that&amp;#39;s why I need access to the drivers. No other peripheral.&lt;/p&gt;
&lt;p&gt;I am modifying the Peripheral_UART example for this. I did add a custom overlay file but that has only GPIOs and ADC mappings. I have not touched any of the IDs.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Adnan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable SPIM0 and TWIM1 Drivers in KConfig NCS</title><link>https://devzone.nordicsemi.com/thread/402050?ContentTypeID=1</link><pubDate>Fri, 23 Dec 2022 09:21:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1808f788-3137-4345-a048-084182991581</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;Are you using other peripherals with the same &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/memory.html?cp=4_2_0_7_3#topic"&gt;peripheral ID&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Also, check the status of the peripherals in the &lt;a href="https://academy.nordicsemi.com/topic/configuration-files/"&gt;devicetree&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>