<?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 Example Symbol cannot be resolved</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26349/spi-example-symbol-cannot-be-resolved</link><description>I&amp;#39;m trying to set up SPI example from SDK12.3, but I get error at line 53 of main.c 
 static const nrf_drv_spi_t spi = NRF_DRV_SPI_INSTANCE(SPI_INSTANCE);
 
 It&amp;#39;s saying 
 Symbol &amp;quot;NRF_SPI0&amp;quot; could not be resolved 
 Symbol &amp;quot;SPI0_TWI0_IRQn&amp;quot; could not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Oct 2017 08:05:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26349/spi-example-symbol-cannot-be-resolved" /><item><title>RE: SPI Example Symbol cannot be resolved</title><link>https://devzone.nordicsemi.com/thread/103697?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 08:05:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0476565-51f3-45ad-8f10-e849e98abcde</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;code&gt;SPI0_TWI0_IRQn&lt;/code&gt; specify the Interrupt number for &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/peripheral_interface.html?cp=2_1_0_14_1#concept_shared_id"&gt;serial instance 0&lt;/a&gt; (0x40003000). This is related to Cortex M processor architecture, and is similar in nRF51 and nRF52 series. The file &lt;em&gt;nrf51_to_nrf52.h&lt;/em&gt; is included by &lt;em&gt;nrf.h&lt;/em&gt;, if the symbol &lt;code&gt;NRF52832_XXAA&lt;/code&gt; is defined. This symbol is defined if too-generic symbol &lt;code&gt;NRF52&lt;/code&gt; is defined.&lt;/p&gt;
&lt;p&gt;In the Makefile provided with the SDK, the symbol NRF52 is defined, and the path to the header files is included:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;INC_FOLDERS += \
  $(SDK_ROOT)/components/device \
.
.
CFLAGS += -DNRF52
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If Eclipse does not include this file automatically, there is either something wrong with the parsing of the Makefile, or you har skipped some step in the tutorial.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Example Symbol cannot be resolved</title><link>https://devzone.nordicsemi.com/thread/103696?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2017 15:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07510022-18d7-4f28-ba97-b970e510f68e</guid><dc:creator>xhr0428</dc:creator><description>&lt;p&gt;I add include &amp;quot;nrf51_to_nrf52.h&amp;quot;, it compiles in eclipse now. Is SPI0_TWI0_IRQn a syntax from NRF51? What is it for?
BTW, it&amp;#39;s exactly the situation I mentioned in my post, there is no way I would know I need to include this header file unless I ask a question here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Example Symbol cannot be resolved</title><link>https://devzone.nordicsemi.com/thread/103692?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2017 13:15:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b36563b-cdfa-4190-921d-1b51e77be799</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;&lt;code&gt;SPI0_TWI0_IRQn&lt;/code&gt; is defined in &lt;em&gt;nrf51.h&lt;/em&gt;, &lt;em&gt;nrf51_to_nrf52.h&lt;/em&gt; or &lt;em&gt;nrf51_to_nrf52840.h&lt;/em&gt;, located in &lt;code&gt;components\device&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Example Symbol cannot be resolved</title><link>https://devzone.nordicsemi.com/thread/103695?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2017 12:54:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0443ccdf-f084-4a1b-8d0e-bdef21e6edaa</guid><dc:creator>xhr0428</dc:creator><description>&lt;p&gt;I followed this tutorial &lt;a href="https://devzone.nordicsemi.com/tutorials/7/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
I have created more than 10 projects using the same way, I don’t think there is anything wrong in the setup. Could you also try with eclipse?
Where is SPI0_TWI0_IRQn defined?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Example Symbol cannot be resolved</title><link>https://devzone.nordicsemi.com/thread/103693?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2017 08:11:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5e61192-babf-4742-9a6c-6c6c6ccc84b7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;How did you setup the proejct in Eclipse? If it works when using make directly, there must be something wrong with your Eclipse project setup. Note that Eclipse is not officially supported by our SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Example Symbol cannot be resolved</title><link>https://devzone.nordicsemi.com/thread/103694?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2017 04:51:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ca5b665-634b-410e-84b2-d4efa2fbb477</guid><dc:creator>xhr0428</dc:creator><description>&lt;p&gt;I have tried redownloading the SDK on 2 computers. It&amp;#39;s still the same. It compiles if I directly use command make in terminal. But in Eclipse it shows unresolved error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Example Symbol cannot be resolved</title><link>https://devzone.nordicsemi.com/thread/103691?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2017 14:09:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cf11497-68ee-404e-ba03-985664d54b85</guid><dc:creator>xhr0428</dc:creator><description>&lt;p&gt;I didn&amp;#39;t change anything in the example. The SDK was freshly downloaded 2 weeks ago on a new computer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Example Symbol cannot be resolved</title><link>https://devzone.nordicsemi.com/thread/103690?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2017 07:24:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdaca154-3b18-4580-bd19-aa633e883246</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you modified anything in the example? I&amp;#39;m not able to reproduce this issue with the unmodified SPI example. All SDK examples should compile without modifications. If you are seeing &amp;quot;could not be resolved&amp;quot; errors, you should try to redownload and unzip a fresh copy of the SDK. When adding new drivers/libraries to existing examples, you might see such errors. You then need to include the correct source file, or enable the module in &lt;em&gt;sdk_config.h&lt;/em&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>