<?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_ERROR_CHECK(err_code);  undeclared identifier</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54007/app_error_check-err_code-undeclared-identifier</link><description>Hi, 
 
 I&amp;#39;m starting with nrf52 dk using Keil ide for ANT+ applications... 
 I tried to run an example inside the sdk folder and I have problems with app_error functions. 
 
 All called check functions was not declared. I included paths for components</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Nov 2019 20:43:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54007/app_error_check-err_code-undeclared-identifier" /><item><title>RE: APP_ERROR_CHECK(err_code);  undeclared identifier</title><link>https://devzone.nordicsemi.com/thread/219167?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 20:43:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caf91da7-fc78-402d-b9e7-2b832e5225dc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;are you certain that you unzipped the headers to this exact location, with the same folder structure?&lt;/p&gt;
&lt;p&gt;The SDK does not include the header files for the ANT SoftDevices. You must add them to your project before you can compile your application. To do so, extract the downloaded zip file that contains the SoftDevice and copy the SoftDevice headers to components/softdevice/SoftDevice/headers.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you open your project settings, you can see the expected path for the headers, here&amp;#39;s an example from one of the examples:&lt;/p&gt;
&lt;p&gt;..\..\..\..\..\..\..\components\softdevice\s212\headers;&lt;/p&gt;
&lt;p&gt;..\..\..\..\..\..\..\components\softdevice\s212\headers\nrf52;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_ERROR_CHECK(err_code);  undeclared identifier</title><link>https://devzone.nordicsemi.com/thread/219150?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 17:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5211c7a-3dea-4a46-91b3-c7594ce921cc</guid><dc:creator>Laerte Junior</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your answer...&lt;/p&gt;
&lt;p&gt;I followed the procedures of this tutorial, including the ANT headers files, but the error continue....&lt;/p&gt;
&lt;p&gt;below, the part of build output. The compiler not foud the nrf_error.h. I unziped the sdk file in the path of my hard disk (example: C:\nRF5_SDK_15.3.0_59ac345)&lt;/p&gt;
&lt;p&gt;..\..\..\..\..\..\components\libraries\log\src\nrf_log_frontend.c(293): error:&amp;nbsp; #20: identifier &amp;quot;NRF_SUCCESS&amp;quot; is undefined&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (module_idx_get(&amp;amp;module_id, ordered_idx) == NRF_SUCCESS)&lt;br /&gt;..\..\..\..\..\..\components\libraries\log\src\nrf_log_frontend.c(303): error:&amp;nbsp; #20: identifier &amp;quot;NRF_SUCCESS&amp;quot; is undefined&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (module_idx_get(&amp;amp;module_id, ordered_idx) == NRF_SUCCESS)&lt;br /&gt;..\..\..\..\..\..\components\libraries\log\src\nrf_log_frontend.c(512): error:&amp;nbsp; #20: identifier &amp;quot;NRF_SUCCESS&amp;quot; is undefined&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (nrf_ringbuf_alloc(&amp;amp;m_log_push_ringbuf, &amp;amp;p_dst, &amp;amp;ssize, true) == NRF_SUCCESS)&lt;br /&gt;..\..\..\..\..\..\components\libraries\log\src\nrf_log_frontend.c: 0 warnings, 29 errors&lt;br /&gt;compiling nrf_sdh.c...&lt;br /&gt;compiling nrf_sdh_ant.c...&lt;br /&gt;..\..\..\..\..\..\components\softdevice\common\nrf_sdh_ant.c(89): error:&amp;nbsp; #20: identifier &amp;quot;NRF_SUCCESS&amp;quot; is undefined&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ret_code == NRF_SUCCESS)&lt;br /&gt;..\..\..\..\..\..\components\softdevice\common\nrf_sdh_ant.c(126): error:&amp;nbsp; #20: identifier &amp;quot;NRF_SUCCESS&amp;quot; is undefined&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ret_code != NRF_SUCCESS)&lt;br /&gt;..\..\..\..\..\..\components\softdevice\common\nrf_sdh_ant.c(149): error:&amp;nbsp; #20: identifier &amp;quot;NRF_ERROR_NOT_FOUND&amp;quot; is undefined&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ret_code != NRF_ERROR_NOT_FOUND)&lt;br /&gt;..\..\..\..\..\..\components\softdevice\common\nrf_sdh_ant.c: 0 warnings, 3 errors&lt;br /&gt;compiling system_nrf52.c...&lt;br /&gt;&amp;quot;.\_build\nrf52832_xxaa.axf&amp;quot; - 659 Error(s), 0 Warning(s).&lt;br /&gt;Target not created.&lt;br /&gt;Build Time Elapsed:&amp;nbsp; 00:00:17&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: APP_ERROR_CHECK(err_code);  undeclared identifier</title><link>https://devzone.nordicsemi.com/thread/218430?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2019 07:59:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23a05016-facd-488b-bb8a-6493e0905374</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;In order to run ANT examples, you must first obtain the ANT SoftDevice you want to use, as per the chapter in the documentation, &amp;quot;Running ANT examples&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ant_advanced_burst.html?cp=5_1_4_0_0"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ant_advanced_burst.html?cp=5_1_4_0_0&lt;/a&gt;&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>