<?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>SPI in nrf connect sdk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92572/spi-in-nrf-connect-sdk</link><description>hi, 
 I&amp;#39;m using nrf connect sdk to communicate spi sensor. 
 which is better choice to use SPI in ncs (nrfx driver or zephyr ) ? 
 i) nrfx_driver: nrfx_spim_init(&amp;amp;spi, &amp;amp;spi_config, spim_event_handler, NULL); 
 ii) zephyr : spim_dev = device_get_binding</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Oct 2022 10:41:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92572/spi-in-nrf-connect-sdk" /><item><title>RE: SPI in nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/389578?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 10:41:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3635eaea-f02c-4e92-8814-0b50940ad09a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You also have to set what instance you want to use of the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html"&gt;SPI&lt;/a&gt;. for example &lt;strong&gt;CONFIG_NRFX_SPI1&lt;/strong&gt; or &lt;strong&gt;CONFIG_NRFX_SPIM1&lt;/strong&gt;, etc.&lt;/p&gt;
&lt;p&gt;My guess as to why you can send more in the nRF5 SDK than in NCS is because you&amp;#39;ve set different buffer and tx/rx lengths in the two projects you&amp;#39;re running.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI in nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/389513?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 06:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86bb6870-0035-4776-91a8-5f611744452c</guid><dc:creator>Vignesh R</dc:creator><description>&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;but when I use nrfx drivers I can&amp;#39;t enable&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRFX_SPI=y in prj.conf, is there another way enable it.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;and &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;in segger IDE I can send more data in&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;nrfx_spim_xfer(); but in ncs I can&amp;#39;t send that much data ,so what to do for increase number of bytes&lt;/span&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: SPI in nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/389352?ContentTypeID=1</link><pubDate>Wed, 05 Oct 2022 09:22:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:600a7aca-7511-4126-bd6d-d88444e6a6ac</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Either is fine, and it&amp;#39;s mostly up to personal preference. I&amp;#39;m probably biased, but personally I prefer the nrfx drivers in general, as I&amp;#39;m most familiar with them.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The API reference of Zephyrs SPI driver is available &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/spi.html"&gt;here&lt;/a&gt;, and the nRF Connect API is available here for &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/spi/index.html#spi"&gt;SPI&lt;/a&gt;, and here for &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfx/drivers/spim/index.html#spim"&gt;SPIM&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>