<?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>How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11015/how-to-modify-a-dfu-bootloader-example-to-work-with-a-nrf51822-chip</link><description>Hi all, 
 Edit 25 Dec &amp;#39;15: Rewrote post for better readability: 
 I am trying to modify the dual bank DFU bootloader example to work on our custom board that uses a nRF51822QFAA chip. So far it has not worked at all. Could someone please help giving</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Jan 2016 04:54:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11015/how-to-modify-a-dfu-bootloader-example-to-work-with-a-nrf51822-chip" /><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41196?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2016 04:54:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a4c2c5-464e-4bf0-8f33-f6c2a31804af</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Thanks for the answer and support you provided with our team&amp;#39;s support case. I was reluctant to post the answer here because I am unsure how to explain it. After all you were the one who discovered that the problem was due to the Keil uVision pack version of the nRF51 SDK. Thanks once again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41195?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2016 15:07:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b8a3efc-78b6-49f4-9d9f-396fc159b1e9</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Download the zipped version of the nRF51 SDK v10.0 using this &lt;a href="http://developer.nordicsemi.com/nRF5_SDK/nRF51_SDK_v10.x.x/nRF51_SDK_10.0.0_dc26b5e.zip"&gt;link&lt;/a&gt;. Extract it and navigate to examples/dfu/bootloader and switch the main.c file with the one from your project. Then open the S110 Dual Bank bootloader project, edit the memory settings by going to&lt;/p&gt;
&lt;p&gt;Options for Target &amp;gt;&amp;gt; Target &amp;gt;&amp;gt; Read/Only Memory Areas and Read/Write Memory Areas&lt;/p&gt;
&lt;p&gt;and input the following settings(also shown in the attached screenshot).&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;IROM1 Start: 0x0003C000 Size: 0x3C00

IRAM1 Start: 0x20002C00 Size: 0x1380

IRAM2 Start: 0x20003F80 Size: 0x80 (NoInit Checked) 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41194?ContentTypeID=1</link><pubDate>Fri, 25 Dec 2015 08:58:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49458d12-d232-46da-a995-3706b0731e39</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Yeah I don&amp;#39;t really know why there is a different between our boards. I thought about different hardware configuration but that doesn&amp;#39;t make much sense as I haven&amp;#39;t seen any other code in main.c that concerns external hardware set up yet. I really wish a Nordic engineer could shed some light on this.&lt;/p&gt;
&lt;p&gt;Thanks a lot for all your help all this time though. I really appreciate it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41193?ContentTypeID=1</link><pubDate>Fri, 25 Dec 2015 08:32:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca646c04-ddf3-4c8b-a9ed-b4a5157200fb</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;I just tried the file that I sent you on my custom board which has nrf51822_xxAA. It is working fine and I&amp;#39;m able to see DfuTarg on nrf Master ControlPanel. I have not changed the target in the project, but the rom and ram settings have been changed and that is what matters imo.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41192?ContentTypeID=1</link><pubDate>Fri, 25 Dec 2015 07:55:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:779482e6-6133-42ba-ab90-f9dfdffa5b30</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Lalit, I have figured out why your project file compile. It is being set to target a nRF51422xxAC, not a nRF51822xxAA. I tried changing it back and forth and have seen that changing the target to nRF51422xxAC does help with the compiling issue. However, once I flash the firmware (targetting nRF51422) on the chip, the chip still does not work. It also becomes unable to run the chip in debug mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41173?ContentTypeID=1</link><pubDate>Fri, 25 Dec 2015 06:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a0bc25e-e5bc-455c-99ab-ffb5bd52f979</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;Hi, I&amp;#39;m facing the same problem while compiling your project. For help on that, you&amp;#39;ll have to rely on someone from nordic team. Meanwhile you can keep working by replacing your project file with &lt;a href="http://1drv.ms/1Pn5myq"&gt;this&lt;/a&gt; one. It works on my system after replacing your project file by the one I&amp;#39;m using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41185?ContentTypeID=1</link><pubDate>Fri, 25 Dec 2015 03:25:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de2f41ac-c302-46a7-9938-5350eab541ca</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Lalit, I have added the project as an attachment to the original post&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41182?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 11:04:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b690faba-fe50-4f54-b6ce-80c46c695986</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;If possible can you attach the keil project here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41181?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 11:00:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03c9f564-186f-44b1-b4b3-bb1fda803253</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;Sorry, but I don&amp;#39;t know the reason either. I found the information on the forum, don&amp;#39;t have the link though. It worked for me for my custom board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41180?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 10:56:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b567540e-26f6-47fc-a3ab-a4d704002d2b</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Unfortunately the issue persists. Also could you explain the motivation behind bumping IRAM1 start to 0x20002C00? From my understanding, 0x20000000 through 0x20001FFF are used by the SoftDevice and addresses from 0x20002000 on are free for application and bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41179?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 10:47:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b0e3314-0edf-44fb-b0a8-944c7a3f1c16</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;I mistyped the settings.
IROM1 start is 0x3c000 and iram1 start is 20002c00 not 20002000 rest of your settings are fine. Try again and let me know. Sorry for misunderstanding.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41178?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 10:34:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b46f6c7-863f-4e12-ab82-c429b7c0ea60</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;I have attached the screenshot as you requested, Lalit. Thanks for all your help by the way. I really appreciate your enthusiasm.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41177?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 10:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:659ec33e-7ffd-4f49-8897-1e6645accfc7</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;I just compiled your code with sdk10 and settings as I previously mentioned, it compiles fine with 2 warnings only, no errors. Can you provide a screenshot of the keil settings?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41176?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 10:16:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4beddbd2-2f55-42b0-bcfc-125c73281309</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;I am using SDK 10.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41175?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 10:14:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b7edaca-05f6-4e82-9de6-369b9151014e</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;The settings that I have provided are for building dfu dual bank bootloader. The settings work for me on sdk 9 and 10 for 51822aa. Which  sdk version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41174?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 09:45:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8745be5e-a477-46ae-849e-f63610af0f1b</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;@Lalit: Update: I have tried the suggestion you provided and the two errors I listed above remain, so I still have the same questions.&lt;/p&gt;
&lt;p&gt;On other note, would you mind telling me why I should set IROM1 start adress as 0x4C00 instead of 0x3C000; and set IRAM2 as NOINIT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41191?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 09:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6f53655-66d3-4ff6-b890-113b74cbabb4</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;*Edit: Lalit made the previous comment while I was writing this one. So this is made before trying their suggestion.&lt;/p&gt;
&lt;p&gt;So I did some more research and have updated the IRAM1 size to 0x1380 and the IRAM2 starting address to 0x3F80 according to &lt;a href="https://devzone.nordicsemi.com/question/56218/how-can-i-compile-dfu-bootloader-examples-for-pca10031other-16k-ram-boardsdongles/"&gt;this Q&amp;amp;A&lt;/a&gt;. However now when I compile the project Keil reports two error:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;._build\nrf51422_xxac.axf: Error: L6406E: No space in execution regions with .ANY selector matching arm_startup_nrf51.o(STACK).&lt;/li&gt;
&lt;li&gt;._build\nrf51422_xxac.axf: Error: L6407E: Sections of aggregate size 0x800 bytes could not fit into .ANY selector(s).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I assume that this means I simply don&amp;#39;t have enough RAM. Does this mean I cannot use a dual bank DFU set up with 16KB of RAM?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41190?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 09:37:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ce68625-efc4-47ac-98f5-1e449d698c79</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;Try these settings :
IROM1: START: 0X4C00, SIZE: 3C00
IRAM1: START: 0X20002C00 SIZE: 0X1380
IRAM2: START: 0X20003F80 SIZE: 0X80 NOINIT&lt;/p&gt;
&lt;p&gt;Edit: IROM1: START: 0X3C000, SIZE: 3C00&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41189?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 09:23:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d0fce8b-9b08-4012-b82b-cd5aa162f0b9</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;@Lalit Kumar: I have just read the article. From my understanding, I need to adjust the IROM and IRAM settings for my application. However I still don&amp;#39;t understand how I could determine the correct value for my bootloader. For starter I could not even make sense out of the default value in the dual bank example. Could you please provide some further help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41188?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 07:58:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c21a04b-b7ad-4c66-820d-7414458bcdc3</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;have a look at this: &lt;a href="https://devzone.nordicsemi.com/blogs/723/rom-and-ram-management/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41187?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 07:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31b83399-a120-42ce-827b-8ec4639deb84</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;I am using the nrf51822xxAA. I have thought about this issue too but ultimately could not find any info so I assume the programmer could take care of based on the target. Could you please point me to the right direction if I am wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41186?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 06:57:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c931d907-88cc-46d7-949a-c2a7222468ac</guid><dc:creator>Lalit Kumar</dc:creator><description>&lt;p&gt;Which nrf51822 chip are you using? If I&amp;#39;m not wrong nrf51 DK has nrf51422xxAC. So depending on the 51822 variant, you might have to change the memory settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41184?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 02:22:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca7819e3-ed47-4882-8403-d9080a430203</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Shubham, I have attached my main.c code to the original question. The rest of the code remains the same as the dfu/dual_bank_ble_s110 example&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify a DFU bootloader example to work with a nRF51822 chip</title><link>https://devzone.nordicsemi.com/thread/41183?ContentTypeID=1</link><pubDate>Wed, 23 Dec 2015 20:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b2abfd0-6a1a-4c08-b28e-b67ac913c706</guid><dc:creator>shubham</dc:creator><description>&lt;p&gt;can you provide the code snippet of it? Or can you tell the flow of your code how it works?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>