<?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>Sleep mode nrf52 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83997/sleep-mode-nrf52-dk</link><description>Hello, by usingnrf52832 DK and testing some examples i found out that the example peripheral UART was not going like I wanted to do. He is going to sleep mode after 3 minutes I think and I don&amp;#39;t know why. I would like to know how to take off because when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jan 2022 11:01:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83997/sleep-mode-nrf52-dk" /><item><title>RE: Sleep mode nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/349721?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 11:01:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3d7f85a-c20c-4396-bd26-d0fa9b9bc380</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;No problem at all, I am happy to help!&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open another ticket if you should encounter any other issues or questions in the future.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep mode nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/349708?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 09:56:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a052b59c-ae5a-47e3-90ab-478c9d338fdd</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;Thank you so much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep mode nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/349698?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 09:19:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8879ee51-b87f-4c7f-a2b5-dc54351cfe4f</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;It seems that you are encountering a fatal error.&lt;br /&gt;Please make sure to have DEBUG defined in your preprocessor defines, like shown in the included image:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/180846.enabling_5F00_debug_5F00_SES.PNG" /&gt;&lt;br /&gt;This will make your logger output a detailed error message whenever a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK.&lt;br /&gt;You may then check the returned error code against the API Reference documentation for the function that returned the error, to see what went wrong and how to fix it.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep mode nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/349683?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 07:44:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68789f57-8430-466c-896b-faa3d6430d4b</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1643183057451v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep mode nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/349679?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 07:41:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea9ddeb4-f3c0-4d64-a062-0c6d198e4aef</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;Hello, i just tested things. I have to see the app to send at first the blinky program &amp;quot;activate&amp;quot; or to take off the sleep mode I think, then I send the peripheral uart program that I want and I can see my Module in my app and I don&amp;#39;t why i have this problem.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep mode nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/349592?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 14:58:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f2a8f35-ce89-4226-910f-117a62160e36</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="linamarcos"]I saw the app when I&amp;#39;m pressing after sending the program that I wanted in the button reset.&amp;nbsp;[/quote]
&lt;p&gt;I am sorry but I do not understand what you mean to tell me here, could you rewrite this explanation?&lt;/p&gt;
[quote user="linamarcos"]When I&amp;#39;m making build and run I can&amp;#39;t see the program but when I do build and debug and play execution, I see the device in the app constantly without sleep mode[/quote]
&lt;p&gt;Ok, could you show me your logger output of both situations?&lt;br /&gt;I am especially interested in seeing the logs for the scenario in which you program the device and do not see any advertising happening.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep mode nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/349543?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 13:18:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:093bb82b-cbda-4545-a0b5-9c353a54194a</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;I saw the app when I&amp;#39;m pressing after sending the program that I wanted in the button reset.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I&amp;#39;m making build and run I can&amp;#39;t see the program but when I do build and debug and play execution, I see the device in the app constantly without sleep mode&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep mode nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/349525?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 12:49:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:506a0e54-46b1-4b66-9962-8dd5f02bde5b</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="linamarcos"]&lt;p&gt;but i can&amp;#39;t see my app if don&amp;#39;t press the button reset, I would to know how to not have this obligation ( 0 on the app duration is working only if I&amp;#39;m pressing the button reset too)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and the problem is that this is a big constraint. I would like to see my app constantly.&lt;/p&gt;[/quote]
&lt;p&gt;That likely means that the application is not running as expected. Could you elaborate on what you mean when you say that the&amp;nbsp;&lt;em&gt;0 on the app duration is working only if I&amp;#39;m pressing the button reset&lt;/em&gt;? - Do you see unlimited advertising after a reset, only?&lt;br /&gt;Could you enter into a debug session and see if the program counter is getting stuck anywhere unexpected?&lt;br /&gt;Could you also confirm for me that you have made sure to pass all returned error codes to an APP_ERROR_CHECK?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you make sure to have DEBUG defined in your preprocessor defines, like shown in the included image, your debugger will output a detailed error message whenever a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK.&lt;br /&gt;Please do this, and let me know if you see any such error message appear in your logger when you run the modified application.&lt;br /&gt;&lt;br /&gt;Bet regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep mode nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/349451?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 08:44:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:365ec197-6680-4756-a85d-5667fea6a127</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;Hello, i changed the line in the flag&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but i can&amp;#39;t see my app if don&amp;#39;t press the button reset, I would to know how to not have this obligation ( 0 on the app duration is working only if I&amp;#39;m pressing the button reset too)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and the problem is that this is a big constraint. I would like to see my app constantly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you in advance for your help :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep mode nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/349359?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 17:35:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:858b2410-d8c5-45c3-9c98-9324896bb4fe</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="linamarcos"]thank you so much for your quick reply.[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="linamarcos"]Actually, I don&amp;#39;t see the program in the app anymore when I put the duration to 0.[/quote]
&lt;p&gt;Thank you for clarifying - this could indeed mean that the program is encountering an error or otherwise non-functioning.&lt;/p&gt;
[quote user="linamarcos"]When you are talking about the flag where can I change that?[/quote]
&lt;p&gt;You will need to change the flags that are part of the advertising payload, they are defined in line 617 of main.c of the unmodified BLE NUS example:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;init.advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;&lt;/pre&gt;&lt;br /&gt;It should instead be&amp;nbsp;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep mode nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/349328?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 15:15:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9277f9d1-09f6-4ce9-9b1e-2d6c542359df</guid><dc:creator>lm</dc:creator><description>&lt;p&gt;Hello Karl, thank you so much for your quick reply. Actually, I don&amp;#39;t see the program in the app anymore when I put the duration to 0. When you are talking about the flag where can I change that? Thank you it is maybe wh it isn&amp;#39;t working&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep mode nrf52 DK</title><link>https://devzone.nordicsemi.com/thread/349326?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 15:01:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86daeac5-786a-4b47-b49d-e96453433a69</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;You are correct that the default behavior of the BLE NUS example is to go into SYSTEM_OFF sleep when the advertising duration is expired. You could see this happen in the advertising&amp;#39;s event handler for the IDLE event.&lt;/p&gt;
[quote user=""]I&amp;#39;m using my app I would like to see my example constantly in my nrf correct and to make it appear I have to click on the reset button.[/quote]
&lt;p&gt;If you would like to keep the device advertising for an indefinite time you will need to change the advertising duration to unlimited by setting the APP_ADV_DURATION to 0. You will also need to change which flag your device is advertising with from the default &lt;em&gt;limited discoverability&lt;/em&gt; to &lt;em&gt;general discoverability.&lt;/em&gt;&lt;/p&gt;
[quote user=""]APP_DURATION from 18000 to 0 but it doesn&amp;#39;t work.[/quote]
&lt;p&gt;Please elaborate on how it does not work. What are you observing and how does it diverge from what you would have expected? Does the application suddenly reset, or does it advertise for a certain time before going to SYSTEM_OFF sleep regardless of your APP_ADV_DURATION being set to 0?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>