<?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>Can not program device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10956/can-not-program-device</link><description>Hi, 
 I have 2 pins that connected to transistors that turn on high-side FETs. One turns on 3.3v for the rest of the system and another one 4v. 
 When I turn on 3.3v everything is fine, but when I turn on 4v I can not reprogram device anymore in Keil</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Dec 2015 09:41:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10956/can-not-program-device" /><item><title>RE: Can not program device</title><link>https://devzone.nordicsemi.com/thread/40987?ContentTypeID=1</link><pubDate>Tue, 29 Dec 2015 09:41:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b9bed44-2789-4192-a0fc-1060123c98b5</guid><dc:creator>Sergy</dc:creator><description>&lt;p&gt;Err ok, then no, they are relatively long, but maximum 3cm, not longer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not program device</title><link>https://devzone.nordicsemi.com/thread/40986?ContentTypeID=1</link><pubDate>Tue, 29 Dec 2015 09:29:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86418531-0f1e-4b4d-9604-3a62345e953f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sergey,&lt;/p&gt;
&lt;p&gt;I suspect the long pin traces could cause an issue, if it&amp;#39;s longer than 15cm I would suggest you to add external pull up (SWDIO) and pull down (SWDCLK) resistors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not program device</title><link>https://devzone.nordicsemi.com/thread/40985?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2015 08:38:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d72f950d-f447-4976-9862-29441f555b31</guid><dc:creator>Sergy</dc:creator><description>&lt;p&gt;There is no reset happening during the normal operation, but may be in debug there are some special conditions that trigger it?&lt;/p&gt;
&lt;p&gt;Ive submitted schematics and layout via support page. SWD pin traces are pretty long indeed. We are working on adding bigger capacitor, but that was to pass a CE requirement, it might help overal system stability as well, Ill keep you posted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not program device</title><link>https://devzone.nordicsemi.com/thread/40983?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2015 13:12:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66123d8c-ac86-4450-8b0e-cf737e2fd3b3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Sorry, I am not very familiar with the GSM module, quite surprised that it can get to 2A.
I was suspecting that the high peak current can cause voltage drop and then cause the nRF51 to reset.&lt;/p&gt;
&lt;p&gt;I assume that you have set the optimization level to 0. Do you have very long track for SWD pins ?&lt;/p&gt;
&lt;p&gt;Your issue sounds pretty similar to this &lt;a href="https://devzone.nordicsemi.com/question/57344/nrf51-target-behaving-differently-from-dk/"&gt;one&lt;/a&gt;.  Could you try to isolate the nRF51 from the rest of the board ?&lt;/p&gt;
&lt;p&gt;You can send us your schematic and layout to our support portal (MyPage) for further investigation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not program device</title><link>https://devzone.nordicsemi.com/thread/40978?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2015 09:23:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ee3cc03-1e2f-4de9-9fe2-6101f2307b2e</guid><dc:creator>Sergy</dc:creator><description>&lt;p&gt;No, its normal for GSM module to have peak current 1.6-2A, they are very short spikes, but that does happen. Not sure why you are surprised?
There is no optimization turned on.
When I start the debug It stops on main but once I press StepOver first function which is nothing else than setting pin to output and setting it on I get a warning that Processor cant be halted and the whole bunch of register read errors. Please see the screenshot in attachment: &lt;a href="http://nl.tinypic.com/r/2hqw9d0/9"&gt;Screenshot&lt;/a&gt; So it doesnt even go into GSM part it starts behaving weirdly on the first command.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not program device</title><link>https://devzone.nordicsemi.com/thread/40977?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2015 08:33:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:345cf643-c062-4008-9c76-41ec5cfad26b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Sergey: Are you sure ? 1.6A is a little bit too high.
When you mentioned you can&amp;#39;t do step-by-step debugging, what exactly happened ? Have you made sure you don&amp;#39;t use any code optimization (in C/C++ tab in setting). With optimization you won&amp;#39;t be able to debug. If you only try to debug very simple code (without GSM for example), would it work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not program device</title><link>https://devzone.nordicsemi.com/thread/40980?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2015 22:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5dfbb98-bc7f-4a02-9f81-2117d58cd609</guid><dc:creator>Sergy</dc:creator><description>&lt;p&gt;Hello Hung, it has SD programmed on it, but it doesnt use it and yes GSM has about 1.6A peak current.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not program device</title><link>https://devzone.nordicsemi.com/thread/40979?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2015 16:40:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e56cb322-47ea-4186-9562-81761eb9f359</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sergey,
Does the application use the softdevice ? Would the GSM have a high peak current ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not program device</title><link>https://devzone.nordicsemi.com/thread/40982?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2015 14:56:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:869f45cf-d73e-4fbd-856e-895b5b82e840</guid><dc:creator>Sergy</dc:creator><description>&lt;p&gt;Hello, the pin controls the switch which is transistor+mosfet. There is no voltage/current coming into this pin, its only output. So when pin is high it turns on transistor which in turn turns on FET that provides 4v to GSM module. My main problem to be honest is that I cant do any step-by-step debugging in Keil, but in the running mode it works fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not program device</title><link>https://devzone.nordicsemi.com/thread/40981?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2015 12:51:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a43820f-695a-458b-9a34-4e6e3f52357a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sergey,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not clear for me if the 4V is connected directly to the chip (via GPIO pin or via VDD pins) or not. Note that the maximum voltage a pin can take is VDD+0.3.  And maximum input for VDD is 3.6V.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not program device</title><link>https://devzone.nordicsemi.com/thread/40984?ContentTypeID=1</link><pubDate>Sun, 20 Dec 2015 05:36:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e99071d-c6d4-4565-81d0-c5be9d4be919</guid><dc:creator>Sergy</dc:creator><description>&lt;p&gt;I also noticed that If I dont connect UART interface on pins 26 and 45 I can reprogram chip just fine even when I have 4v enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>