<?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>Undefine reference to driver files (linker) - nRF Connect SDK v1.4.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71918/undefine-reference-to-driver-files-linker---nrf-connect-sdk-v1-4-2</link><description>Hi there! 
 I am using the bluetooth/peripheral_hr sample as a basis for my application, on top of which I need to include the nrfx_qspi driver. However, I get a &amp;quot;undefined reference to nrfx_qspi_init&amp;quot; error during linking. I have tried to move the source</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Feb 2021 13:09:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71918/undefine-reference-to-driver-files-linker---nrf-connect-sdk-v1-4-2" /><item><title>RE: Undefine reference to driver files (linker) - nRF Connect SDK v1.4.2</title><link>https://devzone.nordicsemi.com/thread/295834?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 13:09:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27757bc0-d6c0-4980-a5ca-410e5d21c1b0</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There&amp;#39;s no need to copy files and alter the CMakeLists.txt file, unless you are specifically adding your own implementation/handling of the qspi driver.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should set this config in your project:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NRFX_QSPI=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And then include&amp;nbsp;the header in your main.c file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;nrfx_qspi.h&amp;gt;&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then you can add your implementation of the nrfx_qspi driver.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>