<?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>nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28860/nrf52832-not-working-outside-debugger</link><description>Hi 
 I have a wired situation in my project. Everything is working fine when I am running my heart-rate device with the debugger. When I detach the debugger or just power-cycle the device behaviour becomes wired. The device still advertise, so I can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Oct 2019 01:27:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28860/nrf52832-not-working-outside-debugger" /><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/215811?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2019 01:27:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e014db23-b7a4-47a9-80d3-9b476668ce76</guid><dc:creator>sch</dc:creator><description>&lt;p&gt;I have the same problem as you. What is the cause of this problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/154355?ContentTypeID=1</link><pubDate>Wed, 24 Oct 2018 20:14:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6af0126-aff5-4b25-ae63-1b0453d55c00</guid><dc:creator>ljaynes</dc:creator><description>&lt;p&gt;I am currently having this issue. None of the suggestions in the comments have helped. Has anyone correctly identified the issue yet?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/126345?ContentTypeID=1</link><pubDate>Wed, 28 Mar 2018 15:50:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e434c83e-03a5-4e9e-9dc8-83dfd8b32156</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Longshot, but perhaps worth checking if you are still having issues:&lt;/p&gt;
&lt;p&gt;1. Measure the impedance between the Gnd connection on the J-Link and the battery; perhaps it isn&amp;#39;t quite what is expected.&lt;/p&gt;
&lt;p&gt;2. If there are other devices attached (host MCU or external serial port to PC etc) care is required to ensure no port pins are driving into the nRF52832 SoC during a power-down period. In a simple system with a host MCU typically a UART Rx, Tx and the &lt;span&gt;nRF52832 SoC&lt;/span&gt; RST pins will be connected between host MCU and &lt;span&gt;nRF52832 SoC&lt;/span&gt;. In that simple case either Rx or Reset pins will phantom power the entire &lt;span&gt;nRF52832 SoC&lt;/span&gt; if they are left driven high while &lt;span&gt;nRF52832 SoC&lt;/span&gt;&amp;nbsp;power is removed. This is perhaps not unexpected if we assume dual internal schottky diode protection (a clamp diode to both GND and VCC) instead of single internal schottky diode (to GND with low breakdown voltage). This means that to power-down the &lt;span&gt;nRF52832 SoC&lt;/span&gt; the MCU code must first drive both UART RX and BLE RST pins low, otherwise the supply of (say) 3 volts only drops to 2 volts or so when the supply is switched off and the &lt;span&gt;nRF52832 SoC&lt;/span&gt; therefore does not reset.&lt;br /&gt;In a similar manner, connecting a typical FTDI USB serial port to the &lt;span&gt;nRF52832 SoC&lt;/span&gt; can unexpectedly phantom power the part, and stop it correctly resetting or powering down unless the FTDI is first removed. This can cause confusing and unexpected behavior. There is an excellent Dialog publication Training_07_DA1458x_prototype_bring_up_guide _Training_07_DA1458x_prototype_bring_up_guide -v1. 2I 2I_ which actually touches on this without mentioning why:&lt;br /&gt;I&lt;em&gt;t is recommended that P0_4 and P0_5 are made available for UART communication during production test and board bring-up. Note that, if the two pins are also used as interface to an external MCU, that this MCU will need to be able to high-Z the pin connected to P0_5&lt;/em&gt;&lt;br /&gt;The reason is that resetting the test board doesn&amp;#39;t work correctly unless drive to the Rx pin is first removed, including drive from any connected FTDI USB serial port or driving low or floating any connected host MCU.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/126336?ContentTypeID=1</link><pubDate>Wed, 28 Mar 2018 14:42:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e77797fc-240b-457b-bf81-ffc9c1ba9bff</guid><dc:creator>xiaoding</dc:creator><description>&lt;p&gt;I have the same trouble before. After comment out the NRF_POWER-&amp;gt;DCDCEN = 1; Everything goes right.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/124836?ContentTypeID=1</link><pubDate>Fri, 16 Mar 2018 22:38:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e662fd0-b7aa-4898-87d0-56e009d783b9</guid><dc:creator>jublin</dc:creator><description>&lt;p&gt;I know this is old, but what are your compile flags like? I had a situation where -O0 -g3 would do this. going down to g2/g1 helped.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/114256?ContentTypeID=1</link><pubDate>Mon, 01 Jan 2018 19:17:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e934687f-f499-43e9-b116-41e964cdf5e6</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Reset is the normal initialization procedure for the debugger to access the debug port.  Once the debugger starts the firmware it can disconnect without halting the MCU hence it continues to work after disconnect but won&amp;#39;t after a power cycle as you observed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/114253?ContentTypeID=1</link><pubDate>Sun, 31 Dec 2017 08:33:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea40e876-78c5-465b-bea4-d5d2a65dc60b</guid><dc:creator>Arne Laugst&amp;#248;l</dc:creator><description>&lt;p&gt;Tanks for tips, I will try it out when I am back in office.
In the mean time I would like to share another observation that I did:
When I connected to the debugger via j-link command window, made a reset and then a g (go) command - Everything works perfect.
Just power-cycling without the debugger, then the device will not advertise anymore.&lt;/p&gt;
&lt;p&gt;Also, if I connect to the debugger using RTT-viewer, then everything is perfect. (The RTT-viewer seems to reset the device when I connect)
If I then disconnect from debugger by a disconnect in RTT-Viewer - suddenly everything continue to work fine.
So, it seems that a reset from the debugger makes a difference compared to a power-up reset.
Does that make sense?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/114255?ContentTypeID=1</link><pubDate>Sun, 31 Dec 2017 00:20:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01d80a91-cb13-4123-a26d-075d63d5bb52</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Well removing all the RTT calls wasn’t likely to actually help as RTT itself isn’t the problem, as explained, by me and by Segger. So what else could it be, one possibility is that when you connect the debugger that also connects up the UART, did you leave the UART enable code in? That actually can block trying to do UART writes.&lt;/p&gt;
&lt;p&gt;Another option is to get it blocked, THEN attach the debugger which you can do to a running board and breakpoint and find out where you are. Segger’s ozone (free) debugger is kind of handy for that, it’s very bare bones, or just use the command line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/114254?ContentTypeID=1</link><pubDate>Sat, 30 Dec 2017 11:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:374ab36e-5c25-4b6f-b8a9-cc10b2e814a1</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Try to look for rtt in sdk_config.h. There is a define that enabled it in there some where and disable it there.  If it is enabled in there, most likely be used throughout the sdk not just in your code.  Do a clean compile after you disable it in the sdk_config.h.  That is what I did and it worked for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/114252?ContentTypeID=1</link><pubDate>Sat, 30 Dec 2017 10:28:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5b23072-18be-4a5e-bb6c-8c3975d8af5f</guid><dc:creator>Arne Laugst&amp;#248;l</dc:creator><description>&lt;p&gt;Hi you&lt;/p&gt;
&lt;p&gt;Thanks for trying to help me out!&lt;/p&gt;
&lt;p&gt;I commented out all the code in SEGGER_RTT_printf and SEGGER_RTT_WriteString. That&amp;#39;s the only call I am doing to RTT. That gave the same results as earlier. Everything works fine when J-link is connected. When I disconnect j-link or power-cycling, then I am not able to connect anymore, even if my device is advertising.&lt;/p&gt;
&lt;p&gt;Regards Arne&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/114263?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2017 22:26:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5c28f52-ab6f-4fa8-9828-a3a82e637aee</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Well I am not jlink expert like you.  I just know that when I run code with RTT enabled and the Jlink connected it worked fine.  Removing the jlink, doesn&amp;#39;t work.  Disabling the RTT works in all cases and that is what I am sharing here.  So by my experiences jlink needs to be connected to for rtt to work.  It could be a different issue I don&amp;#39;t know.  btw you still haven&amp;#39;t provided any alternative solution to problem at hand. So what do we need to do to make it work ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/114262?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2017 22:14:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc5bb707-7433-436d-a7c6-db7b04e85d85</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;but that&amp;#39;s my point - you didn&amp;#39;t just say you&amp;#39;ve found cases you were unable to explain where turning off RTT fixed a bug you couldn&amp;#39;t understand. You made the statement that RTT requires JLink to be connected all the time which is just straight up false and not as designed by Segger. The problem with posts like this is someone then does turn off RTT, it randomly fixes the actual bug they do have which is something different and then the incorrect &amp;quot;fact&amp;quot; that &amp;#39;RTT causes your program to hang if JLink isn&amp;#39;t connected&amp;#39; becomes something people find when they search for answers and think it&amp;#39;s true. Then people randomly remove RTT, make life hard and never find their actual issues.&lt;/p&gt;
&lt;p&gt;If you want to post opinion, go ahead, but at least say &amp;#39;in my experience&amp;#39; or &amp;#39;you are supposed to be able to leave RTT code on all the time but I&amp;#39;ve had some problems with that I never got to the bottom of&amp;#39;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/114261?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2017 22:03:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e17a69db-fd4c-4120-8c02-8f7246ca4fe0</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Well, sorry disappoint you but that was a fact for me as I experienced it myself a few times and the same answer also worked for a few people that I know as I said.  I just shared what I have experienced in the hope that it could help others with a similar issue.  Sorry if that doesn&amp;#39;t work for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/114260?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2017 21:53:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99da013a-f17b-4b3e-9c17-e59e5ebc21f8</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;not I who says so - it&amp;#39;s Segger who says so and they wrote RTT. They explicitly made it so it&amp;#39;s low overhead and you&amp;#39;re able to leave it in your code whether connected or not for exactly this reason.  No I don&amp;#39;t know what the original poster&amp;#39;s issue is and they are going to have to look into it some more, however just making statements like &amp;quot;RTT requires the JLink to be connected all the time&amp;quot; which is factually incorrect doesn&amp;#39;t really help does it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/114259?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2017 21:45:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63e86790-123d-4e7a-979a-27cba4a16fd0</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Ok, if you said so.  So it seems not solving this problem for everyone then.  But at least it solved the issue for a few people that I know.  Can you provide a better solution for the problem then? It does not seems to work for OP by just leaving the RTT enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/114258?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2017 21:37:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a96305c-83e6-4c8c-ae85-c0d4f6039d1d</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;That is 100% incorrect. RTT writes to a circular buffer and if nothing reads it, it just overwrites. RTT is designed &lt;em&gt;and documented&lt;/em&gt; to be left enabled even if you don&amp;#39;t have a debugger connected with that exact purpose, ensuring that you don&amp;#39;t need to change code depending on whether you are debugging or not.&lt;/p&gt;
&lt;p&gt;Quote from the Segger RTT site&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;A:	SEGGER-RTT uses non-blocking mode per default, which means it does not halt program execution if no debugger is present and J-Link is not even connected. The application program will continue to work.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So whatever the original poster&amp;#39;s issue is, it&amp;#39;s not that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 not working outside debugger.</title><link>https://devzone.nordicsemi.com/thread/114257?ContentTypeID=1</link><pubDate>Fri, 29 Dec 2017 15:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c6caa91-217a-46ed-a4a2-688814c09ac3</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;RTT require the JLink be connected all the time.  You need to disable RTT for stand-alone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>