<?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>peripheral uart power consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74120/peripheral-uart-power-consumption</link><description>So, 
 I&amp;#39;ve got a working framework for my project - a battery powered appliance that will occasionally trigger one of two solenoids, timestamping the operation and subsequently reporting them to a bluetooth connected phone. 
 I developed initially on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Apr 2021 09:10:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74120/peripheral-uart-power-consumption" /><item><title>RE: peripheral uart power consumption</title><link>https://devzone.nordicsemi.com/thread/306257?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 09:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59218e2f-ae3c-40ea-afc9-2b3f720a26a2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;According to &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.1/nrf/applications/nrf_desktop/doc/power_manager.html?highlight=power_state_deep_sleep_1"&gt;this&amp;nbsp;&lt;/a&gt;&amp;nbsp;&lt;span&gt;CONFIG_HAS_POWER_STATE_DEEP_SLEEP_1&amp;nbsp;would put the device to deep sleep (system off) after a power down timeout. But I don&amp;#39;t see it would reduce current consumption if you just simply use k_sleep() (it retain in Idle mode which is System ON)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3.5uA base current is expected when staying in System ON. When you turn on peripheral (i2C, ADC, GPIO input) it&amp;#39;s expected to have power consumption increased. So I don&amp;#39;t see any abnormal here after you turn off the logging in the netcore module. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The best way IMO to verify the power consumption is to use a PPK and can visualize&amp;nbsp;the power consumption over time.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart power consumption</title><link>https://devzone.nordicsemi.com/thread/306174?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 15:36:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6c4e068-832f-4836-80f8-e9a499baa70c</guid><dc:creator>KentOverton</dc:creator><description>&lt;p&gt;The advertising interval is set to 2 seconds.&lt;/p&gt;
&lt;p&gt;I commented out everything in main() except for the loop&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for(;;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{k_sleep(k_forever);&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;When&lt;/p&gt;
&lt;p&gt;CONFIG_HAS_POWER_STATE_DEEP_SLEEP_1=y is set&lt;/p&gt;
&lt;p&gt;power consumption is 3.5uA. An nearly as I can tell from my DMM this is unchanging.&lt;/p&gt;
&lt;p&gt;When&lt;/p&gt;
&lt;p&gt;CONFIG_HAS_POWER_STATE_DEEP_SLEEP_1is not set&lt;/p&gt;
&lt;p&gt;power consumption is 53uA.&lt;/p&gt;
&lt;p&gt;Uncommenting the balance of main, which enables I2C, ADC, and GPIO, connects to blue tooth and starts advertising, power consumption is 53uA, with a visible spike every two seconds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart power consumption</title><link>https://devzone.nordicsemi.com/thread/306033?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 09:17:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac1f384d-488d-4d2e-9f3d-3404c52faad7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Depends on the advertising interval you have you may have different power consumption.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest to turn off all functionality and only sleep to get to the base sleep current before testing with BLE. Having UART running would also draw current as it keeps the clock running.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart power consumption</title><link>https://devzone.nordicsemi.com/thread/305800?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 10:42:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:298ffceb-57ca-4a4a-8fce-cbb2231c6096</guid><dc:creator>KentOverton</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m&amp;nbsp; providing power from a regulated power supply at 3.0V through the &amp;quot;External Supply&amp;quot; pins on the DK.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m measuring current with a BK Precision Bench DMM&amp;nbsp;on. the NRF Current Measurement pins on the DK (I&amp;#39;ve cut solder bridge SB40).&lt;/p&gt;
&lt;p&gt;In the context of what I&amp;#39;m trying to do, I&amp;#39;m running the simplest possible configuration I can. It&amp;#39;s a slimmed down version of peripheral_uart that starts advertising, then does a k_sleep(K_FOREVER).&lt;/p&gt;
&lt;p&gt;In fact, it&amp;#39;s unrealistic. I want my main loop to idle, waiting for either a GPIO interrupt or a Bluetooth connection. The k_sleep is the only mechanism I could make work on the 52832.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached a zip file of the top of my project (the build directories are empty)&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_uart_2D00_4_2D00_20-_2D00_-Copy.zip"&gt;devzone.nordicsemi.com/.../peripheral_5F00_uart_2D00_4_2D00_20-_2D00_-Copy.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart power consumption</title><link>https://devzone.nordicsemi.com/thread/305788?ContentTypeID=1</link><pubDate>Tue, 20 Apr 2021 09:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a80d2b1c-b0a4-439e-b179-32e7142d2f6a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I would suggest to test using very simple application without any peripheral, you can try only toggling an LED for example.&amp;nbsp;&lt;br /&gt;Just so that you make sure you can get to the base current consumption of a few uA.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How did you measure the current consumption ? Please try recording using a PPK it would help showing what may draw the current.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You can have a look at my webinar here at minute 50th that I showed some tips on measuring current consumption on a BLE application on nRF53:&amp;nbsp;&lt;br /&gt;&lt;a href="https://webinars.nordicsemi.com/get-started-on-your-advanced-1"&gt;https://webinars.nordicsemi.com/get-started-on-your-advanced-1&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart power consumption</title><link>https://devzone.nordicsemi.com/thread/305627?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 15:36:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7095248b-7a0a-40c5-b669-30885aa44dae</guid><dc:creator>KentOverton</dc:creator><description>&lt;p&gt;I downloaded the nrfjprog stuff, did the two nrfjprog steps your documentation suggests, then went back to hci_rpmsg and tried to download it again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I got the same kind of error as I had before.&lt;/p&gt;
&lt;p&gt;I reloaded my app.&lt;/p&gt;
&lt;p&gt;Idle power consumption is now in the 100 uA range.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart power consumption</title><link>https://devzone.nordicsemi.com/thread/305621?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 15:15:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8988172-e3c0-411e-b1e1-a108285f108e</guid><dc:creator>KentOverton</dc:creator><description>&lt;p&gt;I&amp;#39;m in a Windows environment. Neither west nor nrfjprog are in my $PATH. I looked in Progam Files and Program Files x86 and couldn&amp;#39;t find them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart power consumption</title><link>https://devzone.nordicsemi.com/thread/305613?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 14:49:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:608a9cab-0906-4d5d-be17-0e0bf14e0250</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please make sure you recover the chip as erasing is not possible after programming (because of readback protection)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please have a look here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#readback-protection"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#readback-protection&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart power consumption</title><link>https://devzone.nordicsemi.com/thread/305592?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 14:08:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71182589-2a73-4f7c-a55a-7937f43ed208</guid><dc:creator>KentOverton</dc:creator><description>&lt;p&gt;I did as you suggested, turning off CONFIG_LOG and CONFIG_SERIAL via the Segger SES &amp;quot;Configure nRF Connect SDK Project.&amp;quot;&lt;/p&gt;
&lt;p&gt;There was an error reported on downloading - the transcript is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Preparing target for download&lt;br /&gt; Executing Reset script TargetInterface.resetAndStop()&lt;br /&gt; Reset: Halt core after reset via DEMCR.VC_CORERESET.&lt;br /&gt; Reset: Reset device via AIRCR.SYSRESETREQ.&lt;br /&gt;Downloading &amp;lsquo;merged.hex&amp;rsquo; to J-Link&lt;br /&gt; Programming 159.9 KB of addresses 00000000 &amp;mdash; 00027fef&lt;br /&gt; J-Link: Flash download: Bank 1 @ 0x00000000: 1 range affected (131072 bytes)&lt;br /&gt; J-Link: Flash download: Total: 4.181s (Prepare: 0.107s, Compare: 0.103s, Erase: 2.793s, Program &amp;amp; Verify: 1.168s, Restore: 0.008s)&lt;br /&gt; J-Link: Flash download: Program &amp;amp; Verify speed: 109 KB/s&lt;br /&gt;Connecting &amp;lsquo;J-Link&amp;rsquo; using &amp;lsquo;USB&amp;rsquo;&lt;br /&gt; Connecting to target using SWD&lt;br /&gt; Loaded C:/Users/kover/ncs/v1.5.1/toolchain/segger_embedded_studio/bin/JLink_x64.dll&lt;br /&gt; Firmware Version: J-Link OB-K22-NordicSemi compiled Jan 21 2020 17:33:01&lt;br /&gt; DLL Version: 6.94a&lt;br /&gt; Hardware Version: V1.00&lt;br /&gt; Target Voltage: 3.300&lt;br /&gt; Device &amp;quot;NRF5340_XXAA_NET&amp;quot; selected.&lt;br /&gt; ConfigTargetSettings() start&lt;br /&gt; ConfigTargetSettings() end&lt;br /&gt; InitTarget() start&lt;br /&gt; InitTarget() end&lt;br /&gt; Found SW-DP with ID 0x6BA02477&lt;br /&gt; DPIDR: 0x6BA02477&lt;br /&gt; AP map detection skipped. Manually configured AP map found.&lt;br /&gt; AP[0]: AHB-AP (IDR: Not set)&lt;br /&gt; AP[1]: AHB-AP (IDR: Not set)&lt;br /&gt; AP[2]: MEM-AP (IDR: Not set)&lt;br /&gt; AP[3]: MEM-AP (IDR: Not set)&lt;br /&gt; AP[1]: Core found&lt;br /&gt; AP[1]: AHB-AP ROM base: 0xE00FE000&lt;br /&gt; CPUID register: 0x410FD214. Implementer code: 0x41 (ARM)&lt;br /&gt; Found Cortex-M33 r0p4, Little endian.&lt;br /&gt; FPUnit: 8 code (BP) slots and 0 literal slots&lt;br /&gt; Security extension: not implemented&lt;br /&gt; CoreSight components:&lt;br /&gt; ROMTbl[0] @ E00FE000&lt;br /&gt; ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB4C9 ROM Table&lt;br /&gt; ROMTbl[1] @ E00FF000&lt;br /&gt; ROMTbl[1][0]: E000E000, CID: B105900D, PID: 000BBD21 Cortex-M33&lt;br /&gt; ROMTbl[1][1]: E0001000, CID: B105900D, PID: 000BBD21 DWT&lt;br /&gt; ROMTbl[1][2]: E0002000, CID: B105900D, PID: 000BBD21 FPB&lt;br /&gt; ROMTbl[1][6]: E0042000, CID: B105900D, PID: 000BBD21 CSS600-CTI&lt;br /&gt;Preparing target for download&lt;br /&gt; Executing Reset script TargetInterface.resetAndStop()&lt;br /&gt; ResetTarget() start&lt;br /&gt; ResetTarget() end&lt;br /&gt;Downloading &amp;lsquo;zephyr.elf&amp;rsquo; to J-Link&lt;br /&gt; Programming 167.0 KB of addresses 01000000 &amp;mdash; 01029c4b&lt;br /&gt; Programming 1.3 KB of addresses 01029c4c &amp;mdash; 0102a1bb&lt;br /&gt; T-bit of XPSR is 0 but should be 1. Changed to 1.&lt;br /&gt; Timeout while preparing target, RAMCode did not respond in time. (PC = 0x00000000, CPSR = 0x00000000, LR = 0x61000003)!&lt;br /&gt; Failed to prepare RAMCode using RAM&lt;br /&gt;Failed to download application.&lt;br /&gt;Generic error.&lt;br /&gt;Please check J-Link and target connection.&lt;br /&gt;Illegal value 0x21009F28 written to register 67 (PSP_NS) ignored&lt;/p&gt;
&lt;p&gt;The current draw after the download is uncganged.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peripheral uart power consumption</title><link>https://devzone.nordicsemi.com/thread/305582?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 13:46:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:162a298b-5a68-439f-84a2-1bbac624156f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hei Martin,&amp;nbsp;&lt;br /&gt;When you configure the hci_rpmsg, please make sure you set&amp;nbsp; CONFIG_LOG=n and&amp;nbsp;CONFIG_SERIAL=n . Logging enabled on the netcore could be the reason you have higher current consumption.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>