<?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>problems with DFU bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11541/problems-with-dfu-bootloader</link><description>Hello. 
 I want to flash DFU bootloader with keil on chip nRF51822-CEAA (256kB flash, 16kB RAM). I&amp;#39;m using s130 
 The areas i write to are: 
 IROM start: 0x3C000
IROM size: 0x3C00
IRAM1 start:0x20002C00
IRAM1 size:0x2048
IRAM2 start:0x20004C48</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Feb 2016 14:04:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11541/problems-with-dfu-bootloader" /><item><title>RE: problems with DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/43632?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2016 14:04:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28bbf43b-8431-49db-9390-116c3a0130f7</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;There. Turns out my 6-pin cable for flashing was bad. Now that it&amp;#39;s replaced, everything works fine. I can see &amp;quot;DfuTarg&amp;quot; advertising. Thanks for all the help Bjørn.&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problems with DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/43631?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2016 06:58:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1199f5d-6262-4198-908b-fc1d2aa03379</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Ok :) Keep me posted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problems with DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/43630?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 11:51:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc66e5c7-ace9-4901-8192-3cd6ef24dd43</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;I searched the community and found an example you posted to someone. I tried using that example and it compiled successfully (without having to set stack size to 255, and with settings for 16kB RAM).
I found the answer in &lt;a href="https://devzone.nordicsemi.com/question/62260/how-to-modify-a-dfu-bootloader-example-to-work-with-a-nrf51822-chip/"&gt;this question&lt;/a&gt;. Now i  have another problem.. my j-link doesn&amp;#39;t detect my board.. but i&amp;#39;ll fix that. I&amp;#39;ll let you know if DFU works once i&amp;#39;ll be able to flash it.&lt;/p&gt;
&lt;p&gt;Thanks for all your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problems with DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/43629?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 09:06:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8430945a-cfc0-4066-871a-78c1f8cdc60c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I am not sure if setting the stack size to 255 is a good idea. As I previously have mentioned this should not be necessary. Is the Heap Size set to 0? Yes, the bootloader example will start advertising as &amp;quot;DfuTarg&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problems with DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/43628?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2016 17:02:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f746e0d-6900-42eb-91d7-17e39921197c</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;If i reduce stack size to 255, as i found in this &amp;quot;&lt;a href="https://devzone.nordicsemi.com/question/31603/s110-800-dfu-example-on-nrf51822/&amp;quot;"&gt;devzone.nordicsemi.com/.../&amp;quot;&lt;/a&gt; and few similar questions, i can compile. But then when i want to flash (using keil) it looks like it&amp;#39;s flashing, it says:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Reading flash area to program to guarantee it is erased.
Checking that the area to write is not protected.
Programing device.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And if i check with nrfgo studio i can see there&amp;#39;s softdevice flashed on my chip, a bootloader (16kB) and free space for my application.&lt;/p&gt;
&lt;p&gt;Now if i understand this example correctly, it should start to advertise with name &amp;quot;Dfu..&amp;quot; right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problems with DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/43627?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2016 16:52:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:683eaa86-b009-46c6-9a3d-559133bac0ed</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;I tried with SDK 8.1.1, and with SDK 10.0.0. I got the same error with both.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problems with DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/43626?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2016 15:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:481294cf-f185-4703-b575-c60c0c8fea35</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Which SDK version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problems with DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/43625?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2016 18:49:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bee2667-f1da-4e87-957a-bda270c939e4</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;Hello,
I&amp;#39;ve entered your addresses. Now i got this error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    linking...
.\_build\nrf51422_xxac.axf: Error: L6406E: No space in execution regions with .ANY selector matching arm_startup_nrf51.o(STACK).
.\_build\nrf51422_xxac.axf: Error: L6407E: Sections of aggregate size 0x800 bytes could not fit into .ANY selector(s).
Not enough information to list image symbols.
Not enough information to list the image map.
Finished: 2 information, 0 warning and 2 error messages.
&amp;quot;.\_build\nrf51422_xxac.axf&amp;quot; - 2 Error(s), 0 Warning(s).
*** Completed Cross-Module-Optimization after 2 iteration(s).
Target not created.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I didn&amp;#39;t alter the example and I&amp;#39;m using Cross_Module Optimization, MicroLib and have optimization set to level 3 (-O3).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problems with DFU bootloader</title><link>https://devzone.nordicsemi.com/thread/43624?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 10:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cad4e719-de2a-4e38-b0a5-74c8fda7ec3c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The 16kB RAM is memory mapped from 0x20000000 to 0x20004000 and setting IRAM1 size to
0x2048 and IRAM2 start at 0x20004C48 will therefore not work.&lt;/p&gt;
&lt;p&gt;The correct ROM/RAM settings for the bootloader example a nRF51 chip with 16kB RAM is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;IROM start: 0x3C000 size: 0x3C00
IRAM1 start:0x20002C00 size:0x1380
IRAM2 start:0x20003F80 size:0x80(NoInit checked)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is the only setting that has to be changed in the SDK bootloader examples in order for it to run on a 16kB RAM variant of the nRF51.&lt;/p&gt;
&lt;p&gt;Have you altered the example? Are you using Cross_Module Optimization, MicroLib and optimization set to level 3 (-O3)?&lt;/p&gt;
&lt;p&gt;-Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>