<?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>NRF52840 SPI with NCS 2.8 and above</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117888/nrf52840-spi-with-ncs-2-8-and-above</link><description>Hello! 
 I am returning to software development for a BLE Mesh project on the NRF52840 after being focused on the hardware development for several months. I see that NCS is now up to 2.9 and I am following the general Nordic recommendation to always use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jan 2025 10:16:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117888/nrf52840-spi-with-ncs-2-8-and-above" /><item><title>RE: NRF52840 SPI with NCS 2.8 and above</title><link>https://devzone.nordicsemi.com/thread/517907?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 10:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a65b4dc0-53dd-4669-ac03-cbf5008c871f</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;When using SPI to communicate with a sensor, the recommended way is to use a device driver for that SPI sensor rather than using the SPI API directly. &lt;br /&gt;Searching for spi_dt_spec in the SDK will yield some examples, but most are from device driver files.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 SPI with NCS 2.8 and above</title><link>https://devzone.nordicsemi.com/thread/517778?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 17:13:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:781c3bb9-32a3-4c9a-9301-137d96acaa29</guid><dc:creator>David Carlin</dc:creator><description>&lt;p&gt;Thank you Marte for the very speedy response!&lt;/p&gt;
&lt;p&gt;By committing to Nrf Connect / Zephyr I feel obligated to do things the Zephyr way. The example you have cited does not seem to use the same struct as the Dev Academy shows. Can Nordic Semi supply an example that:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;1. Uses the current NCS 2.9 SPI API, that is to say spi_dt_spec as shown in the Dev Academy SPI exercise&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;AND&lt;/p&gt;
&lt;p&gt;2. Allows me to send and receive bytes to a generic SPI without writing a complete device driver for that particular SPI sensor.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;David Carlin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 SPI with NCS 2.8 and above</title><link>https://devzone.nordicsemi.com/thread/517694?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 12:45:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6a311e4-b15b-4d86-8d56-81c6e317d430</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;There is an unofficial sample made by a former Nordic employee available here: &lt;a href="https://github.com/too1/ncs-spi-master-slave-example"&gt;https://github.com/too1/ncs-spi-master-slave-example&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is made for nRF Connect SDK v2.5.2, but it should work for later versions as well.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>