<?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 NRF51822?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4152/how-to-program-nrf51822</link><description>Hi all, 
 I have been developing a program on mbed using mKit NRF51822 and am now ready to move from prototype to one off production. 
 I am wondering after i create a custom PCB how i would go about progrraming the MCU. 
 I have access to: 
 
 Keil</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 20 Aug 2016 09:27:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4152/how-to-program-nrf51822" /><item><title>RE: How to: Program NRF51822?</title><link>https://devzone.nordicsemi.com/thread/14852?ContentTypeID=1</link><pubDate>Sat, 20 Aug 2016 09:27:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b0d6d25-91a5-42d1-8624-ef257d9470c5</guid><dc:creator>Punit</dc:creator><description>&lt;p&gt;Can i use a ULINK2 to program the NRF?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to: Program NRF51822?</title><link>https://devzone.nordicsemi.com/thread/14851?ContentTypeID=1</link><pubDate>Mon, 20 Oct 2014 19:10:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83a53523-a16d-480c-bd1b-a650e6828c16</guid><dc:creator>Vebj&amp;#248;rn</dc:creator><description>&lt;p&gt;My schematic is quite messy, so I don&amp;#39;t think you&amp;#39;ll learn anything interesting from it :p If you have more questions i would suggest asking them here so anyone can answer! Also note that there has been asked a lot of questions about &amp;quot;pcb&amp;quot; and &amp;quot;programming&amp;quot; here on devzone..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to: Program NRF51822?</title><link>https://devzone.nordicsemi.com/thread/14850?ContentTypeID=1</link><pubDate>Mon, 20 Oct 2014 18:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e52586e8-b790-4b94-b328-779cfab8dc21</guid><dc:creator>Andrea</dc:creator><description>&lt;p&gt;Would you mind sending a image/file of your schematic just so i can get an idea? If not then no issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to: Program NRF51822?</title><link>https://devzone.nordicsemi.com/thread/14849?ContentTypeID=1</link><pubDate>Mon, 20 Oct 2014 18:46:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87736705-8cc5-4f16-8d60-0973aeb61623</guid><dc:creator>Andrea</dc:creator><description>&lt;p&gt;Thank you so much for your help, really has helped me, would i be okay to PM at some point in the future as i develop by custom PCB if i need any further guidance on what you have done?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to: Program NRF51822?</title><link>https://devzone.nordicsemi.com/thread/14848?ContentTypeID=1</link><pubDate>Mon, 20 Oct 2014 18:36:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5bbe1e9-be9e-496f-bea3-0b74a55be427</guid><dc:creator>Vebj&amp;#248;rn</dc:creator><description>&lt;p&gt;Hi! I have just created my own PCB with the nRF51822 so I can try to give you some tips. First of all, there are some PCB guidelines in the Product Specification (chapter 11) that I &lt;em&gt;really&lt;/em&gt; recommend that you follow. Not only is the schematic and component values important, but the layout is important as well. Personally i copied the antenna-layout from the evaluation-kit reference files and simply added my own circuitry to this.&lt;/p&gt;
&lt;p&gt;With that said, programming the mcu is quite easy, as long as you design the PCB correctly! If you look at chapter 10 in the Reference Manual you will see that the chip supports Serial Wire Debugging, and only 2 signals are needed to program the device. If I&amp;#39;m not mistaken, your Ulink Pro debugger also supports SWD. When designing your PCB, simply connect the SWDCLK and SWDIO pins from the nRF51822 to a header, along with Vdd and GND. Having a 20-pin header for this is a bit overkill, so try perhaps to use an adapter instead. I&amp;#39;m using a 6-pin adapter, so my schematic looks like this:&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/swd.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Notice that you don&amp;#39;t need to connect the #RESET signal to the mcu.&lt;/p&gt;
&lt;p&gt;With this setup, you simply use Keil to program the chip the way you normally do&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>