<?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>Adding my own ERROR_BASE_NUM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22516/adding-my-own-error_base_num</link><description>I am defining my own list of errors that my application will use. At the same time, I would like to report the NRF errors as well. What do you think about a solution where I define my own ERROR_BASE_NUM? In nrf_error.h there are some error ranges defined</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Jun 2017 06:59:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22516/adding-my-own-error_base_num" /><item><title>RE: Adding my own ERROR_BASE_NUM</title><link>https://devzone.nordicsemi.com/thread/88585?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 06:59:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58702b86-2a78-4055-80af-08993b702fa5</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Yes, I agree, I will &amp;quot;report&amp;quot; it internally as an improvement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding my own ERROR_BASE_NUM</title><link>https://devzone.nordicsemi.com/thread/88584?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 10:30:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba785a7b-39fd-432f-8dab-802ff0fbc3a6</guid><dc:creator>gnf</dc:creator><description>&lt;p&gt;Ok. In that case, wouldn&amp;#39;t it be nice if there was a definition, from Nordic, of a certain user-reserved area for this? That would make this more future-proof. For example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; // From nrf_error.h
 #define NRF_ERROR_BASE_NUM      (0x0)       ///&amp;lt; Global error base
 #define NRF_ERROR_SDM_BASE_NUM  (0x1000)    ///&amp;lt; SDM error base
 #define NRF_ERROR_SOC_BASE_NUM  (0x2000)    ///&amp;lt; SoC error base
 #define NRF_ERROR_STK_BASE_NUM  (0x3000)    ///&amp;lt; STK error base
 #define NRF_ERROR_USER_DEFINED_BASE_NUM (0xA000) ///&amp;lt; 0xA000 - 0xFFFF: Reserved for user error codes
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding my own ERROR_BASE_NUM</title><link>https://devzone.nordicsemi.com/thread/88583?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 09:34:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:331a781d-c56b-476f-b9c8-37ac1941f8f0</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I think suggestion on how to handle custom errors is a good way to do it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>