<?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>NCS zephyr SPI on nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87489/ncs-zephyr-spi-on-nrf52832</link><description>Hello, I&amp;#39;ve been trying to launch zephyr SPI example, but I&amp;#39;m having issues with SPI sending anything. The code itself does not throw any errors, and it seems like my board does execute spi_transceive function, but nothing on osciloscope. I&amp;#39;m not worried</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 May 2022 12:30:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87489/ncs-zephyr-spi-on-nrf52832" /><item><title>RE: NCS zephyr SPI on nRF52832</title><link>https://devzone.nordicsemi.com/thread/365982?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 12:30:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5d15fcf-f7dd-4202-9a32-742ef70e8850</guid><dc:creator>Jeff4BLE</dc:creator><description>&lt;p&gt;Hi Marius,&lt;/p&gt;
&lt;p&gt;Sorry I had confused CONFIG_SPI with a different SPI macro that has been modified earlier. CONFIG_SPI is the correct macro for NCS v1.9.1.&lt;/p&gt;
&lt;p&gt;I had started to draft a response to the post referencing the hci_spi project. Since that reference has been removed,&amp;nbsp; I assume that you now understand the hci_spi is used for communicating HCI API between the BLE Host and BLE controller over an SPI transport.&lt;/p&gt;
&lt;p&gt;An SPIS device can not transmit data without the outside world providing an SPI Clock. This is typically provided by a SPIM device.&lt;/p&gt;
&lt;p&gt;You could use the hci_spi example to piece an SPI example together. However, the&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/peripherals/posts/adding-a-peripheral-to-an-ncs-zephyr-project"&gt;Adding a Peripheral to an NCS Zephyr project&lt;/a&gt;&amp;nbsp;blog is a complete SPIS and SPIM example. For NCS 1.9.X, use the NCS 1.7 updates and move the nf52dk_nrf52840.overlay to the project&amp;#39;s root directory.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS zephyr SPI on nRF52832</title><link>https://devzone.nordicsemi.com/thread/365943?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 10:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58134b05-8819-4026-876a-25d38b6d9b6b</guid><dc:creator>Marius_U</dc:creator><description>&lt;p&gt;&lt;span&gt;I am using nRF Connect version 1.9.1. I honestly thought that what I was using is the latest thing. I guess now the question is what is the latest thing? Because I took this line &amp;quot;CONFIG_SPI&amp;quot; from sample code provided in the NCS sample which is called hci_spi.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS zephyr SPI on nRF52832</title><link>https://devzone.nordicsemi.com/thread/365836?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 16:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaafeabb-b5f6-4171-8146-616c36e41945</guid><dc:creator>Jeff4BLE</dc:creator><description>&lt;p&gt;Hi Marius,&lt;/p&gt;
&lt;p&gt;It would be helpful if you would include what version of NCS is being used. The use of CONFIG_SPI, suggests you may not be using the latest version.&lt;/p&gt;
&lt;p&gt;The implementation is that of an SPI Slave. Therefore, an SPI Clock must be present before data will be clocked out of the slave.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unless you are creating your own dts file for customer hardware, using an overlay is recommended over editing a dts file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The SPI is the peripheral used in the blog &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/peripherals/posts/adding-a-peripheral-to-an-ncs-zephyr-project"&gt;Adding a Peripheral to an NCS Zephyr project&lt;/a&gt;. It&amp;#39;s a bit dated, but it should help resolve any potential binding issues.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>