<?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>Setting up SPI on NRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96777/setting-up-spi-on-nrf52832</link><description>I am currently setting up SPI on a nrf52832. I keep getting this error when building &amp;quot;undefined reference to `nrfx_spi_init&amp;#39; &amp;quot;. I do not use the nrfx_spi.c file at all as I am running on the legacy drivers. I have enabled SPI and SPI0 (the instance I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Feb 2023 15:35:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96777/setting-up-spi-on-nrf52832" /><item><title>RE: Setting up SPI on NRF52832</title><link>https://devzone.nordicsemi.com/thread/410699?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 15:35:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe86ff2c-d324-4d38-9ad1-1d704ae7efb0</guid><dc:creator>inspiringdev123</dc:creator><description>&lt;p&gt;Oops didnt know we had TWI set up on channel 0. All fixed, thanks for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up SPI on NRF52832</title><link>https://devzone.nordicsemi.com/thread/410697?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 15:29:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e874dbc0-3294-4468-9b42-0a65a0f40045</guid><dc:creator>inspiringdev123</dc:creator><description>&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/pastedimage1676647716664v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Added nrfx_spim.c and now am getting this from conflicting with nrfx_twi.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up SPI on NRF52832</title><link>https://devzone.nordicsemi.com/thread/410696?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 15:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1d484e9-76ea-4886-87e5-8a51aa22ea2b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Yes, EasyDMA allows the peripheral to transfer data directly from/to RAM, instead of requiring the CPU to update the data pointer for each byte. This allows the CPU to handle other tasks like RADIO activity, or stay in sleep mode to save power.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up SPI on NRF52832</title><link>https://devzone.nordicsemi.com/thread/410695?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 15:24:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:354ca6b3-5a92-493b-9b34-3772075fe990</guid><dc:creator>inspiringdev123</dc:creator><description>&lt;p&gt;Any advantage to using EASYDMA vs not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up SPI on NRF52832</title><link>https://devzone.nordicsemi.com/thread/410694?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 15:23:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d4442bf-3ef3-4df5-b9bb-1fba83d4c924</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;If you have both LEGACY and EASYDMA enabled for SPI in your sdk_config.h file, you need to include both nrfx driver source files, nrfx_spi.c and nrfx_spim.c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up SPI on NRF52832</title><link>https://devzone.nordicsemi.com/thread/410687?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 14:47:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f8b8e37-1406-4025-a3a4-56b132b90283</guid><dc:creator>inspiringdev123</dc:creator><description>&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/pastedimage1676645243538v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up SPI on NRF52832</title><link>https://devzone.nordicsemi.com/thread/410684?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 14:44:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50d8837a-f941-4e93-ac5a-bd6945e43ea8</guid><dc:creator>inspiringdev123</dc:creator><description>&lt;p&gt;Found and added it and still getting this error now &amp;quot;undefined reference to `nrfx_spim_init&amp;#39; &amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up SPI on NRF52832</title><link>https://devzone.nordicsemi.com/thread/410678?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 14:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:757535b8-55e0-4e07-b829-aa1853078205</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nrfx_spi(m) driver is used in the bottom layers even if you use the legacy driver APIs,&amp;nbsp;the legacy API&amp;nbsp;is&amp;nbsp;primarily a middle layer between the application and the nrfx drivers. This means that you need to include the&amp;nbsp;&lt;span&gt;nrfx_spi.c source file in your project. You also need to enable the SPI driver in your sdk_config.h file, but this seems to be set correctly:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;// &amp;lt;e&amp;gt; SPI_ENABLED - nrf_drv_spi - SPI/SPIM peripheral driver - legacy layer
//==========================================================
#ifndef SPI_ENABLED
#define SPI_ENABLED 1
#endif&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When this config is defined, NRFX_SPI(M)_ENABLED config will be set correctly in apply_old_config.h.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>