<?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>nRF51822 problem with programming application using Keil</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12437/nrf51822-problem-with-programming-application-using-keil</link><description>Hi! 
 I developed my application using nRF51 DK with nRF51422 QFACA10 chip on it, and everything works fine. But now i would like to program this application on nRF51822 QFAAH00 chip i have, and i have some problems with it. In &amp;quot;options for target&amp;quot; in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Mar 2016 14:35:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12437/nrf51822-problem-with-programming-application-using-keil" /><item><title>RE: nRF51822 problem with programming application using Keil</title><link>https://devzone.nordicsemi.com/thread/47078?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2016 14:35:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cadf47aa-5a8a-46fa-84e3-ee1f82e3c9a8</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Then I suggest you try to debug your code like described &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/?answer=60126#post-id-60126"&gt;here&lt;/a&gt; and maybe start a new thread if you can&amp;#39;t figure it out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 problem with programming application using Keil</title><link>https://devzone.nordicsemi.com/thread/47077?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2016 13:22:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a6001de-0317-4e8d-b401-fb478fb9abdc</guid><dc:creator>Ina</dc:creator><description>&lt;p&gt;I finally managed to program application. I changed memory settings to:&lt;/p&gt;
&lt;p&gt;IROM1(on chip): 0x18000(start), 0x28000(size)
IRAM1(on chip): 0x20002000(start), 0x4000(size).&lt;/p&gt;
&lt;p&gt;still dont know if its correct, because i dont see advertising packets coming (it was working on nrf51DK) in Master Control Panel, but at least there is some improvement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 problem with programming application using Keil</title><link>https://devzone.nordicsemi.com/thread/47076?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2016 11:28:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e68e3669-b00d-44e7-ab9e-ef59b787a1d5</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Flash download failed - &amp;quot;Cortex-M0&amp;quot; is a very common issue and is &lt;a href="https://www.google.no/webhp?sourceid=chrome-instant&amp;amp;ion=1&amp;amp;espv=2&amp;amp;ie=UTF-8#q=Flash+download+failed+-+%22Cortex-M0%22+site:https:%2F%2Fdevzone.nordicsemi.com%2F"&gt;discussed in many threads here on devzone&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/64/why-do-i-get-error-flash-download-failed-cortex-m0-when-downloading-a-project-from-keil/"&gt;This&lt;/a&gt;, &lt;a href="https://devzone.nordicsemi.com/question/35671/erase-failed-flash-download-failed-flashing-softdevice-with-keil-cmsis-dap/"&gt;this&lt;/a&gt;, and &lt;a href="https://devzone.nordicsemi.com/question/30840/after-programming-s110-softdevice-i-get-erase-failed-error-download-failed-cortex-m0/"&gt;this&lt;/a&gt; might be a good place to start.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 problem with programming application using Keil</title><link>https://devzone.nordicsemi.com/thread/47075?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2016 11:08:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28fe61a3-a0c7-4634-92eb-54251e47a517</guid><dc:creator>Ina</dc:creator><description>&lt;p&gt;Thank You for Your quick answer.&lt;/p&gt;
&lt;p&gt;I selected &amp;quot;J-LINK/J-TRACE Cortex&amp;quot;, but now i get this error in Keil:&lt;/p&gt;
&lt;p&gt;Flash download failed - &amp;quot;Cortex-M0&amp;quot;.&lt;/p&gt;
&lt;p&gt;When I try to load .hex file using nRFgo Studio i get the error:&lt;/p&gt;
&lt;p&gt;programming failed: this hex file has data in SoftDevice region.&lt;/p&gt;
&lt;p&gt;So i think that problem might be in using wrong version of SoftDevice, or incorrect memory settings, and i dont know how to fix this. According to nRF51 Series Compatibility Matrix, this SoftDevice should be suitable for nRF51822_QFAA, so i think this is a memory settings issue. What are correct settings for nRF51822_QFAA?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 problem with programming application using Keil</title><link>https://devzone.nordicsemi.com/thread/47074?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2016 10:40:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f68784ef-ec84-4714-af2f-3e4e44f8cba6</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Keil has a tendency to reset some of your settings when you change target. Including the debugger settings. Try to go into the Debug tab and select J-Link instead of ULINK:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6708.target.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure why the &amp;quot;Select Target&amp;quot; drop down list doesn&amp;#39;t update, but as long as you have the correct memory settings you should be good anyway.&lt;/p&gt;
&lt;p&gt;Using P20 to program should not lead to any troubles at all. If you want you can certainly load the .hex file using nRFgo or nrfjprog as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>