<?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>Buttonless DFU bootloader working in nrf51-DK, but not on nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66384/buttonless-dfu-bootloader-working-in-nrf51-dk-but-not-on-nrf51822</link><description>I built an application for the nrf51822 on top of SDK12.3, to which I added the buttonless DFU based on the &amp;quot;experimental_ble_app_buttonless_dfu&amp;quot; example. 
 As a boot loader I used the one from case 256032 that Vidar Berg kindly provided. 
 I then followed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Sep 2020 09:18:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66384/buttonless-dfu-bootloader-working-in-nrf51-dk-but-not-on-nrf51822" /><item><title>RE: Buttonless DFU bootloader working in nrf51-DK, but not on nrf51822</title><link>https://devzone.nordicsemi.com/thread/271999?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 09:18:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f81fb1ca-50a8-4110-b67e-82dfbb0cfb9f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ricardo,&lt;/p&gt;
&lt;p&gt;It is correct to set the RAM size to 0x1A30 as you did initially. I reduced that size by 0x80 bytes to leave room for a &amp;quot;no-init&amp;quot; section at the end of RAM because I forgot that it&amp;#39;s not used by the bootloader anylonger (used up until SDK 11).&lt;/p&gt;
&lt;p&gt;Calculation: RAM_SIZE = total RAM size - ram start = 0x4000 - 0x25d0 = 0x1a30&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU bootloader working in nrf51-DK, but not on nrf51822</title><link>https://devzone.nordicsemi.com/thread/271816?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 13:48:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86fd0f19-2883-4c90-a5da-95cf10702f4b</guid><dc:creator>Ricardo Rodrigues</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;In the meantime I had already fixed this by trial and error, but without really understanding what I was doing.&lt;/p&gt;
&lt;p&gt;After setting RAM_PH_SIZE to 0x4000, I was following the messages in the logs and ended up using&lt;/p&gt;
&lt;p&gt;RAM_START=0x200025d0&lt;br /&gt;RAM_SIZE=0x1A20&lt;/p&gt;
&lt;p&gt;although the log messages were saying that RAM_START should be 0x200025e0, it would then give an error saying that ram start should be changed from 0x200025e0 to 0x200025e0 (yes, that&amp;#39;s right - the values was already set as suggested and then there was a suggestion to change to the same value).&lt;/p&gt;
&lt;p&gt;So then I tried with 0x200025e0 and it worked, but my confidence level on this &amp;quot;solution&amp;quot; wasn&amp;#39;t great, and couldn&amp;#39;t figure out how to calculate these values properly.&lt;/p&gt;
&lt;p&gt;I tried the values from your suggestion and it works without complaints, so I will use those instead of mine.&lt;/p&gt;
&lt;p&gt;Would be interesting though if you could explain how you calculated these values?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Ricardo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU bootloader working in nrf51-DK, but not on nrf51822</title><link>https://devzone.nordicsemi.com/thread/271802?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 13:27:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecb15821-a827-4662-8850-d06a9d4256bf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Ricardo,&lt;/p&gt;
&lt;p&gt;The problem is the RAM setting you said. Try using the settings shown in the screenshot below. Those should work with the xxAA variant.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7026.pastedimage1601299636508v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>