<?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>undefined reference to `nrf_nvic_state&amp;#39; when i clearly included nvic.h</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114495/undefined-reference-to-nrf_nvic_state-when-i-clearly-included-nvic-h</link><description>Hello everyone 
 
 I&amp;#39;m trying to build an app using Segger Embedded Studio and a nRF52832. I&amp;#39;m currently struggling to include the fds module since i get the following errors: Building ‘basurometro_lte_52’ from solution ‘basurometro_lte_52’ in configuration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Sep 2024 13:54:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114495/undefined-reference-to-nrf_nvic_state-when-i-clearly-included-nvic-h" /><item><title>RE: undefined reference to `nrf_nvic_state' when i clearly included nvic.h</title><link>https://devzone.nordicsemi.com/thread/501390?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 13:54:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20748c13-f159-45c7-8ddf-a3fea0ab358c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Then you are likely missing &amp;#39;SOFTDEVICE_PRESENT&amp;#39; in your list of preproccessor symbols.&lt;/p&gt;
&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/pastedimage1725544479987v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: undefined reference to `nrf_nvic_state' when i clearly included nvic.h</title><link>https://devzone.nordicsemi.com/thread/501387?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 13:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:880dc64a-8baa-474f-b816-c9d642815713</guid><dc:creator>julian24</dc:creator><description>&lt;p&gt;hello.&lt;br /&gt;&lt;br /&gt;i tried using an sdk_config from ble projects, but it didn&amp;#39;t work. Also, i have app_util_platform.c included in my build.&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1725544068867v1.png" alt=" " /&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/pastedimage1725544122978v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: undefined reference to `nrf_nvic_state' when i clearly included nvic.h</title><link>https://devzone.nordicsemi.com/thread/501314?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 09:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:517f3809-9442-4067-88b4-c7d3e63e375a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In general, it is recommended to start with one of the Bluetooth projects if you want to create a project that includes SoftDevice. Otherwise, you will need to manually resolve and apply SoftDevice dependencies and configurations.&lt;/p&gt;
&lt;p&gt;The global &amp;#39;nrf_nvic_state&amp;#39; variable is defined in app_util_platform.c, so the linker error suggests that you have not included app_util_platform.c in your build.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: undefined reference to `nrf_nvic_state' when i clearly included nvic.h</title><link>https://devzone.nordicsemi.com/thread/501257?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 01:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32348224-a030-4ece-9b33-a4579f808a73</guid><dc:creator>julian24</dc:creator><description>&lt;p&gt;but the thing is, i need to use fds, and that needs the softdevice enabled, isn&amp;#39;t it this way?. (i&amp;#39;ll try just enabling sdh_ble anyway bc i&amp;#39;ll use it some time in the future,)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: undefined reference to `nrf_nvic_state' when i clearly included nvic.h</title><link>https://devzone.nordicsemi.com/thread/501250?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 23:57:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dd5651a-b924-4590-b7f5-3e2ab9114220</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Oh, I assumed it was using BLE as you are trying to link in softdevice functions (BLE) such as&amp;nbsp;&amp;nbsp;&lt;span&gt;&lt;em&gt;softdevice_evt_irq_disable()&lt;/em&gt;. The answer then is to not have those functions linked in at all. nrf_sdh.c should not be in the project at all, nor any other softdevice files.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;No files in the project from here:&lt;em&gt; .\nRF5_SDK_17.1.0\components\softdevice\&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: undefined reference to `nrf_nvic_state' when i clearly included nvic.h</title><link>https://devzone.nordicsemi.com/thread/501248?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 23:35:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae3fa14a-f35d-415e-8d05-f1dca76c1f7a</guid><dc:creator>julian24</dc:creator><description>&lt;p&gt;I don&amp;#39;t have NRF_SDH_BLE enabled. but is that an issue if I&amp;#39;m not going to use the ble module?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: undefined reference to `nrf_nvic_state' when i clearly included nvic.h</title><link>https://devzone.nordicsemi.com/thread/501246?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 23:12:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4528139f-e0c1-4567-9cd5-507848802ffa</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Perhaps a typo; maybe try &amp;quot;nrf_nvic.h&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;quot;nrf_nvic.h&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Also in sdk_config.h:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#ifndef NRF_SDH_BLE_ENABLED
#define NRF_SDH_BLE_ENABLED 1
#endif

#ifndef NRF_SDH_ENABLED
#define NRF_SDH_ENABLED 1
#endif

#ifndef NRF_SDH_SOC_ENABLED
#define NRF_SDH_SOC_ENABLED 1
#endif
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and in project:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_SD_BLE_API_VERSION=7
S132
SOFTDEVICE_PRESENT&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: undefined reference to `nrf_nvic_state' when i clearly included nvic.h</title><link>https://devzone.nordicsemi.com/thread/501235?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 20:34:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54b4d2b9-a8df-4a25-9b42-02dc754f5916</guid><dc:creator>julian24</dc:creator><description>&lt;p&gt;oh, and i&amp;#39;m using SDK v17.1.0 on Windows 10&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>