<?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>read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27137/read-back-protection-puts-tag-to-high-current-consumption</link><description>Hi,
I am seeing an issue where after enabling read back protection (rbp) on NRF52 and using sdk 12.1 the tag goes to state where it drains a lot of current. 
 command used:
nrfjprog -f NRF52 --rbp ALL 
 I have used power profiler to check the behavior</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Nov 2017 15:54:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27137/read-back-protection-puts-tag-to-high-current-consumption" /><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106843?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 15:54:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e969a608-5b20-4895-b35c-7aaf12665fd7</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;You can connect it like this if you only want to measure current going in to the nRF5 chip:&lt;br /&gt;
&lt;img src="https://devzone.nordicsemi.com/attachment/b95a13a5a7308809388b43d17afc2ff0" alt="ppk" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106842?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 14:01:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68f9f222-6618-4809-a5d6-f59ba82cd603</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;To answer your question 3 above: You need to connect the ribbon cable to the debug IN port on the nRF52 DK. In the picture it is connected to Debug out. Now it should be directed automatically.&lt;/p&gt;
&lt;p&gt;To answer your question 4 above: If you measure current going in to the External supply header of the nRF52 DK, you also measure everything on the DK including SEGGER debug chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106841?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 13:56:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f53940d9-4363-4636-a894-ac676faaecc2</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, the reason why the workaround I posted does not work seems to be related to JLink version and type of JLink. If you are using the DK to flash, the workaround does not work in JLink software version 6.16 or newer. Please revert the software version to 6.14a. You can download this from JLink homepage.&lt;/p&gt;
&lt;p&gt;You are right that pinreset itself causes a high current consumption on the newer JLink SW version. So the only way that I&amp;#39;m able to get the power down while RBP is active is by using the SWDWrite workaround, nothing else works.&lt;/p&gt;
&lt;p&gt;So please try again with JLink SW version 6.14a&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106840?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2017 23:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f68dac8c-09f1-4cfb-9fc6-58f5c3447aaf</guid><dc:creator>Sal</dc:creator><description>&lt;p&gt;Stian, any updates?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106839?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2017 21:33:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0534fc7-6dff-47d8-a98f-ed850beda4c1</guid><dc:creator>Sal</dc:creator><description>&lt;p&gt;I am using a Ubuntu vm to program chip and windows 7 to power profile (The commands are issued from Ubuntu therefore linux: JLinkExe).&lt;/p&gt;
&lt;p&gt;Tried your suggestion on my custom board, still seeing the same issue (does not exit debug mode). Here is the logs and revision of jlink/nrfjprog:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ nrfjprog -v
nrfjprog version: 9.7.1
JLinkARM.dll version: 6.20e

$ JLinkExe
SEGGER J-Link Commander V6.20e (Compiled Oct  6 2017 17:06:37)
DLL version V6.20e, compiled Oct  6 2017 17:06:32


Connecting to J-Link via USB...O.K.
Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 24 2017 17:30:12
Hardware version: V1.00
S/N: 681792490
VTref = 3.300V


Type &amp;quot;connect&amp;quot; to establish a target connection, &amp;#39;?&amp;#39; for help
J-Link&amp;gt;SWDSelect
Select SWD by sending SWD switching sequence.
Found SWD-DP with ID 0x2BA01477
J-Link&amp;gt;SWDWriteDP 1 0x04000000
Write DP register 1 = 0x04000000
J-Link&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I also have a board with pin reset connection you suggested earlier. Trying the same command on it would also not exit debug mode. Also tried just the pinreset command and it also seems to put the tag in the high current mode (very strange!). For your reference here are the command sequence:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Program tag&lt;/li&gt;
&lt;li&gt;check the current drain and issue a reset to make sure:
nrfjprog --reset&lt;/li&gt;
&lt;li&gt;run pinreset and monitor the current
nrfjprog --pinreset&lt;/li&gt;
&lt;li&gt;the current drain jumps to around ~3 mA. This is even without rbp enabled.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I am currently trying to use the same setup as yours to eliminate any hw issues on my custom board. Attached please find the setup I am using to measure the current and issue commands (rbp/reset/etc.) at the same time (screenshot attached above).&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The nrf52 dev kit is running the below hex file (top right dev kit).
nRF5_SDK_12.1.0_0d23e2a\examples\ble_peripheral\ble_app_beacon\hex\ble_app_beacon_pca10040_s132.hex&lt;/li&gt;
&lt;li&gt;It is powered via the devkit(nrf51) and ppk setup (buttom dev kit -- connected to windows 7 host).&lt;/li&gt;
&lt;li&gt;A third dev kit (nrf51 -- top left -- connected to Ubuntu vm) is used to issue commands via the ribbon cable as shown on the screenshot. However, the commands are not directed to the NRF52 chip. Instead they are directed to the nrf51 kit (top left dev kit). (Please let me know if there is a jumper setup that would direct the command to the nrf52 kit. If the setup is not correct please share your setup).&lt;/li&gt;
&lt;li&gt;On the ppk ui I see the average current about ~550uA (which application you are using that would give 2uA?)&lt;/li&gt;
&lt;li&gt;Please note that this is the same setup I am using when using my custom board to measure current (here in the screenshot it is only replaced with NRF52 kit -- top right board).&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106837?ContentTypeID=1</link><pubDate>Thu, 05 Oct 2017 07:24:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70d38d54-7d43-47e1-afcb-3c298a10da41</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I tried now with the PPK connected with a separate debugger, powering the DUT on the &amp;quot;External DUT&amp;quot; port. Based on your previous comments I believe this is equivalent to your setup.&lt;/p&gt;
&lt;p&gt;What I did:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Idle current is 2 µA, reading from PPK&lt;/li&gt;
&lt;li&gt;&lt;code&gt;nrfjprog --reset&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Current is still 2 µA&lt;/li&gt;
&lt;li&gt;&lt;code&gt;nrfjprog --rbp ALL&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Current is now 3 mA&lt;/li&gt;
&lt;li&gt;&lt;code&gt;nrfjprog --pinreset&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Current is still 3 mA, so I&amp;#39;m able to confirm the behaviour on my side.&lt;/li&gt;
&lt;li&gt;Open &amp;quot;JLink Commander&amp;quot; in windows (or JLinkExe in linux)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;SWDSelect&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;SWDWriteDP 1 0x04000000&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Current goes down to 2 µA IDLE again.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I tried first with JLink v5.10d. But then JLink Commander would not send the SWD commands. Then I tried with v6.16b, and it worked. So maybe it is something wrong with the version you are using. These are my versions:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog version: 9.2.0
JLinkARM.dll version: 6.16b
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Are you using linux or windows?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106844?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2017 17:43:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f644aeb-746f-4ee1-88b8-b589cd42ff1d</guid><dc:creator>Sal</dc:creator><description>&lt;p&gt;Hi Stian,&lt;/p&gt;
&lt;p&gt;I added a connection from the reset pin (p0.21 on schematics) to the pin 10 of the J1. I can see that the &amp;quot;nrfjprog -f NRF52 --pinreset&amp;quot; command now works and it initiates a reset when chip is locked (--rbp). However the current stays high still (~3.30 mA, after enabling the read back protection).&lt;/p&gt;
&lt;p&gt;Were you able to confirm the behavior on your side?&lt;/p&gt;
&lt;p&gt;I do not think the command is sent to the power profiler kit. Using voltmeter on the P0.19 (pin22) would show the voltage (around 2.71v) also measuring the current on the same pin would always show a constant value of around 190 uA regardless of debug/normal mode.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106836?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 09:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1b0f38e-ec45-4093-8fdc-d40b30253975</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;The command still works without the pin reset.&lt;/p&gt;
&lt;p&gt;I see that you are also using a Power Profiler Kit. Can it be that the SWD commands are sent to the PPK instead? What if you use a multimeter to monitor the current on P22 so that only the target is connected to your computer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106838?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 00:42:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74ffc94c-1bd4-4f67-ba5c-a726a6ba1de6</guid><dc:creator>Sal</dc:creator><description>&lt;p&gt;I tried the new steps. Unfortunately it still does not help with the current drain. Stays very high.
Please note that the pin reset will not work on my target as I am missing a connection (can not modify as the target as it is a production unit.) Would the command work still without this connection?&lt;/p&gt;
&lt;p&gt;Do you see the same behavior on your setup?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106834?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2017 09:50:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:612845e7-3c50-4fc9-9c51-db3bafff3fc9</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I will try your setup with the PPK and different versions of JLink and report back. But first, just to answer your question 1) If you use nrfjprog to enable RBP, you also enable debug mode. The JLink (nrfjprog) needs to write to a register in order to enable this mode, so then debug mode is also enabled.&lt;/p&gt;
&lt;p&gt;You are right that the chip is locked after RBP and you are not able to do a soft reset. But, if you use JLinkExe without issuing the &amp;quot;connect&amp;quot; command, you can write commands over SWD directly to the debug interface and access registers that are not locked after RBP. So execute the following sequence &lt;em&gt;without&lt;/em&gt; connecting to the chip. Just write SWDSelect etc. right after opening JLinkExe:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;JLinkExe
SWDSelect
SWDWriteDP 1 0x04000000
exit
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will reset the debug interface so that the current goes down. Then you can do a pin reset afterwards to reset the chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106832?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2017 18:38:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50529fa2-288e-449e-a2ce-11045647e171</guid><dc:creator>Sal</dc:creator><description>&lt;ol&gt;
&lt;li&gt;Yes, for debugging I use JLinkExe and connect to target via SWD interface and default speed (4000 kHz), and on the power prfiler I see the current drain goes high (~4ma) this is expected. Also on terminating the JLinkExe or simply disconnecting the ribbon cable I am able to exit and see the current drain goes back to normal.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;However, for programming the chip and enabling the RBP I use nrfjprog tool, this should not enable debugging. Please confirm.&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;Unfortunately I am not able to modify the target to test the setup.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;There seems to be an issue with different combinations of nrfjprog and Jlink that would not issue a soft reset to exit debug mode.
I think this revision works okay:&lt;/p&gt;
&lt;p&gt;$ nrfjprog -v
nrfjprog version: 9.3.1
JLinkARM.dll version: 6.18a&lt;/p&gt;
&lt;p&gt;After programming the chip via commands below the reset work okay and current drain goes down:&lt;/p&gt;
&lt;p&gt;$ nrfjprog -f NRF52 --program ./merged.hex --verify --chiperase --reset&lt;/p&gt;
&lt;p&gt;**But the --reset doesn&amp;#39;t seem to work on this older rev combination for example:
$ nrfjprog -v
nrfjprog version: 8.5.0
JLinkARM.dll version: 6.12a&lt;/p&gt;
&lt;p&gt;(this is maybe the issue you are experiencing)&lt;/p&gt;
&lt;p&gt;**3) Please try these commands on your setup (you should see similar issue as I am experiencing):&lt;/p&gt;
&lt;p&gt;-program the kit and monitor with ppk at the same time (use a different debug kit for this as there seems to be an issue where the same debug kit can not be used to program and run ppk):&lt;/p&gt;
&lt;p&gt;$ nrfjprog -f NRF52 --program ./merged.hex --verify --chiperase --reset&lt;/p&gt;
&lt;p&gt;-enable rbp:
$ nrfjprog -f NRF52 --rbp ALL&lt;/p&gt;
&lt;p&gt;(the chip should go to &amp;quot;sleep&amp;quot; with high current drain)&lt;/p&gt;
&lt;p&gt;-try the same command above again or force a &amp;quot;reset&amp;quot;:&lt;/p&gt;
&lt;p&gt;$ nrfjprog -f NRF52 --reset
ERROR: The operation attempted is unavailable due to readback protection in
ERROR: your device. Please use --recover to unlock the device.&lt;/p&gt;
&lt;p&gt;(You should see higher current drain but wakes up the chip)&lt;/p&gt;
&lt;p&gt;Now launching the debugger (JLinkExe) and trying the command you mentioned as below would not still work as the chip is locked. The chip would go back to sleep with even higher current drain. Logs below:&lt;/p&gt;
&lt;p&gt;$ JLinkExe
SEGGER J-Link Commander V6.18a (Compiled Aug 11 2017 17:53:58)
DLL version V6.18a, compiled Aug 11 2017 17:53:53&lt;/p&gt;
&lt;p&gt;Connecting to J-Link via USB...O.K.
Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 24 2017 17:30:12
Hardware version: V1.00
S/N: 681691590
VTref = 3.300V&lt;/p&gt;
&lt;p&gt;Type &amp;quot;connect&amp;quot; to establish a target connection, &amp;#39;?&amp;#39; for help
J-Link&amp;gt;connect
Please specify device / core. : NRF52832_XXAA
Type &amp;#39;?&amp;#39; for selection dialog
Device&amp;gt;
Please specify target interface:
J) JTAG (Default)
S) SWD
TIF&amp;gt;S
Specify target interface speed [kHz]. : 4000 kHz
Speed&amp;gt;
Device &amp;quot;NRF52832_XXAA&amp;quot; selected.&lt;/p&gt;
&lt;p&gt;Connecting to target via SWD
Found SW-DP with ID 0x2BA01477
CTRL-AP indicates that the device is secured.
For debugger connection the device needs to be unsecured.
Note: Unsecuring will trigger a mass erase of the internal flash.
Device will be unsecured now.
Found SW-DP with ID 0x2BA01477
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
AP[1]: JTAG-AP (IDR: 0x02880000)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
Cortex-M4 identified.
J-Link&amp;gt;SWDSelect
Select SWD by sending SWD switching sequence.
Found SWD-DP with ID 0x2BA01477
J-Link&amp;gt;SWDWriteDP 1 0x04000000
Write DP register 1 = 0x04000000
J-Link&amp;gt;exit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106833?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 14:42:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2e3ae73-610b-469c-9d8c-a8005690bd9d</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Seems like there&amp;#39;s an issue with the jlink dll or nrfjprog so that the debug interface is never reset when you exit debug mode after RBP is activated. Not sure exactly what causes this, could be an issue with some versions of jlink dll only. I will investigate further. However, you can reset the debug interface manually through JLinkExe, and that should fix the issue.&lt;/p&gt;
&lt;p&gt;Open JLink Commander (windows) or JLinkExe (Linux) and write the following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SWDSelect
SWDWriteDP 1 0x04000000
exit
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This should get the current consumption down to normal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106835?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 11:24:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f11d191-a29c-4460-8dd6-22620f6769af</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;The chip goes to debug state whenever the debuger is used. It is the debugger that puts the chip to debug state before writing to registers etc., for example when you want to enable RBP.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Debug mode is entered by writing specific commands through the SWD lines and it should therefore never enter debug mode unless you have a debugger connected and purposely enter debug mode.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Did you get the current draw down after connecting the reset pin to the debugger? I&amp;#39;m actually having problems here too when I tested it now, so it might be an issue with nrfjprog. I will keep you updated with what I find out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106831?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 16:56:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a618efe4-3227-46df-a4e7-4bd18f2e725e</guid><dc:creator>Sal</dc:creator><description>&lt;p&gt;Hi Stian,&lt;/p&gt;
&lt;p&gt;Thank you for your response. Could you please help with my questions below:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Why the chip goes to debug state after enabling the rbp? (I can reliably reproduce)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Are there other possible conditions that would put the chip into debug state? My use case for the NRF52 is beacon 2 or 3 different frames on varying intervals. Also configuring them and save the state on flash. If the chip goes to debug mode I will not have any way of knowing other than premature battery drain in the field.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106830?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 08:49:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77607ff4-4a10-4835-b7ba-f92791a17f13</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, I looked at your schematic and I think the problem is that you need to connect the reset pin on nRF52 (pin 21) to the debugger (pin 10 on J1 in your schematic).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106829?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 20:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0ff9b0e-e3a4-4afb-ae5f-392daa1b67ba</guid><dc:creator>Sal</dc:creator><description>&lt;p&gt;Hi Stian, Bjørn, do you have any updates? Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106828?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2017 23:31:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bcc6b65-d34b-42e4-be95-b0cfd4d7d4bb</guid><dc:creator>Sal</dc:creator><description>&lt;p&gt;Hey Bjørn, sorry for the late response. I will message you the file. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106826?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 06:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33daae16-943d-45b5-875c-7a4704bc5ff8</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hey Sal. The difference between --reset &amp;amp; --pinreset and the definition of the --rbp command can be found &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.tools%2Fdita%2Ftools%2Fnrf5x_command_line_tools%2Fnrf5x_nrfjprogexe_reference.html"&gt;here&lt;/a&gt;. I think it would be easiest if I could take a look at your schematic to understand why the current drain is so high. Hope that helps a bit!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106827?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2017 18:50:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13c06497-9b4f-45bf-bfdd-8eb1661f1aec</guid><dc:creator>Sal</dc:creator><description>&lt;p&gt;Hi Bjørn,
Thanks for your reply. I have run more tests and applying --pinreset even on unlocked device (no --rbp) would not seem to reset the chip, as I do not see any indication of reset on power profiler.&lt;/p&gt;
&lt;p&gt;I am not quite sure what is the difference between --reset and --pinreset commands. But I guess based on this post (&lt;a href="https://devzone.nordicsemi.com/question/51707/rst-pin-for-swd-interface-is-necessary/)"&gt;devzone.nordicsemi.com/.../)&lt;/a&gt; it is required to have an extra wire connecting nRESET (pin 10) on the debugger chip to the RESET (pin 21) on nRF52 chip (although it is not suggested on the question thread).&lt;/p&gt;
&lt;p&gt;Currently I have RESET pin on the nRF52 connected to a push button to wake up the device when in sleep.&lt;/p&gt;
&lt;p&gt;Would you also please help me undrestand what --rbp command does? I see on the power profiler that after applying the command, it goes to &amp;quot;sleep&amp;quot; (i.e.: no advertising) and current drain spikes to around 3.40 mA (much more than typical ~2uA for sleep mode). Only way to recover now is to battery pull.&lt;/p&gt;
&lt;p&gt;The other interesting observation I have is when I recover the chip (or --eraseall) I also see very high current drain. Is this expected? Or does it indicates a possible mistake on my hw design?
Please let me know if you would like to review my schematic to double check.&lt;/p&gt;
&lt;p&gt;Thanks in advanced!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106824?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2017 10:52:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73753448-1900-4c21-aafc-a9d589dcfcbe</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Sal. Have you looked at this DevZone &lt;a href="https://devzone.nordicsemi.com/question/122265/nrfjprog-pinreset-not-working-on-nrf52/"&gt;case&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106825?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2017 20:23:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27c6f451-e691-49d4-bc53-0139f59a1994</guid><dc:creator>Sal</dc:creator><description>&lt;p&gt;Hi Stian,
Could you please help with the questions above. I am not sure why the pinreset command would not work.
Is it possible that my revision of the nrf52 is old and falls under this side effect noted in nrfjprog:
Side effects:
After an --rbp operation is performed, the
available operations are reduced.
For nRF51 devices, and if argument option ALL is
used, --pinreset will not work on certain older
devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106845?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2017 16:46:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:193cab9b-b6f6-4bae-b4ae-860d9a50b0aa</guid><dc:creator>Sal</dc:creator><description>&lt;p&gt;Thanks for your reply. I have already tried pinreset, and debugreset commands also do not seem to fix the issue as the current drain stays high.&lt;/p&gt;
&lt;p&gt;$ nrfjprog -v
nrfjprog version: 9.3.1
JLinkARM.dll version: 6.18a&lt;/p&gt;
&lt;p&gt;The nrfjprog command also seems to succeed but the current drain is still high:
$ nrfjprog -f NRF52 --pinreset
Applying pin reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: read back protection puts tag to high current consumption</title><link>https://devzone.nordicsemi.com/thread/106823?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2017 16:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e490afb-681c-47d3-ac65-3800e3db27bb</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Yes, the chip enters debug mode, and needs to be reset. You can reset by using a pin reset: &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html#unique_1934081418"&gt;infocenter.nordicsemi.com/.../power.html&lt;/a&gt;. The PSELRESET registers need to be set, and the p21 pin must be routed out to the debugger. You can do a pin reset with &lt;code&gt;nrfjprog --pinreset&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>