<?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>Serial Connectivity and Serial DFU - High Current Draw - nRF51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12627/serial-connectivity-and-serial-dfu---high-current-draw---nrf51822</link><description>I have combined Nordic&amp;#39;s serial connectivity code and Nordic&amp;#39;s serial DFU example. 
 Upon initial powerup, the nRF51822 draws an expected amount of current (~600uA). When issuing the system off command via serial, the current draw drops to about 0.5uA</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Sep 2016 22:23:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12627/serial-connectivity-and-serial-dfu---high-current-draw---nrf51822" /><item><title>RE: Serial Connectivity and Serial DFU - High Current Draw - nRF51822</title><link>https://devzone.nordicsemi.com/thread/47970?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 22:23:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26e6fbeb-6fb5-4d9c-acb5-adbf05cac2e9</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;@jpreston&lt;/p&gt;
&lt;p&gt;Did you validate the answer&lt;/p&gt;
&lt;p&gt;I&amp;#39;m thinking of using Serial DFU, so am interested in knowing what happened.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Connectivity and Serial DFU - High Current Draw - nRF51822</title><link>https://devzone.nordicsemi.com/thread/47969?ContentTypeID=1</link><pubDate>Tue, 24 May 2016 14:30:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44975157-9b9a-49b0-a140-bdce99a1fa2d</guid><dc:creator>jpreston</dc:creator><description>&lt;p&gt;Just to add further information to this problem (we had it crop back up again), the current draw was a result of our host processor waiting to process data received from the nRF51.  Since that was still in development, we never reset our internal flag.  Hung, your advice regarding using app_uart directly is still valid, so I will now verify this answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Connectivity and Serial DFU - High Current Draw - nRF51822</title><link>https://devzone.nordicsemi.com/thread/47968?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2016 10:05:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ec1d338-3ddc-4831-b9bc-06799c18848f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jpreston,
If you want to use UART to send a byte, I would suggest you to use the app_uart directly, and use an event handler to catch when the byte is sent before closing app uart, instead of using hci slip.&lt;/p&gt;
&lt;p&gt;But still I couldn&amp;#39;t explain why you have more power consumption when enter SystemOFF mode. Could you try to enter system off right in the bootloader (after you sending the byte) and see what happens  ? Would you be able to reproduce the  issue with nRF51 DK ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Connectivity and Serial DFU - High Current Draw - nRF51822</title><link>https://devzone.nordicsemi.com/thread/47967?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2016 15:52:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b64ba425-ebd3-4156-afab-6b0d5ab5be58</guid><dc:creator>jpreston</dc:creator><description>&lt;p&gt;Upon further inspection, adding a hci_slip_close() fixes the issue as well.  However, the character doesn&amp;#39;t get transmitted out the UART like it did before.  I&amp;#39;m guessing that because the UART is trying to transmit something while the chip is changing context is causing the issue?  What would be the best way to accomplish what I&amp;#39;m trying to do here (i.e. transmit character from the bootloader)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Connectivity and Serial DFU - High Current Draw - nRF51822</title><link>https://devzone.nordicsemi.com/thread/47966?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2016 15:16:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89dd50fd-9810-4199-8cae-d372e7b55c1c</guid><dc:creator>jpreston</dc:creator><description>&lt;p&gt;The bootloader is slightly modified from the dual_bank_serial_s110 DFU example in SDK 10.0.0.  I removed the code that initializes leds and buttons and added these two lines just after GPREGRET is reset:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;hci_slip_open();
app_uart_put(0xa5);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When removing those two lines, everything seems to work as expected again.  If you have issues getting this to reproduce, I can post the main.c file for the bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Connectivity and Serial DFU - High Current Draw - nRF51822</title><link>https://devzone.nordicsemi.com/thread/47963?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2016 15:04:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5536fcd-78d1-4980-8ffd-e8a6030e7635</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;It&amp;#39;s strange for me also. By spec, when entering SystemOFF, all peripheral except for wake sources should be turned off. If you enter SystemOFF right in the bootloader, after you printout on UART, and before you jump to application, what would happen ?&lt;/p&gt;
&lt;p&gt;You can attach your bootloader and maybe a dummy application that can show the issue, then I can test here on my side and check what could be wrong here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Connectivity and Serial DFU - High Current Draw - nRF51822</title><link>https://devzone.nordicsemi.com/thread/47964?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2016 14:41:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55311c0d-7e36-4a2c-9d4b-929bd821fe69</guid><dc:creator>jpreston</dc:creator><description>&lt;p&gt;I think you&amp;#39;re right about the bootloader using peripherals before jumping to the application is the problem.  I had modified it to send a character out the UART to give our main processor notification that the nRF51 is booting.  I&amp;#39;m not positive that this completely solves the issue yet, but I removed that part of the bootloader and it seems to be working properly now.  Why do you think this would still cause high current draw when in SystemOFF?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial Connectivity and Serial DFU - High Current Draw - nRF51822</title><link>https://devzone.nordicsemi.com/thread/47965?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2016 13:09:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3c0b4e7-30bc-4572-b1d2-c22efdcc83ac</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi jpreston,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m suspecting that because the bootloader doesn&amp;#39;t reset all the peripheral registers before jumping to application.&lt;/p&gt;
&lt;p&gt;I assume you experienced the issue every time you bootup the chip, not only just the first time after the bootloader update the firmware ?&lt;/p&gt;
&lt;p&gt;It&amp;#39;s very strange to hear that you have 1.2mA when in SystemOFF mode (not just putting CPU to sleep, am I correct ? )
Have you tried to simplify the bootloader so that it won&amp;#39;t use any peripheral before jumping to application ?&lt;/p&gt;
&lt;p&gt;There could be the chance that the device entered debug mode because of the noise on the SWD pins when starting up, but then it&amp;#39;s hard to explain why this doesn&amp;#39;t happens if the bootloader is not programmed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>