<?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>How to program an nRF51822 using SWDIO/CLK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4503/how-to-program-an-nrf51822-using-swdio-clk</link><description>Hej, 
 that might sound like a dumb question, but what is the minimal setup to program an nRF51822 SoC using the SWDIO/CLK ports? 
 
 What external hardware is required? 
 What software is required to built and flash a new firmware?
 
 What about</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Apr 2015 04:22:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4503/how-to-program-an-nrf51822-using-swdio-clk" /><item><title>RE: How to program an nRF51822 using SWDIO/CLK?</title><link>https://devzone.nordicsemi.com/thread/15979?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2015 04:22:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d53b2898-d9e5-41d0-9fa1-591e6fcdfe56</guid><dc:creator>TheGodPartycle</dc:creator><description>&lt;p&gt;this is a great question. i am looking for an answer for this too. i have not found any resources that explains how to use the nRF51dk to program a custom board.... any help is appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to program an nRF51822 using SWDIO/CLK?</title><link>https://devzone.nordicsemi.com/thread/15978?ContentTypeID=1</link><pubDate>Thu, 22 Jan 2015 07:13:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9bc17de-e0b6-4c6f-af64-dadbeca52d7c</guid><dc:creator>hiren</dc:creator><description>&lt;p&gt;Hello Asbjorn ...i have nRF51-DK(PCA10028) and i want to program my own board which is based on NRF51822 .. i connect debug out header P19 to my board . can you please tell me what is the requirement that i full fill . and is any change that i want to make.? and if i load code in NnRF board than it automatically load in my board or not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to program an nRF51822 using SWDIO/CLK?</title><link>https://devzone.nordicsemi.com/thread/15977?ContentTypeID=1</link><pubDate>Wed, 19 Nov 2014 12:01:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fbab701-3e93-4a08-ad23-d84cb50918bf</guid><dc:creator>Asbj&amp;#248;rn</dc:creator><description>&lt;p&gt;There&amp;#39;s an onboard programmer on the nRF51 Dongle as well. So you don&amp;#39;t need an additional one. If you do however we use the tools from Segger J-link. The nRF51-DK (PCA10028) is capable of programming external boards as well. So if you want to have one board to develop on to be able to program your own custom boards in the future, that would be the one to recommend.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to program an nRF51822 using SWDIO/CLK?</title><link>https://devzone.nordicsemi.com/thread/15984?ContentTypeID=1</link><pubDate>Wed, 19 Nov 2014 11:04:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8d07d54-3187-4e51-b7f5-f0e929bd1a77</guid><dc:creator>Oliver</dc:creator><description>&lt;p&gt;I mean for the nRF51822. Something like the minimal layout presented in the datasheet put on a tiny breakout board. For the programmer, and also for the chip, I would prefer an assembled and working unit. Hassle free, but minimal. Seems like I&amp;#39;m failing in getting my point across :/&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to program an nRF51822 using SWDIO/CLK?</title><link>https://devzone.nordicsemi.com/thread/15983?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2014 20:05:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e3c5ce8-22bb-41db-9823-173757407e36</guid><dc:creator>Charles Manning</dc:creator><description>&lt;p&gt;For minimal-in-terms-of hardware, it is hard to beat that FTDI solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to program an nRF51822 using SWDIO/CLK?</title><link>https://devzone.nordicsemi.com/thread/15982?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2014 20:03:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a5f2107-1bbb-4b31-998b-65501ac80356</guid><dc:creator>Charles Manning</dc:creator><description>&lt;p&gt;A further note on SWD code... I wrote my own because I had some special requirements, but there is a library called libswd (Google will find) which might do this for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to program an nRF51822 using SWDIO/CLK?</title><link>https://devzone.nordicsemi.com/thread/15981?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2014 20:03:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b20723e-e161-453f-a41d-16f49dfa2294</guid><dc:creator>Oliver</dc:creator><description>&lt;p&gt;I mean minimal in terms of hardware. Something like a &amp;quot;Hello World&amp;quot; for the nRF51822. A starting point I can use to do stuff, but not such a bloated DevKit. And for the programmer I just search something to buy (shouldn&amp;#39;t be that expansive) which I can use in a plug&amp;#39;n&amp;#39;play fashion to flash my device. Something like the CC-Debugger for the nRF. I already have a minimal nRF device which I want to flash, but I&amp;#39;m also very interested in alternative devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to program an nRF51822 using SWDIO/CLK?</title><link>https://devzone.nordicsemi.com/thread/15980?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2014 19:47:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87465868-5a28-423a-ba1a-ab0d50e1fd9b</guid><dc:creator>Charles Manning</dc:creator><description>&lt;p&gt;Well it all comes down to what you mean by minimal: minimal effort or minimal cost/hardware.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using an NRF51822 as a supervisory micro + BTLE link for a system with the main application processor running Linux.&lt;/p&gt;
&lt;p&gt;I use two GPIO lines to hook up to the NRF51822 SWD lines which is how the NRF firmware is loaded/updated.&lt;/p&gt;
&lt;p&gt;This link implements the ARM SWD interface, which is a bit cryptic. This allows me to access all the address space of the NRF including being able to read/write GPIOs/ADCs etc and, of course, write the flash.&lt;/p&gt;
&lt;p&gt;If you just want to get a low cost debugger going, then there are many examples on the web that use FTDI chips, eval boards or low-cost SWDs. eg. &lt;a href="http://www.gniibe.org/memo/development/gnuk/hardware/diy-swd-debugger-ftdi2232.html"&gt;www.gniibe.org/.../diy-swd-debugger-ftdi2232.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to program an nRF51822 using SWDIO/CLK?</title><link>https://devzone.nordicsemi.com/thread/15976?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2014 17:10:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af8f7f7c-7a49-4671-8e4f-d1fab1333811</guid><dc:creator>Oliver</dc:creator><description>&lt;p&gt;Thanks for the heads up. One more question, comes the &lt;a href="http://developer.mbed.org/platforms/Nordic-nRF51-Dongle/"&gt;nRF51 Dongle&lt;/a&gt; also with an onboard programmer or do I have to get an external one? What external programmer would you recommend that is not to expensive (hobbyist)?
I do have a &lt;a href="http://blidget.hcilab.org/"&gt;breakout-board&lt;/a&gt; containing a nRF51822 which I want to flash. Else I would love to buy something similar, a minimal break-out board featuring a nRF51822.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to program an nRF51822 using SWDIO/CLK?</title><link>https://devzone.nordicsemi.com/thread/15975?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2014 16:43:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cdc9f80-acf2-4043-9dec-d26c8b3263f6</guid><dc:creator>Gilson</dc:creator><description>&lt;p&gt;Also as a small note the newer version of the nRF51822 does not require a pull down on the SWD clock line but you may find out some modules out there that use older nRF51882 that requires a 12K ohm pull down resistor on the clock line. just be aware of it. I know Raytac modules do. Cheers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to program an nRF51822 using SWDIO/CLK?</title><link>https://devzone.nordicsemi.com/thread/15974?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2014 14:55:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbc88bf7-b591-44f4-93f5-ea56bafc844a</guid><dc:creator>Asbj&amp;#248;rn</dc:creator><description>&lt;p&gt;Q1: You need a programmer. We use J-link from Segger, but in theory you could use any Cortex M0 programmer that supports the SWD interface. You need four pins, VDD, GND, SWDIO and SWDCLK to program it.&lt;/p&gt;
&lt;p&gt;Q2: Both the nRF51x22-EK and the nRF51822-mBED kit comes with an onboard programmer so you can get one of those an you&amp;#39;ll be ready to test, evaluate and develop code. We have most code examples built for Keil uVision, but there&amp;#39;s also some code examples available on mBED and for GCC based platforms. Keil supports compiling application code for up to 32 k for free, so if your application is small, that would be a good place to start.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>