<?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>Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23636/issue-with-sdk-13-1-0-power-management</link><description>Hi there, 
 I have nRF52840-Preview-DK eval board. I have downloaded the “SDK 13.1.0”. I was trying out the power management example under the folder “..\nRF5-SDK_copy\nRF5-SDK\examples\peripheral\pwr_mgmt\” on IAR. This example doesn’t work out of the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Jul 2017 22:56:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23636/issue-with-sdk-13-1-0-power-management" /><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92893?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 22:56:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd7c135d-ebe9-4ae8-b7d9-e46041234af3</guid><dc:creator>Pratyush Dave</dc:creator><description>&lt;p&gt;I was able to get the “pwr_mgmt” example working in IAR in SDK 13.1.0. I ran the debugger and found out that the application was getting stuck in the loop within the function “nrf_delay_us()” which is in the file “nrf_delay.h” under the “components” folder of the SDK files. The function, nrf_delay_us(), is written in assembly language, and for some reason, was not generating the correct code when built with IAR v.8.11. There are two other file that I had to replace as well. Here are the details as follows.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download SDK 12.3.0 and extract all the files into a folder where you keep nRF5 SDKs.&lt;/li&gt;
&lt;li&gt;Replace the following three files in SDK v.13.1.0 from the corresponding files in SDK v.12.3.0.&lt;/li&gt;
&lt;li&gt;Replace the file “nrf_delay.h” in the path, “\components\drivers_nrf\delay\”, with the same file from the corresponding path in SDK 12.3.0.&lt;/li&gt;
&lt;li&gt;Replace the file “retarget.c” in the path, “\components\libraries\uart\” with the same file from the corresponding path in SDK 12.3.0.&lt;/li&gt;
&lt;li&gt;Replace the file “port.c” in the path ““\external\freertos\portable\IAR\nrf52\” with the same file from the corresponding path in SDK 12.3.0. NOTE: This will fix an issue of getting warning messages if you are using FreeRTOS, and are getting these warnings when building an SDK example project that uses FreeRTOS.&lt;/li&gt;
&lt;li&gt;Next rebuild all the files for the pwr_mgmt project and test it.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92896?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 06:22:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:022f8f14-a5d7-4f64-b76d-8ea89ac48ca1</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;I am affraid I will not have easy fix for other IAR examples. If you have possibility to downgrade IAR version to 7.60.2 I would recommend it.&lt;/p&gt;
&lt;p&gt;Please refere to this topic:
&lt;a href="https://devzone.nordicsemi.com/question/159201/linker-error-when-compiling-thread-examples-with-iar/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92901?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 16:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7b662c6-164a-4676-bd1b-f6836375cbdc</guid><dc:creator>glypat22</dc:creator><description>&lt;p&gt;That&amp;#39;s awesome - thanks Jakub! Should I repeat this same trick for all other that are not working on SDK 13.1 e.g. FreeRTOS,GPIOTE, PWM, RTC etc&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92898?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2017 09:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fc90c3a-33ee-4df9-86c5-c242049edd51</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Fix is quite easy to implement, you need to only replace two files in SDK13 from SDK12.3:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;nrf_delay.h (sdk\nrf5\components\drivers_nrf\delay)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;retarget.c (\sdk\nrf5\components\libraries\uart)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92900?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 20:47:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e69d599-54b6-4f6e-80ae-accddfa019a4</guid><dc:creator>glypat22</dc:creator><description>&lt;p&gt;Hi Jakub - do let me know as soon as you find the cause/solution. I would like to run the power management as well as FreeRTOS app soon on nRF52840 dev board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92887?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 16:55:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b492722-6ca9-44cd-b000-5d7e2e8be38a</guid><dc:creator>glypat22</dc:creator><description>&lt;p&gt;Ooops - we are using IAR 8.11.1 and nRF52840 board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92895?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 16:54:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fd9b8e0-fd06-4106-b1b2-646eac8301cf</guid><dc:creator>glypat22</dc:creator><description>&lt;p&gt;Ok thanks! I also confirmed that power management example from SDK 12.3 works fine on 8.11.1. However, FreeRTOS example doesn&amp;#39;t work. In fact, all the examples in SDK12.3 are not for nRF52840 but for nRF52832 chipsets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92897?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 11:24:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c0d54b0-a617-468c-82a3-741c40e7b063</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Interesting, I confirm that in SDK12.3 example is working correctly with IAR 8.
I will start task internally and we will try to find a root cause.&lt;/p&gt;
&lt;p&gt;Thank you for checking that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92903?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 11:13:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ba236e6-393f-4db4-a718-be39d2e28793</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;hi glypat22, it should work fine with SDK 12.3 using IAR 8&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92905?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 06:44:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:873f92e1-18e7-4c8b-bce2-f80ce786f8db</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;I guess it will be fixed by NORDIC latest when we will start official IAR 8.x.x support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92892?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 06:43:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65b6963e-d29d-49ab-a2b5-a94e2ebc03cf</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;It was tested with: IAR Workbench 7.60.2 (supported version according to release notes) and it compiled without warnings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92899?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 06:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df9bd5e9-9122-4029-989a-9d3f92d4f53e</guid><dc:creator>glypat22</dc:creator><description>&lt;p&gt;So, what do you think when the solution will be available? and will it be by IAR or Nordic?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92888?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 06:38:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4d61439-ebe0-4cfb-a5c7-27b63f5ad363</guid><dc:creator>glypat22</dc:creator><description>&lt;p&gt;I tried couple of others - they work fine except the FreeRTOS blinky program. It fails with error: &amp;quot;Error[Og014]: Warning in inline assembly: &amp;quot;DC or DS directive while in CODE area.&amp;quot; Looks like SDK 13.1.0 wasn&amp;#39;t tested thoroughly for all examples. I wish I can have fix for this as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92904?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 06:31:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:198612ea-a08c-443b-affe-2b1be27911a9</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve checked with IAR 8.11.xx and I confirm it is not working, unfortunately IAR 8.x.x is not supported in SDK 13.1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92902?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 06:22:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:837f3cec-def1-4a40-97b0-a63c3d978b24</guid><dc:creator>glypat22</dc:creator><description>&lt;p&gt;Thanks for trying. I am using IAR 8.11.2.13606.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92894?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 06:18:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe8e5c05-8ad5-4b0e-aaf4-92e07494f90f</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Couple of minutes ago I have downloaded SDK 13.1 from this page:
&lt;a href="https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v13.x.x/"&gt;developer.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Next I&amp;#39;ve compiled pwr_mngt example with IAR 7.80.4 for PCA10056 Board and it just worked fine.&lt;/p&gt;
&lt;p&gt;Please let me know which IAR version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92891?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 00:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d27f4579-ee5a-4f03-86e0-dda24933d4e6</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;So it&amp;#39;s only one example, remaining IAR projects in nRF5 SDK v13.1.0 work? Then hopefully Nordic support team will find the bug tomorrow;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92889?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 23:39:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fa5ee6f-8cf4-455d-a4c3-a9cdceeb8df0</guid><dc:creator>glypat22</dc:creator><description>&lt;p&gt;Thanks but this is not relevant to question. I am working on nRF52 and my question is specific to power management example. Blinky example works just fine so that confirms that I have working development environment for IAR and SDK 13.1.0 and nRF52840 board. We are using only IAR.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with SDK 13.1.0 Power management</title><link>https://devzone.nordicsemi.com/thread/92890?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 23:08:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f1804a0-95d9-4b20-afd1-8907b1a11778</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Some hints to IAR development with nRF5x chips are &lt;a href="https://devzone.nordicsemi.com/blogs/738/step-by-step-guide-to-setup-and-start-developemt-w/"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>