<?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>nrf51 smart beacon kit jtag programming</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9139/nrf51-smart-beacon-kit-jtag-programming</link><description>Hi, 
 I have just received my smart beacon kit (nRF51822 based), I have wired up my JLink programmer according to devzone.nordicsemi.com/.../ 
 However I am having trouble detecting the beacon kit on nRFgo Studio. nRFgo studio keeps saying that no device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Sep 2015 12:55:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9139/nrf51-smart-beacon-kit-jtag-programming" /><item><title>RE: nrf51 smart beacon kit jtag programming</title><link>https://devzone.nordicsemi.com/thread/33687?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2015 12:55:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fa45c3f-188e-4d5f-a67f-bee575d9447a</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I&amp;#39;ve never experienced anything like that, so I&amp;#39;m not really sure what is going on. The reset pin is not really needed since the device is reset through the SWDIO pin. Actually on the nRF51 chip nRESET and SWDIO is the same pin, so in order to reset, the J-Link goes out of debug mode and then pulls the SWDIO pin low. Are you sure you bought a genuine Segger? It is a lot of copies out there.&lt;/p&gt;
&lt;p&gt;You can try to download the latest drivers for your J-Link, &lt;a href="https://www.segger.com/jlink-software.html"&gt;www.segger.com/jlink-software.html&lt;/a&gt;, and then flash it with the newest firmware (Using J-Link Configurator).&lt;/p&gt;
&lt;p&gt;You also mentioned that you had a pull up on the SWDIO, you can try to remove this as it is not really needed. There is an internal pull up on the chip.&lt;/p&gt;
&lt;p&gt;Other than that, the only thing I can think of is HW issues. If it turns out it is the HW on the beacon, you can open up a case in the support portal and get a replacement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 smart beacon kit jtag programming</title><link>https://devzone.nordicsemi.com/thread/33686?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2015 10:37:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a01bece7-3d9d-4f95-8cce-59f35a2f4e2c</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;so now, I can reprogram the device no problem, just the steps seem rather odd. I suspect maybe it is something to do with with reset pins? referring to &lt;a href="http://www.tag-connect.com/Materials/ARM20-CTX.pdf"&gt;this datasheet&lt;/a&gt; for the TC2030 connector, it seems pin 3 could be used as nRESET, which is missing from my wiring&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 smart beacon kit jtag programming</title><link>https://devzone.nordicsemi.com/thread/33685?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2015 10:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c32a609-cf65-455d-9eeb-cc26a4635468</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;I have did some further testing and managed to program it, but in an rather odd way.&lt;/p&gt;
&lt;p&gt;To erase in nrfgo studio,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;connect jtag to device while battery is out&lt;/li&gt;
&lt;li&gt;put in battery and click refresh (now nrfstudio would show the device)&lt;/li&gt;
&lt;li&gt;take battery battery and put it back again&lt;/li&gt;
&lt;li&gt;click erase and wait for nrfgo studio&lt;/li&gt;
&lt;li&gt;the device is now erase
so basically whenever I need to do some operation in nrfgo studio, I have to take the battery out between each click, so if I wanted to program the softdevice, I would do that in step 4&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;now to program in keil, using the jtag interface, (not through nrfjprog), this gets even more interesting&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;connect jtag to device while battery is out&lt;/li&gt;
&lt;li&gt;put in battery and click program&lt;/li&gt;
&lt;li&gt;wait for program to finish and it is done
for any subsequent programming, I don&amp;#39;t need to take the battery out anymore, until if I hit the refresh button in nrfgo studio&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 smart beacon kit jtag programming</title><link>https://devzone.nordicsemi.com/thread/33684?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2015 08:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ec93fe1-219f-4171-9629-88d69efcc208</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;In the nRF Tools package there is a program called nrfutil.exe. (Should be placed in &amp;quot;C:\Program Files (x86)\Nordic Semiconductor\nrf51\bin&amp;quot;) You can try to open that in cmd and write &amp;#39;nrfjprog --recover&amp;#39;. Also try the &amp;#39;nrfjprog --erase&amp;#39;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 smart beacon kit jtag programming</title><link>https://devzone.nordicsemi.com/thread/33683?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2015 00:18:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a633c69d-2b63-4799-90ce-199518910138</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;m using pin 1,2,4,5. As for the connection, I just soldered wires directly to the pad, and directly into the 20in connector on JTAG programmer.  Pull up for SWDIO, no pull for SWCLK.&lt;/p&gt;
&lt;p&gt;I cannot erase the chip unfortunately, after it is detected the first time, any button I press: refresh, erase, read etc... Will result in device not found.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 smart beacon kit jtag programming</title><link>https://devzone.nordicsemi.com/thread/33682?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2015 14:43:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acad3d07-8afc-4572-8a6f-b59c31b61e90</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure why it behaves like that, it is a bit strange. I assume that you have doubled checked the connection between the beacon and the debugger. Only SWDIO, SWCLK and VTref should be connected (pin 1, 2 and 4) (And GND of course). Are you using an adapter from the J-Link, to get the 10 pin mini header, or are you connecting the 3 wires directly on to the 20 pin header on the J-Link?&lt;/p&gt;
&lt;p&gt;Are you able to erase the chip from nRFgo Studio when it connects the first time? Maybe the chip goes in to power off mode when the code starts to run.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 smart beacon kit jtag programming</title><link>https://devzone.nordicsemi.com/thread/33681?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2015 12:21:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b725c0f-36d4-4c71-b72d-f0d340852606</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;it&amp;#39;s a segger j-link education version. I have measured the voltage and it is 2.9V at the moment with the current battery, would that be a problem? (also I noticed that most of the button cell batteries I have are 3V, so how do I achieve 3.3V or more?)&lt;/p&gt;
&lt;p&gt;but if the problem is with the battery, why does it work the first time if I plug in the JTAG first before the putting in the battery?&lt;/p&gt;
&lt;p&gt;update: I have just tried to power it from the 3V3 of an arduino, exactly the same behaviour, it is only detected once if I plug in JTAG before powering it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 smart beacon kit jtag programming</title><link>https://devzone.nordicsemi.com/thread/33680?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2015 11:44:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c9cced9-a808-46fd-8ba4-c7e07b2bc36b</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Which J-Link programmer do you have? Maybe your battery has too low voltage. The J-Link Lite requires 3.3V to be able to flash. Try to connect a power supply to it instead (Or a fresh battery)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>