<?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>nrf52 require reset form debugger to start</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21833/nrf52-require-reset-form-debugger-to-start</link><description>Hi,
I am developing my own program based on serial example. Project is based on gcc compiler under eclipse. I have preapared my own board with rigado module (nrf52832). HW works correctly. But my program works only after programming device. After unplug</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 May 2018 14:49:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21833/nrf52-require-reset-form-debugger-to-start" /><item><title>RE: nrf52 require reset form debugger to start</title><link>https://devzone.nordicsemi.com/thread/131634?ContentTypeID=1</link><pubDate>Thu, 10 May 2018 14:49:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d07b296-94f0-40f4-9758-c4c7b590afa8</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Odd, this doesn&amp;#39;t explains why hard reset works in your previous observation. &amp;nbsp;If DC/DC was the cause, it should not work either ways. &amp;nbsp;Have you re-tried without pin reset connected ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 require reset form debugger to start</title><link>https://devzone.nordicsemi.com/thread/131627?ContentTypeID=1</link><pubDate>Thu, 10 May 2018 13:48:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e42aedd0-bf6a-4264-81b2-17a0d8022481</guid><dc:creator>Allen Foster</dc:creator><description>&lt;p&gt;We eventually found the problem - which relates to the following.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/28472/automatic-control-of-mode-ldo-and-dcdc"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/28472/automatic-control-of-mode-ldo-and-dcdc&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We had a call to sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE); but without the necessary inductors required to make this work on our custom board.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Frustratingly, the custom board started up normally with SDK12 but not with SDK13 if sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE) was called. &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Anyway, the boards are now working. Hopefully this is of help to someone else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 require reset form debugger to start</title><link>https://devzone.nordicsemi.com/thread/131592?ContentTypeID=1</link><pubDate>Wed, 09 May 2018 23:27:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f0c22d6-3c47-49b6-9c7c-12a86be54ef9</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The RBP affect softreset only if it is enabled. &amp;nbsp;If not, it is not. &amp;nbsp;Something I noticed. When softdevice is present. &amp;nbsp;The softreset does not seem to work properly. &amp;nbsp;Probably nrfjprog has the same issue. &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 require reset form debugger to start</title><link>https://devzone.nordicsemi.com/thread/131591?ContentTypeID=1</link><pubDate>Wed, 09 May 2018 23:05:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33c3d4dc-084a-456b-9f48-c20e301213d3</guid><dc:creator>Allen Foster</dc:creator><description>&lt;p&gt;Okay, one interesting thing.&lt;/p&gt;
&lt;p&gt;In my makefile at present, after programming I did nrfjprog -f nrf52 --reset and the device will not start.&lt;/p&gt;
&lt;p&gt;However if I change this to nrfjprog -f nrf52 --pinreset then the device does start.&lt;/p&gt;
&lt;p&gt;It is my understanding the --pinreset is a &amp;#39;hard&amp;#39; reset whereas --reset is a &amp;#39;soft&amp;#39; reset&lt;/p&gt;
&lt;p&gt;I am beginning to think this might be something related to the RBP (Read Back Protection) on the nRF52. Although I cannot see where I explicitly enable RBP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 require reset form debugger to start</title><link>https://devzone.nordicsemi.com/thread/131413?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 20:32:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fab16f46-4564-4c37-b3e9-0c90d05f435e</guid><dc:creator>Allen Foster</dc:creator><description>&lt;p&gt;It is just pulled high at the moment but yes, that is a good idea and I can break it out to the SWD connector. Thanks for responding!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 require reset form debugger to start</title><link>https://devzone.nordicsemi.com/thread/131412?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 20:30:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b9bf03e-d9b9-4c7f-95fb-4ad82458306e</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Is that pin configured as reset pin ? If it does, try to connect that to the swd connector to see if that helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 require reset form debugger to start</title><link>https://devzone.nordicsemi.com/thread/131410?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 20:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1feced51-22d6-4b41-8949-98a36cecd081</guid><dc:creator>Allen Foster</dc:creator><description>&lt;p&gt;We currently have p21 pulled high with a 10k resistor,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 require reset form debugger to start</title><link>https://devzone.nordicsemi.com/thread/131407?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 19:50:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2af18b6d-83bb-4ca6-9af4-ace2bec18519</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Probably the reset&amp;nbsp;command sequence of the nrfjprog that is different. &amp;nbsp;I guess you don&amp;#39;t have the reset pin (p0.21) connected. &amp;nbsp;It would help to have a hardware reset pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 require reset form debugger to start</title><link>https://devzone.nordicsemi.com/thread/131364?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 12:55:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ede4fa86-cf9f-4b42-ad73-29426c73c262</guid><dc:creator>Allen Foster</dc:creator><description>&lt;p&gt;Hi Nguyen,&lt;/p&gt;
&lt;p&gt;There is no reference to rdimon or any type of semi-hosting debug. We are building using gcc.&lt;/p&gt;
&lt;p&gt;This code works fine on the nRF52-DK but on our chip down solution it has problems. Once programmed, we follow the usual Nordic makefile convention of doing &amp;quot;nrfjprog -f nrf52 --reset&amp;quot; to restart the SoC with the updated application. Oddly this does not cause a restart and to begin execution I need to use JLinkExe to connect and the use &amp;#39;r&amp;#39; at which point the SoC restarts and execution of the application begins. I cannot understand this issue as I thought nrfjprog was essentially a wrapper around JLinkExe?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 require reset form debugger to start</title><link>https://devzone.nordicsemi.com/thread/130389?ContentTypeID=1</link><pubDate>Tue, 01 May 2018 16:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8911ed4f-f58f-4e15-8d7c-624a6498743f</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Look for rdimon in the linker settings. &amp;nbsp;Remove all of them. &amp;nbsp;rdimon requires the jtag to be connected to start.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 require reset form debugger to start</title><link>https://devzone.nordicsemi.com/thread/130376?ContentTypeID=1</link><pubDate>Tue, 01 May 2018 13:09:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eac20159-545f-4a0a-b960-6ab75092b47d</guid><dc:creator>Ryan Farrelly</dc:creator><description>&lt;p&gt;Hi Hung,&amp;nbsp;did you managed to find a solution to this issue, we are having very similar problems -&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33925/nrf52-sdk13-reset-issue"&gt;devzone.nordicsemi.com/.../nrf52-sdk13-reset-issue&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 require reset form debugger to start</title><link>https://devzone.nordicsemi.com/thread/85748?ContentTypeID=1</link><pubDate>Wed, 10 May 2017 08:41:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29568667-8adf-4936-9f38-9d7ac9429076</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;It&amp;#39;s hard to tell what could be wrong here. Please try to follow the debug guide and use UART log if you need to test without the debugger connected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 require reset form debugger to start</title><link>https://devzone.nordicsemi.com/thread/85747?ContentTypeID=1</link><pubDate>Tue, 09 May 2017 16:55:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36641a4d-a2e6-439c-957f-fa04a640246e</guid><dc:creator>patlas</dc:creator><description>&lt;p&gt;I have tested it on peripheral/serial example application (SDK13) so there is no need to use BLE example. That one works correctly but after moving it into separate directory (get together all necessay files) and change a little bit makefile (which builds correctly whole project) such problem occure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 require reset form debugger to start</title><link>https://devzone.nordicsemi.com/thread/85746?ContentTypeID=1</link><pubDate>Mon, 08 May 2017 08:56:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89e98f83-8ca5-4a34-bea4-571504f48af8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Patlas,&lt;/p&gt;
&lt;p&gt;I would suggest to print out debug log to UART to see where the device stuck. You can follow &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt;this guide&lt;/a&gt; to add a printout or LED toggle in app error handler.&lt;/p&gt;
&lt;p&gt;Which example did you test with ? Have you tried BLE example(s) in the SDK ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>