<?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>51822 does not work outside of debugger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4994/51822-does-not-work-outside-of-debugger</link><description>I have been able to successfully load and run a colleague&amp;#39;s firmware (worked perfectly) and make my own modifications (worked perfectly) but after recently leaving it powered down for a couple of hours and then returning to it, the nrf51822 will run correctly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Jun 2017 23:17:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4994/51822-does-not-work-outside-of-debugger" /><item><title>RE: 51822 does not work outside of debugger</title><link>https://devzone.nordicsemi.com/thread/17616?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2017 23:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fef45370-3a18-4f1b-8361-4cdc992b68aa</guid><dc:creator>Peter</dc:creator><description>&lt;p&gt;Hopefully this isn&amp;#39;t still relevant, but switching to S130 from S110 solved this for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 51822 does not work outside of debugger</title><link>https://devzone.nordicsemi.com/thread/17615?ContentTypeID=1</link><pubDate>Wed, 07 Jan 2015 06:51:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2749f9e5-e7fe-4e65-9753-c492db3b519a</guid><dc:creator>Fennec</dc:creator><description>&lt;p&gt;After getting 3 new boards from work today the problem does not occur on the new boards, so it must be specific to just one.&lt;/p&gt;
&lt;p&gt;I have no idea what would be causing the nrf51822 to (presumably) lock up after a pin (hard) reset or power cycle. Ordinary resets worked fine. None of the hardware seems damaged but I might probe around later to check everything around the reset line, just for completion of this issue (it really gets me when something fails and I never end up knowing why).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 51822 does not work outside of debugger</title><link>https://devzone.nordicsemi.com/thread/17614?ContentTypeID=1</link><pubDate>Tue, 06 Jan 2015 16:18:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15e01048-dda5-4202-b38f-0e812eda3fd5</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;May be hardware issue.  Check the SWCLK see if you have a pulldown on it 100K is fine.  Check how is the SWDIO/nRESET is connected any pullup or pulldown on it remove it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 51822 does not work outside of debugger</title><link>https://devzone.nordicsemi.com/thread/17613?ContentTypeID=1</link><pubDate>Tue, 06 Jan 2015 04:46:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2034410-5663-444d-90e4-b65ffd8b3ec0</guid><dc:creator>Fennec</dc:creator><description>&lt;p&gt;The bootloader address in the UICR @ 0x10001014 UICR.BOOTLOADER is set to 0x3C000 which is the address that I have for the start of ROM for the Keil project for the bootloader, but when I can I will try it completely without the bootloader and report back.&lt;/p&gt;
&lt;p&gt;Just tried it without the bootloader and it still completely fails after a hard/power reset. I don&amp;#39;t believe I am ever entering DFU mode on the bootloader, I wish I could use the debugger to see what is going on, but it works perfectly when the debugger is attached!&lt;/p&gt;
&lt;p&gt;Thanks for your help. :)&lt;/p&gt;
&lt;p&gt;Another addition: it seems to come right down to a pin reset/power cycle where it absolutely fails, otherwise the chip works perfect. I might take a video to demonstrate the behavior, if I get some of the other units tomorrow and they perform the same...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 51822 does not work outside of debugger</title><link>https://devzone.nordicsemi.com/thread/17612?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2015 18:31:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e099bb31-e4a2-44a6-aae4-d49678a9e3b5</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The bootloader is the DFU.  I don&amp;#39;t think nrfjprog would set the UICR properly for the bootloader.  Try without the bootloader first, just the softdevice and you firmware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 51822 does not work outside of debugger</title><link>https://devzone.nordicsemi.com/thread/17611?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2015 14:52:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3292112-1a87-43de-b38e-834b868c92fe</guid><dc:creator>Fennec</dc:creator><description>&lt;p&gt;This is what happens when using nrfjprog to reset after flash:
C:\Users\User&amp;gt;nrfjprog --reset
Applying system reset.
(Device resets and application still works)
C:\Users\User&amp;gt;nrfjprog --reset
Applying system reset.
(Device resets and application still works)
C:\Users\User&amp;gt;nrfjprog --pinreset
Applying pin reset.
ERROR: JLinkArm.dll returned an error condition. Try again. If the condition per
sists, please report the error to Nordic Semiconductor support with the text &amp;quot;pi
n_reset_ignore_pall: return code 8&amp;quot;.
(Device resets because I can hear a beep but then application stops running because the beep stops, it requires a power cycle before it will talk to the J-Link again and even then the application still does not run, subsequent commands time out and J-Link lite blinks red led)
C:\Users\User&amp;gt;nrfjprog --reset
ERROR: Cannot connect to the nRF51 device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 51822 does not work outside of debugger</title><link>https://devzone.nordicsemi.com/thread/17610?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2015 14:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19983a47-b3f6-42be-a789-7009b52dc83e</guid><dc:creator>Fennec</dc:creator><description>&lt;p&gt;I am not using DFU mode in the bootloader yet, I&amp;#39;m using nrfjprog to flash softdevice application and bootloader all at once, or using Keil to flash before debug using nrfjprog, too.&lt;/p&gt;
&lt;p&gt;I have tried a simple &amp;quot;led blink&amp;quot; application. It behaves in the same way, works right after a flash, still works after a nrfjprog --reset but completely fails (and never works again unless I reflash the chip) if I power cycle or if I nrfjprog --pinreset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 51822 does not work outside of debugger</title><link>https://devzone.nordicsemi.com/thread/17609?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2015 13:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7ec0017-bf16-46a2-b4da-8ed10023cd31</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Can you try without the DFU.  I suspect the DFU did not see your firmware as valid so it stays in DFU mode. You can scan with to see if it showes up as DfuTag after power cycle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 51822 does not work outside of debugger</title><link>https://devzone.nordicsemi.com/thread/17607?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2015 08:21:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c039843-6ab7-4754-b1a7-9ecd0ec189b5</guid><dc:creator>Fennec</dc:creator><description>&lt;p&gt;Still can&amp;#39;t think of any solution, I&amp;#39;ve double checked as much as I can, the Keil memory maps etc check out. The only aberration I could see was that my UICRBOOTLOADER points to 0xC000 0x0003, which I believe is correct, but my UICRCLENR0 is 0xFFFFFFFF....which I don&amp;#39;t think is correct..?&lt;/p&gt;
&lt;p&gt;And by this I mean, I have no clue as to what&amp;#39;s going on. On Wednesday I will be returning to work and I will be testing with another couple of chips to see if it is a hardware or a software problem...quite frustrating since it was working absolutely perfectly until it got left alone and then this problem cropped up...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 51822 does not work outside of debugger</title><link>https://devzone.nordicsemi.com/thread/17608?ContentTypeID=1</link><pubDate>Mon, 05 Jan 2015 03:52:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a6459f2-af48-4750-b9a8-ba4cb2fb46de</guid><dc:creator>Fennec</dc:creator><description>&lt;p&gt;Have been trying to get it to work. Once programmed (via nrfjprog or Keil flash/debug), resetting the device resulting in it booting and running the application normally, but a power cycle always results the device failing to boot (can&amp;#39;t hear bootloader beep the peizo) and the device just draws a constant .5ma, as I&amp;#39;ve mentioned.&lt;/p&gt;
&lt;p&gt;Is this the sign of a busted chip? It&amp;#39;s so weird that it works immediately after programming and on resets after that until a power cycle...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>