<?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>Programming MDBT40 with Jlink: Failed to download RAMCode!</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12806/programming-mdbt40-with-jlink-failed-to-download-ramcode</link><description>Hi, 
 I am trying to program MDBT40 with Jlink and having some problems.
Here is the scenario:
I have two versions of the MDBT40. One that I took off a BLE NANO (RedBear Labs, 256kb Flash, 16Kb RAM), and one I ordered from SeeedStudio (256kb Flash</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 May 2016 17:44:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12806/programming-mdbt40-with-jlink-failed-to-download-ramcode" /><item><title>RE: Programming MDBT40 with Jlink: Failed to download RAMCode!</title><link>https://devzone.nordicsemi.com/thread/48675?ContentTypeID=1</link><pubDate>Tue, 17 May 2016 17:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ba6475c-b066-4a45-9e8a-169ff5009858</guid><dc:creator>Shay Ohayon</dc:creator><description>&lt;p&gt;Follow these instruction:&lt;a href="http://electronut.in/nrf51-dk-external-programming/"&gt;electronut.in/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming MDBT40 with Jlink: Failed to download RAMCode!</title><link>https://devzone.nordicsemi.com/thread/48674?ContentTypeID=1</link><pubDate>Tue, 17 May 2016 07:31:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1323f1ec-8155-4e75-b6a0-a20e9154c8d8</guid><dc:creator>SMAG</dc:creator><description>&lt;p&gt;Hi Shay Ohayon,&lt;/p&gt;
&lt;p&gt;I am new on working on the MDBT40. So if you kindly guide me to the procedure to connect it with nRF51 DK using JLINK headers and how to flash our own code in it using nRFgo.&lt;/p&gt;
&lt;p&gt;Thanks
Umair&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming MDBT40 with Jlink: Failed to download RAMCode!</title><link>https://devzone.nordicsemi.com/thread/48673?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2016 12:39:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c09551ff-5c35-4481-ad90-8a3e171e2f26</guid><dc:creator>Shay Ohayon</dc:creator><description>&lt;p&gt;Solved!. The problem was write-protection on the flash.
I used nRFgo to erase the flash, then I was able to flash it with Jlink.
And yes, the length should be 0x6000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming MDBT40 with Jlink: Failed to download RAMCode!</title><link>https://devzone.nordicsemi.com/thread/48670?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2016 12:37:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b95f449b-684c-46c0-a9bd-a7b56ece2f0e</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The correct linker script values for the 32kB variant should be:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;FLASH (rx) : ORIGIN = 0x18000, LENGTH = 0x28000 
RAM (rwx) : ORIGIN = 0x20002000, LENGTH = 0x6000
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming MDBT40 with Jlink: Failed to download RAMCode!</title><link>https://devzone.nordicsemi.com/thread/48672?ContentTypeID=1</link><pubDate>Sat, 26 Mar 2016 20:08:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6afa7d62-becf-482e-ae6b-89153bb9ff21</guid><dc:creator>Shay Ohayon</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried to flash both. None work. The soft device should probably be the same (?). I&amp;#39;m using the pre-compiled one that arrives with the SDK. That was working for the 16kb version.
I&amp;#39;ve tried to do a full erase (typing &amp;quot;erase&amp;quot; in Jlink), but I get the same exact error: &amp;quot;****** Error: Failed to download RAMCode!&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming MDBT40 with Jlink: Failed to download RAMCode!</title><link>https://devzone.nordicsemi.com/thread/48671?ContentTypeID=1</link><pubDate>Sat, 26 Mar 2016 19:58:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29bbb08e-93d4-4535-8e44-b70737c0eedf</guid><dc:creator>wlgrd</dc:creator><description>&lt;p&gt;Are you sure they have the same softdevice? Also, it says &amp;quot;Downloading file s110.hex&amp;quot;, so are you trying to flash the softdevice or the application? Did you do a full erase before trying?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>