<?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>return error when press BUTTON_0 on ble_app_uart project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49405/return-error-when-press-button_0-on-ble_app_uart-project</link><description>Dear Experts: 
 Hardware Version :Nordic PCA 10040 1.2.4 
 SDK Version: nRF5_SDK_15.3.0 
 Project: ble_app_uart 
 None code will be modified in the ble_app_uart project. First build program,then press the &amp;#39;start/stop debug session&amp;#39; button to start project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jul 2019 13:39:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49405/return-error-when-press-button_0-on-ble_app_uart-project" /><item><title>RE: return error when press BUTTON_0 on ble_app_uart project</title><link>https://devzone.nordicsemi.com/thread/196860?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 13:39:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3100120b-e5ed-491a-b419-646c499d7e42</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/18075/nrf52-does-not-enter-system-off"&gt;This post&lt;/a&gt; explains what happens in system off mode in debug mode. The reason ble_app_uart crashes when you set it to sleep in debug mode is that the emulated system off goes into a loop within the&amp;nbsp;UART files in the SDK which I assume conflicts with the UART application and causes the error you&amp;#39;re experiencing. The sleep&amp;nbsp;function works just fine in normal mode.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: return error when press BUTTON_0 on ble_app_uart project</title><link>https://devzone.nordicsemi.com/thread/196771?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 09:17:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa64f247-45e3-434d-b7bf-dab90a4e13b5</guid><dc:creator>ponyma</dc:creator><description>&lt;p&gt;My description may not be very exactly . Please check the blow snapshot :&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1562317836562v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In my opinion, it may not&amp;nbsp; be the right&amp;nbsp;&lt;span&gt;behavior&amp;nbsp;&lt;/span&gt;:&lt;/p&gt;
&lt;p&gt;1. In&amp;nbsp;ble_app_bps project, the same error can&amp;#39;t occur when pressing BUTTON_0.&lt;/p&gt;
&lt;p&gt;2. in ble_app_uart project, &lt;span&gt;the same error can&amp;#39;t occur when pressing other buttons.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: return error when press BUTTON_0 on ble_app_uart project</title><link>https://devzone.nordicsemi.com/thread/196754?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 08:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8548965b-1b7a-49fc-8dd2-dd6470d4bda1</guid><dc:creator>awneil</dc:creator><description>[quote userid="80063" url="~/f/nordic-q-a/49405/return-error-when-press-button_0-on-ble_app_uart-project"]The project will stop and popup error[/quote]
&lt;p&gt;So what error, exactly, does it pop up?&lt;/p&gt;
&lt;p&gt;Presumably, this is an error from your IDE ?&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re on Windows, you can capture a screenshot of the current window - eg, the error message - by pressing Alt+PrintScreen.&lt;/p&gt;
[quote userid="80063" url="~/f/nordic-q-a/49405/return-error-when-press-button_0-on-ble_app_uart-project"]when press BUTTON_0,&amp;nbsp;BSP_EVENT_SLEEP event will be captured and processed[/quote]
&lt;p&gt;So that puts the CPU to sleep.&lt;/p&gt;
&lt;p&gt;Putting the CPU to sleep will make the debugger lose its connection to the target;&amp;nbsp; so what you describe sounds like expected behaviour - not an error at all?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>