<?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>Flashing Module w/ DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31022/flashing-module-w-dk</link><description>Hello, 
 I am using WT51822-S4AT based on the nRF51822 SoC and I am trying to program it with the ble-beacon example from the SDK. Looking at the DK documentation, I need to use P20 pins to program it. It sounds like once I get it all hooked up right</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Mar 2018 04:42:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31022/flashing-module-w-dk" /><item><title>RE: Flashing Module w/ DK</title><link>https://devzone.nordicsemi.com/thread/122538?ContentTypeID=1</link><pubDate>Fri, 02 Mar 2018 04:42:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5fa98a3-58d1-40f3-b1bc-0cce4718773f</guid><dc:creator>Shawn</dc:creator><description>&lt;p&gt;I got it working now. FINALLY! Connection is set up correctly. The issue was these lines in main.c:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Initialize the SoftDevice handler module.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOFTDEVICE_HANDLER_INIT(&amp;amp;clock_lf_cfg, NULL);&lt;/p&gt;
&lt;p&gt;Program would hang inside SOFTDEVICE_HANDER_INIT with debugger message ending with &amp;quot;Starting CPU...&amp;quot;. The problem was clock_lf_cfg was using wrong values inside its struct.&lt;/p&gt;
&lt;p&gt;Doing a google search lead me to this guy&amp;#39;s solution: &lt;a href="https://rigado.zendesk.com/hc/en-us/articles/225674668-Example-files-will-not-run-on-my-hardware-but-do-on-the-Eval-board-"&gt;https://rigado.zendesk.com/hc/en-us/articles/225674668-Example-files-will-not-run-on-my-hardware-but-do-on-the-Eval-board-&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I followed what he said, which involved changing my pca10028.h file and makefile, then it started working (I also decreased the length of RAM inside my linker script previously, which may or may not have helped).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>