<?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 and wakeup from RTC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48298/sleep-and-wakeup-from-rtc</link><description>I&amp;#39;m trying to get the nrf52810 (pca10040e s112) to wake up from sleep every 5 second using RTC or timer. My goal is to sleep on less than 2 uA. I&amp;#39;m using the pca10040 development board and the segger IDE. I have seen other posts regarding this ( link1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Jun 2019 10:34:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48298/sleep-and-wakeup-from-rtc" /><item><title>RE: sleep and wakeup from RTC</title><link>https://devzone.nordicsemi.com/thread/192632?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 10:34:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dbeca5c-bf09-4388-be4a-fed95fe2ec21</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Lasse,&lt;/p&gt;
[quote user="Lasse Hansen"]Now i don&amp;#39;t&amp;nbsp;expect you to keep answering all my newbie questions, but this one would be very helpful[/quote]
&lt;p&gt;&amp;nbsp;This is not a problem at all, this is why we are here.&amp;nbsp;&lt;/p&gt;
[quote user="Lasse Hansen"]Specifically i can&amp;#39;t find where to change all of the following settings in the segger IDE?[/quote]
&lt;p&gt;&amp;nbsp;And, I agree that the section is not written for SES. I will try to guide you through the steps, and hopefully get you up and running. A good start is to compare settings in PCA10040 vs PCA10040e. The following steps show how to open the configuration. Also, have a look at&amp;nbsp;the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/pdf/getting_started_ses.pdf"&gt;Developing with SES - Getting Started Guide&lt;/a&gt;&amp;nbsp;(pdf).&lt;br /&gt;&lt;br /&gt;In SES, make sure to click on the &lt;strong&gt;project&lt;/strong&gt; in project items:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-66d77c9da71145d4883c5e80d472cba5/pastedimage1560412898339v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Now, in the menu, click Project -&amp;gt; Options. This opens the Project Options. Make sure to choose Common settings:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-66d77c9da71145d4883c5e80d472cba5/pastedimage1560412987950v6.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Next, we&amp;#39;ll go through the steps from the User Guide. See my comments in &lt;strong&gt;bold.&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In the project settings, change to device &amp;quot;NordicSemiconductor-&amp;gt;nRF52810_xxaa&amp;quot;.
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;NordicSemiconductor does not apply, but in the search field type: nrf&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;This should give some alternatives to where NRF52 and NRF52832_XXAA are defined.&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Debugger - Target Device: Double click on value and choose&amp;nbsp;&lt;span&gt;nRF52810_xxAA&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span&gt;Please make sure to&amp;nbsp;compare PCA10040 vs PCA10040e project options&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;In the C/C++ preprocessor settings, remove the defines &amp;quot;NRF52&amp;quot; and &amp;quot;NRF52832_XXAA&amp;quot;.
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;See answer above,&amp;nbsp;in&amp;nbsp;&lt;span&gt;Preprocessor Definitions not&amp;nbsp;C/C++ preprocessor settings&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Add the preprocessor define &amp;quot;NRF52810_XXAA&amp;quot;.
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Preprocessor Definitions,&amp;nbsp;add&amp;nbsp;NRF52810_XXAA&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span&gt;Please make sure to&amp;nbsp;compare PCA10040 vs PCA10040e project options&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;In the linker script settings, adjust the linker script to match the maximum RAM and flash size of nRF52810.
&lt;ul&gt;
&lt;li&gt;ROM END: 0x2FFFF&lt;/li&gt;
&lt;li&gt;RAM END: 0x20005FFF&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The two above does not apply, instead: Under build -&amp;gt; memory segments (searh segments)&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;FLASH RX 0x0 0x30000&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;RAM RWX 0x20000000 0x6000&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Copy Section Placement Macros from PCA10040e&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;EDIT: Please see &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;this tutorial&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;And of course, remember to do step 6 and 7.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Let me know how this works for you!&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sleep and wakeup from RTC</title><link>https://devzone.nordicsemi.com/thread/192467?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 15:49:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36e7dd97-e93a-429c-a7cf-09738c3189d5</guid><dc:creator>Lasse Hansen</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;yvind, Thanks a lot.&lt;/p&gt;
&lt;p&gt;I followed your tip adding lines step by step from the RTC example to the ble_uart and managed to get a step further. Also i found the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fnrfx_migration_user_guide.html"&gt;Nrfx Migration User Guide&lt;/a&gt;&amp;nbsp;which seems to address some of the issues i had.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now i don&amp;#39;t&amp;nbsp;expect you to keep answering all my newbie questions, but this one would be very helpful&lt;/p&gt;
&lt;p&gt;In your answer you linked to&amp;nbsp;&lt;a title="This user guide" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/nrf52810_user_guide.html?cp=5_1_5_0"&gt;This user guide&lt;/a&gt;.&lt;br /&gt;I would love to be able to transfer more examples from nRF52832 to nRF52810, but is seems that the paragraph &amp;quot;Transferring the project to nRF52810 hardware&amp;quot; is not written for&amp;nbsp;the segger IDE. Specifically i can&amp;#39;t find where to change all of the following settings in the segger IDE?&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In the project settings, change to device &amp;quot;NordicSemiconductor-&amp;gt;nRF52810_xxaa&amp;quot;.&lt;/li&gt;
&lt;li&gt;In the C/C++ preprocessor settings, remove the defines &amp;quot;NRF52&amp;quot; and &amp;quot;NRF52832_XXAA&amp;quot;.&lt;/li&gt;
&lt;li&gt;Add the preprocessor define &amp;quot;NRF52810_XXAA&amp;quot;.&lt;/li&gt;
&lt;li&gt;In the linker script settings, adjust the linker script to match the maximum RAM and flash size of nRF52810.
&lt;ul&gt;
&lt;li&gt;ROM END: 0x2FFFF&lt;/li&gt;
&lt;li&gt;RAM END: 0x20005FFF&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Cheers Lasse&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sleep and wakeup from RTC</title><link>https://devzone.nordicsemi.com/thread/192012?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 10:30:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9695babd-cd6c-4362-9fcc-3861d39d3c71</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Can you please give some more information regarding what errors you are meeting?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is, unfortunately, no tutorial on how to combine examples. When combining example projects, the best is to start with the more complex example, in your case this is ble_uart. Then add RTC example into this example, adding the same header files etc. Be sure to enable correct peripherals in the sdk_config.h&lt;/p&gt;
&lt;p&gt;Have a look in DevZone, where similar questions has been asked e.g. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39125/setting-up-a-new-project-using-sdk-15"&gt;this thread&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/43985/merge-ble_app_interactive-with-ble_app_uart-example-available-in-sdk-15-2-0/172351#172351"&gt;this thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Let me know how&amp;nbsp;it goes!&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;
&lt;p&gt;-Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sleep and wakeup from RTC</title><link>https://devzone.nordicsemi.com/thread/191735?ContentTypeID=1</link><pubDate>Sat, 08 Jun 2019 16:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:765a267f-ebcf-4e28-a4ca-84ad84952a36</guid><dc:creator>Lasse Hansen</dc:creator><description>&lt;p&gt;Thank you &amp;Oslash;yvind, This example is great.&lt;/p&gt;
&lt;p&gt;I have now been&amp;nbsp;working on&amp;nbsp;merging this RTC example into my own project, that is based on a ble_uart example for the s112 softdevice, but this gives me all kinds of&amp;nbsp;strange errors that probably relate to drivers or includes that are not compatible with each other.&lt;/p&gt;
&lt;p&gt;Is there some guides that will explain how all this works. I seem to keep running in to problems related to adding drivers and preprocessor&amp;nbsp;include path issues.&lt;/p&gt;
&lt;p&gt;There seems to be a lot of users running into these kind of problems. Is this just really complicated or is it just about reading the right guides?&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;br /&gt;Lasse&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sleep and wakeup from RTC</title><link>https://devzone.nordicsemi.com/thread/191637?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2019 12:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fd3ade4-7320-41ce-98f9-5730e3633876</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello there,&lt;/p&gt;
&lt;p&gt;Please have a look at our &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/rtc_example.html?cp=5_1_4_6_32"&gt;RTC example &lt;/a&gt;in &lt;a href="https://infocenter.nordicsemi.com/topic/struct_sdk/struct/sdk_nrf5_latest.html?cp=5_1"&gt;SDK15.3&lt;/a&gt;&amp;nbsp;for pca10040. Be aware that this example does not include a project for pca10040e, but please read &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/nrf52810_user_guide.html?cp=5_1_5_0"&gt;this user guide&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>