<?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>App_util_platform.c cannot compile nrf_nvic_state_t is undefined</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18874/app_util_platform-c-cannot-compile-nrf_nvic_state_t-is-undefined</link><description>Here&amp;#39;s the original error: 
 compiling app_util_platform.c...
C:\Keil_v5\Nordic_SDK\nRF5_SDK_12.1.0_0d23e2a\components\libraries\util\app_util_platform.c(17): error: #20: identifier &amp;quot;nrf_nvic_state_t&amp;quot; is undefined
nrf_nvic_state_t nrf_nvic_state; </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Jan 2017 03:06:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18874/app_util_platform-c-cannot-compile-nrf_nvic_state_t-is-undefined" /><item><title>RE: App_util_platform.c cannot compile nrf_nvic_state_t is undefined</title><link>https://devzone.nordicsemi.com/thread/72926?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2017 03:06:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ac0e529-6575-4561-9857-924d59ed097a</guid><dc:creator>lukeG</dc:creator><description>&lt;p&gt;add pathToDir\components\drivers_nrf\nrf_soc_nosd to the include paths in Options for Target&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App_util_platform.c cannot compile nrf_nvic_state_t is undefined</title><link>https://devzone.nordicsemi.com/thread/72925?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2017 03:02:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1195889-8c0d-430b-a114-01a54ee9aebb</guid><dc:creator>lukeG</dc:creator><description>&lt;p&gt;I commented out the #ifndef NRF_SOC_H__ and #endif&lt;/p&gt;
&lt;p&gt;for this error: error: #256: invalid redeclaration of type name &amp;quot;nrf_nvic_state_t&amp;quot; (declared at line 88)&lt;/p&gt;
&lt;p&gt;Follow this path provided by the error: C:\Keil_v5\Nordic_SDK\nRF5_SDK_12.1.0_0d23e2a\components\drivers_nrf\nrf_soc_nosd\nrf_nvic.h(88)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App_util_platform.c cannot compile nrf_nvic_state_t is undefined</title><link>https://devzone.nordicsemi.com/thread/72924?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2017 02:53:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb1b53bd-7fe5-4cb6-b131-f9a069f3f106</guid><dc:creator>lukeG</dc:creator><description>&lt;p&gt;Hey, thanks for helping me out
Update: Found the definition and fix, go figures, just gotta pay more attention. Follow this path provided by the error: C:\Keil_v5\Nordic_SDK\nRF5_SDK_12.1.0_0d23e2a\components\drivers_nrf\nrf_soc_nosd\nrf_nvic.h(88): error:  #256: invalid redeclaration of type name &amp;quot;nrf_nvic_state_t&amp;quot; (declared at line 88)&lt;/p&gt;
&lt;p&gt;2nd problem below (solved)
__
I have it included and I have nrf_nvic_state_t struct defined. I commented out the #ifndef NRF_SOC_H__ and #endif which changed the error. It now says nrf_nvic_state_t is a redeclaration but when I comment it out it says it cant find the identifier....?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also unable to find a second declaration of the nrf_nvic_state_t, does it exist anywhere else besides nrf_nvic.h?&lt;/p&gt;
&lt;p&gt;on top of that it mentions the include order of files, do you know if that matters? Do I have to load the s132 headers after or before something else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App_util_platform.c cannot compile nrf_nvic_state_t is undefined</title><link>https://devzone.nordicsemi.com/thread/72923?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 10:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:125e310e-4aa7-4c5b-9438-53b2f607f70f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;code&gt;nrf_nvic_state_t&lt;/code&gt; should already be defined in nrf_nvic.h at line 129.&lt;/p&gt;
&lt;p&gt;The file nrf_nvic.h is located in &lt;code&gt;&amp;lt;SDK_InstallFolder&amp;gt;\components\softdevice\s132\headers\&lt;/code&gt;, so make sure that you have this path in the Keil Include Paths(Options for Target.. -&amp;gt; C/C++ tab)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: App_util_platform.c cannot compile nrf_nvic_state_t is undefined</title><link>https://devzone.nordicsemi.com/thread/72922?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2017 23:34:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa585b21-7b13-4a02-abf4-e2894ce348fa</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;Do you have these include paths in Keil ?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;..\..\..\..\..\..\components\softdevice\s132\headers\

 ..\..\..\..\..\..\components\softdevice\common\softdevice_handler

..\..\..\..\..\..\components\softdevice\s132\headers\nr52
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What SDK example is your project based on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>