<?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>nRF52840-Preview-DK: NRF_BREAKPOINT_COND is encountered when APP_ERROR_CHECK(err_code) executes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40215/nrf52840-preview-dk-nrf_breakpoint_cond-is-encountered-when-app_error_check-err_code-executes</link><description>Hi, 
 In my project, I am interfacing various modules (UART over ble, ADC, SPI, I2C) on nRF52840-Preview-DK board. I use IAR Embedded Workbench with nRF5_SDK_15.2 for code bring up. At this point, I have everything compiled in a single project with no</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Nov 2018 10:26:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40215/nrf52840-preview-dk-nrf_breakpoint_cond-is-encountered-when-app_error_check-err_code-executes" /><item><title>RE: nRF52840-Preview-DK: NRF_BREAKPOINT_COND is encountered when APP_ERROR_CHECK(err_code) executes</title><link>https://devzone.nordicsemi.com/thread/156278?ContentTypeID=1</link><pubDate>Wed, 07 Nov 2018 10:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:994dd089-2a46-4487-982c-4d72a47b0840</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;How did you test the value of err_code? In some cases the debugger might lie to you.&lt;/p&gt;
&lt;p&gt;APP_ERROR_CHECK( 0 ) should not execute anything besides the zero value test.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Commenting out the APP_ERROR_CHECK just ignores the error, which usually also means some function won&amp;#39;t work properly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840-Preview-DK: NRF_BREAKPOINT_COND is encountered when APP_ERROR_CHECK(err_code) executes</title><link>https://devzone.nordicsemi.com/thread/156240?ContentTypeID=1</link><pubDate>Tue, 06 Nov 2018 22:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef47de05-59c0-4b27-be82-35975796de16</guid><dc:creator>syt1293</dc:creator><description>&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;Yeah, I did that first thing. Surprisingly, value of err_code is zero and I still get NRF_BREAKPOINT_COND. That&amp;#39;s why, for now, I commented out the &lt;span style="background-color:#ffffff;color:#000000;float:none;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;APP_ERROR_CHECK(err_code)&lt;/span&gt; call which is not a great solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840-Preview-DK: NRF_BREAKPOINT_COND is encountered when APP_ERROR_CHECK(err_code) executes</title><link>https://devzone.nordicsemi.com/thread/156237?ContentTypeID=1</link><pubDate>Tue, 06 Nov 2018 21:35:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2be03ff9-a62f-4dbb-9530-fd263eb9a5f5</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Check the err_code variable in the debugger. You will only hit &lt;span style="background-color:#ffffff;"&gt;NRF_BREAKPOINT_COND &lt;/span&gt;if err_code was non-zero.&lt;/p&gt;
&lt;p&gt;A non-zero err_code means there was an error in the previous function or SD call.&lt;/p&gt;
&lt;p&gt;Identifying and fixing the bug will be OPs task - we don&amp;#39;t see any source code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>