<?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 Builds, loads, does not debug</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4549/nrf51-builds-loads-does-not-debug</link><description>I will be happy if someone points out this is a newbie problem and not something weirder... 
 Running on Win7, 64 bit BTW... 
 I recently received the nRF51 eval kit. I have owned and used Keil for a long time on other projects (Cortex). I always step</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Nov 2014 18:18:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4549/nrf51-builds-loads-does-not-debug" /><item><title>RE: nRF51 Builds, loads, does not debug</title><link>https://devzone.nordicsemi.com/thread/16140?ContentTypeID=1</link><pubDate>Tue, 25 Nov 2014 18:18:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94eb1549-cbdf-4912-9edf-bddf2369b6c9</guid><dc:creator>matterama</dc:creator><description>&lt;p&gt;Hi Petter,&lt;/p&gt;
&lt;p&gt;I believe there were multiple things going on that have now been resolved by reinstalling packs in Keil.  There is still the outstanding strangeness that if you switch the device to the 51822 in Keil, build a project, then switch back to the 51422 and compile, Keil tools no longer see the nRF51 j-Link!  I have no idea why these are tied to each other.&lt;/p&gt;
&lt;p&gt;Anyway, we&amp;#39;ll close this one.&lt;/p&gt;
&lt;p&gt;For anyone else looking at this link, my recommendation is to follow the steps carefully, as the Keil tool might have some strangeness in it.  Here is a summary:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download / extract all the tools (SDK, SoftDevice(s), RFgo Studio)&lt;/li&gt;
&lt;li&gt;Run RFgo Studio and program the SoftDevice you want to use (S110 for example)&lt;/li&gt;
&lt;li&gt;Open Keil pack manager and copy some examples using the pack structure.  Use the S110 examples since you loaded the SoftDevice.&lt;/li&gt;
&lt;li&gt;Open a project, compile.&lt;/li&gt;
&lt;li&gt;Download / debug should work&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 Builds, loads, does not debug</title><link>https://devzone.nordicsemi.com/thread/16139?ContentTypeID=1</link><pubDate>Tue, 25 Nov 2014 08:26:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8c60d88-b026-41e4-a9b3-cd4c8ca05c5f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It seems you are not programming the SoftDevice before you program your application.&lt;/p&gt;
&lt;p&gt;Blinky doesn&amp;#39;t require a SoftDevice to run, but you can run Blinky with the SoftDevice.&lt;/p&gt;
&lt;p&gt;You just need to select the correct version. I see from your project path that you have selected a version that works with the S110 SoftDevice, then the S110 SoftDevice must be on the chip.&lt;/p&gt;
&lt;p&gt;If your first goal is to run blinky without the SoftDevice use the blinky_blank_pca10028 project, not the blinky_s110_pca10028. Be sure to have a clean chip (do an erase all in nRFgo Studio). If you try to flash blinky_blank when the SoftDevice is present you will get &amp;quot;Error: Flash Download failed - Cortex M0&amp;quot;, because you are trying to flash your project on top of the SoftDevice.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure what your debug problems are, but please let me know if they are still there after you have tried my suggestions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 Builds, loads, does not debug</title><link>https://devzone.nordicsemi.com/thread/16138?ContentTypeID=1</link><pubDate>Mon, 24 Nov 2014 22:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c177bd88-7fc7-4f76-8b7e-a39f6eb48912</guid><dc:creator>matterama</dc:creator><description>&lt;p&gt;Petter.....&lt;/p&gt;
&lt;p&gt;Mixed results here, please check my notes and question:&lt;/p&gt;
&lt;p&gt;I loaded up the softdevice 7.1, which I believed I had done previously.  The BLE sample (the simplest HID Mouse example) almost started to work.  Debugging was still flaky / not really working.  There were often reported conflicts with the &amp;quot;Error: Flash Download failed - Cortex M0&amp;quot; issue.&lt;/p&gt;
&lt;p&gt;I had to clean out the original SDK examples from Keil and start from scratch.  At one point, I had built the projects with the device selection as the nRF51822.  It turned out that building with that variant, then returning to the nRF51422 is what allowed the nRFgo to download the hex correctly, but no debugging worked. When I cleaned out the old builds, things became more stable.&lt;/p&gt;
&lt;p&gt;Here are my questions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Why would building the nRF51822 variant (NOT using it as the hex, just simply building it in Keil) affect the download / debug capability at all?  Does this make any sense?&lt;/li&gt;
&lt;li&gt;Even though the Blinky code does not use the SoftDevice, does the evaluation board have to have a SoftDevice loaded at least once before debugging will operate?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I&amp;#39;m still trying to determine what the exact process is.  My first attempt at all of this was a straight blinky load, no soft device, etc. and I encountered these problems.  I can continue developing at this point, but am worried about the unknowns in the toolset that I&amp;#39;ve seen so far that might bite me later on...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 Builds, loads, does not debug</title><link>https://devzone.nordicsemi.com/thread/16137?ContentTypeID=1</link><pubDate>Mon, 24 Nov 2014 17:52:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db91825d-15b4-485b-8b6a-882cc5c7b443</guid><dc:creator>matterama</dc:creator><description>&lt;p&gt;I will look at this.&lt;/p&gt;
&lt;p&gt;My understanding is that the SoftDevice was not necessary for the Blinky code though?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 Builds, loads, does not debug</title><link>https://devzone.nordicsemi.com/thread/16136?ContentTypeID=1</link><pubDate>Mon, 24 Nov 2014 15:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81d70a8c-6d0d-4704-b669-7cce6a69ca20</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Have you programmed the SoftDevice? Section 6.1.4 in the user guide.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>