<?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>NRF_success undeclared error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56376/nrf_success-undeclared-error</link><description>Hi, 
 I included pwm code in my code and its related libraries and drivers.I am getting errors like these : 
 I removed non-Softdevice paths from the user include directory and it looks like this: 
 
 Thank you</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Nov 2020 15:10:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56376/nrf_success-undeclared-error" /><item><title>RE: NRF_success undeclared error</title><link>https://devzone.nordicsemi.com/thread/280411?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2020 15:10:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34b32d09-935b-4b24-b27f-9f20f6766fa2</guid><dc:creator>Gerrikoio</dc:creator><description>&lt;p&gt;Thanks. This works! &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_success undeclared error</title><link>https://devzone.nordicsemi.com/thread/280264?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2020 08:48:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a52bc923-4e00-47b7-9f86-7ca00ca01c19</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is an nrf_error.h file under the components/drivers_nrf/nrf_soc_nosd directory, so removing that one from the include paths should fix the issue.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_success undeclared error</title><link>https://devzone.nordicsemi.com/thread/280182?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2020 16:24:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c959f94-1a28-4703-9aaf-c14708ee327b</guid><dc:creator>Gerrikoio</dc:creator><description>&lt;p&gt;So how does one fix this issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_success undeclared error</title><link>https://devzone.nordicsemi.com/thread/280180?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2020 16:10:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eb0ae40-2f9e-41e9-8c35-2d2907f40244</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, if you have multiple include paths that contain a header file with the same name (e.g. nrf_error.h), then the compiler will typically find the first one (in whatever order the compiler looks through the include paths) and use that one.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_success undeclared error</title><link>https://devzone.nordicsemi.com/thread/280158?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2020 15:06:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62f78b62-46d6-4c68-9a46-0d4658696c7d</guid><dc:creator>Gerrikoio</dc:creator><description>&lt;p&gt;Yes, I had already included those User Included Directories in my prepocessor options. So is it possible that the compiler went and used the first nrf_error.h file it found, which happened to be the original (as in, before I included BLE code), and not the one in the softdevice directory for some reason.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_success undeclared error</title><link>https://devzone.nordicsemi.com/thread/280099?ContentTypeID=1</link><pubDate>Mon, 16 Nov 2020 13:15:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08a4ca79-24cc-42da-96cf-fe8f86731aca</guid><dc:creator>tesc</dc:creator><description>&lt;p style="margin:0;text-indent:0;"&gt;Hi,&lt;/p&gt;
&lt;p style="margin:0;text-indent:0;"&gt;&lt;/p&gt;
&lt;p style="margin:0;text-indent:0;"&gt;The ble_app_uart examples should have the following &amp;quot;User Include Directories&amp;quot; under &amp;quot;Options&amp;quot;, &amp;quot;Preprocessor&amp;quot;:&lt;/p&gt;
&lt;p style="margin:0;text-indent:0;"&gt;&lt;/p&gt;
&lt;p style="margin:0;text-indent:0;"&gt;../../../../../../components/softdevice/common&lt;/p&gt;
&lt;p style="margin:0;text-indent:0;"&gt;../../../../../../components/softdevice/s132/headers&lt;/p&gt;
&lt;p style="margin:0;text-indent:0;"&gt;../../../../../../components/softdevice/s132/headers/nrf52&lt;/p&gt;
&lt;p style="margin:0;text-indent:0;"&gt;&lt;/p&gt;
&lt;p style="margin:0;text-indent:0;"&gt;nrf_error.h is under&lt;/p&gt;
&lt;p style="margin:0;text-indent:0;"&gt;../../../../../../components/softdevice/s132/headers&lt;/p&gt;
&lt;p style="margin:0;text-indent:0;"&gt;&lt;/p&gt;
&lt;p style="margin:0;text-indent:0;"&gt;Regards,&lt;/p&gt;
&lt;p style="margin:0;text-indent:0;"&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_success undeclared error</title><link>https://devzone.nordicsemi.com/thread/279979?ContentTypeID=1</link><pubDate>Fri, 13 Nov 2020 20:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56fde6ab-be01-4760-969e-f7dcebe4f2ec</guid><dc:creator>Gerrikoio</dc:creator><description>&lt;p&gt;I have the same error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I had a working non-BLE application (i.e. no SOFTDEVICE used) and decided to port across the BLE_UART example code.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In new code application, I added in SOFTDEVICE_PRESENT within the preprocessor definitions which is used in the &amp;lt;sdk root&amp;gt;/components/drivers_nrf/nrf_Soc_nosd/nrf_error.h file as a check. So this definition triggers correctly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What I cannot work out is how does the BLE UART example point to the &amp;lt;sdk_root&amp;gt;/components/softdevice/s132/headers/nrf_error.h file as there is no explicit path reference to this nrf_error.h file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_success undeclared error</title><link>https://devzone.nordicsemi.com/thread/245637?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 16:24:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be6c069f-9e2d-4f36-bf4a-f8572504b340</guid><dc:creator>marian_g</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I had also 158 errors after compiling, a lot of them with NRF_SUCCESS undefined, but also other itemsfrom the same library.&lt;/p&gt;
&lt;p&gt;The errors were found during&amp;nbsp;compiling nrf_drv_clock.c...&lt;/p&gt;
&lt;p&gt;I removed the folder&amp;nbsp;&lt;span&gt;nrf_soc_nosd from include directories and then the compilation was successful.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_success undeclared error</title><link>https://devzone.nordicsemi.com/thread/228525?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2020 10:08:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcf87620-a252-4a28-8210-fc8790ffb958</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What was that previous error, that you fixed by removing the nrf_soc_nosd folder from include directories?&lt;/p&gt;
&lt;p&gt;Can you try to do a clean build? (In the Build menu you will find &amp;quot;Clean Solution&amp;quot;, which will clear all object files and intermediary files from the build process. Then if you build the project again it will not rely on previous partial builds. Sometimes with the kind of issue that you are seeing a full rebuild will make things work again.)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_success undeclared error</title><link>https://devzone.nordicsemi.com/thread/228467?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2020 05:36:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1a2f6fd-42d7-4ce2-b103-5d5c457d4510</guid><dc:creator>kritis123</dc:creator><description>[quote userid="8164" url="~/f/nordic-q-a/56376/nrf_success-undeclared-error/228366"]Have you done any modification to sdk_errors.h, and/or does sdk_errors.h have a line ``#include &amp;quot;nrf_error.h&amp;quot;&amp;#39;&amp;#39; in it?[/quote]
&lt;p&gt;No i haven&amp;#39;t done any modifications to the sdk_errors.h file and the file has the line &amp;quot;#include&amp;quot;nrf_error.h&amp;quot;&amp;quot; in it.I just removed the &amp;quot;&amp;nbsp;&lt;span&gt;&amp;lt;sdk root&amp;gt;/components/drivers_nrf/nrf_Soc_nosd&amp;quot; path as i was having some errors.&lt;/span&gt;&lt;/p&gt;
[quote userid="8164" url="~/f/nordic-q-a/56376/nrf_success-undeclared-error/228366"]Is components/libraries/util/ among the include directories? (With the correct amount of &amp;quot;../&amp;quot; in front.)[/quote]
&lt;p&gt;&lt;span&gt;Yes this path is included in the directories .&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_success undeclared error</title><link>https://devzone.nordicsemi.com/thread/228366?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 13:16:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:008bd5d5-bad8-4c23-a068-51c0867a6f57</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The missing defines are found in nrf_error.h, which can be found at &amp;lt;sdk root&amp;gt;/components/drivers_nrf/nrf_Soc_nosd/nrf_error.h, or at &amp;lt;sdk_root&amp;gt;/components/softdevice/s132/headers/nrf_error.h (for the s132 SoftDevice.)&lt;/p&gt;
&lt;p&gt;If the error is that the folder containing the nrf_error.h file is not among the include paths for the project I would have expected an error stating &amp;quot;nrf_error.h&amp;quot; is not found. Since that is not the case, it looks more like nrf_error.h is not included from nrf_log_frontend.c and the other c files being compiled. Which is strange, as nrf_log_frontend.c includes sdk_common.h, which includes sdk_errors.h, which includes nrf_error.h. (And sdk_errors.h seems to be included, ref. the suggestions such as &amp;quot;did you mean &amp;#39;NRF_ERROR_IO_PENDING&amp;#39;&amp;quot;.)&lt;/p&gt;
&lt;p&gt;Have you done any modification to sdk_errors.h, and/or does sdk_errors.h have a line ``#include &amp;quot;nrf_error.h&amp;quot;&amp;#39;&amp;#39; in it?&lt;/p&gt;
&lt;p&gt;Is components/libraries/util/ among the include directories? (With the correct amount of &amp;quot;../&amp;quot; in front.)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>