<?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>Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20921/bootloader-memory-settings-for-51822xxab</link><description>Hi,
I have problem with settings of memory for bootloader in 51822xxAB.
I have bootloader with settings for 51422xxAC, but this chip has bigger memory.
It works on nRF51422 DK, but It doesn&amp;#39;t work on custom board with nrf51822xxAB.
Custom board is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Apr 2017 08:14:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20921/bootloader-memory-settings-for-51822xxab" /><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81724?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 08:14:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:540741ef-65e2-4804-97c9-56c4d4a572c6</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;I have tried send 2kB file too, but with the same error. I have free 24kB flash for application according to nRFgo Studio. I have read that simple use of dfu_single_bank is simple only for version 8.1+. Could be problem low RAM? I have only 8kB free RAM.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81723?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 08:02:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d820cf4-9900-4369-a54f-589eaa360813</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;This error is reported when there is not enough room to store the new image in swap, which is quite limited on the 128K part&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v10.0.0/bledfu_memory_banks.html?cp=4_0_4_4_3_1_3_1"&gt;(memory layout)&lt;/a&gt;. Note that you can change the the bootloader to do single bank updates of the application by using dfu_single_bank.c instead of dfu_dual_bank.c in your project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81712?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2017 10:23:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:277242b5-44c0-41b3-892c-2bc28d0ab929</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;OK.I made some progress. I found out, that softdevice init in bootloader has wrong crystal. So, It transmiting now but REMOTE DATA SIZE EXCEED LIMIT is occurs in nRF Toolbox. My app file has 21k.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81713?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2017 09:54:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cf3ddf9-cd74-49fa-8f72-5c202b5f30ad</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;I found third file dfu_types.h and there was that issue with bootloader start memory. So I don&amp;#39;t have problem with addresses on first look, but bootloader still doens&amp;#39;t start.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81706?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2017 07:21:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bf54e3d-2d7e-474c-ac3e-a419bc15e68f</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;How You recognize changes in hex file ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81705?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2017 07:17:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9957906c-8243-4ea6-a271-a9d534fbc55c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The changes you made in dfu_types.h does not appear to have any effect on the build output. Looks like a different version of this header is used in your build.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81711?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2017 07:12:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:014d2331-aa2b-47b5-b1ca-09ad98a84d26</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;This bootloader use CMSIS pack, so it could be problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81710?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2017 07:07:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a4915d8-ff8a-41ab-87ef-0e9759ea568a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks, the change you made to the  BOOTLOADER_REGION_START definition is not reflected in the build output, which indicates that you are not using the modified dfu_types.h in your build. Recommend to not use CMSIS packs for the reasons outlined &lt;a href="https://devzone.nordicsemi.com/blogs/880/deprecating-support-for-cmsis-pack-in-nrf5-sdk/"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81708?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2017 06:19:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a5ed208-2466-440c-b733-b83bdccc2849</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please include the bootloader .hex file you have.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81709?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2017 06:12:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71f7a7d0-e3d9-464c-b3ac-7b0329c690ef</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;I guess that I have the same problem as in &lt;a href="https://devzone.nordicsemi.com/question/7846/does-the-s110-v7003-alpha-dfu-bootloader-support-nrf51822xxab-128k-part/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt; because bootloader start address has no change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81720?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 13:43:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4316883-dab6-4af0-8944-27cafe1ae734</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;And RAM Size ? If I change only RAM Start I will get &amp;#39;Range IRAM2 overlaps range IRAM1&amp;#39;.&lt;/p&gt;
&lt;p&gt;I set IRAM1 Start to 0x20000000 now.
IRAM1 Size 0x3F80
IRAM2 Size 0x80&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81719?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 13:36:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2309ba36-1b2e-4162-b8f2-6fd0c72b5d61</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Ok, not sure why that is, but you can do the same from the memory view in Keil if you open a debug session. Also, just noticed that the RAM layout is incorrect in the screenshot you posted. Should be something like this so you don&amp;#39;t exceed the 16K boundary:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;IRAM1  0x20002000&lt;/li&gt;
&lt;li&gt;IRAM2  0x20003f80&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81718?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 13:32:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cf8cc2a-e3b1-41e8-aaea-88a4dc11dc83</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;Nrfjprog black console window blink without any text and nothing happens from my view.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81717?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 13:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0676ed62-7aaa-4d04-9d63-c1294fe6b37e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;That should work, what do you get if you do a memory read of the UICR-&amp;gt;BOOTLAODERADDR register?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog --memrd 0x100010014
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81716?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 13:23:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b201bfc-87cc-4c37-b990-ac8706178045</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;I did &amp;#39;eraseall&amp;#39; within nrfjprog.exe --eraseall and in nRFgo Studio by &amp;#39;Erase all&amp;#39; button and I have flashed it by Keil with External Tool: Command nrfjprog.exe, Arguments:--family NRF51 --program &amp;quot;#H&amp;quot;
Flashing with external tool works because I have tried it for nrf51422xxAC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81715?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 13:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecb8c7f1-ca89-4086-a3b3-394bc41ae287</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Did you do a complete chip erase before you uploaded the new bootlaoder, and are you using nrfjprog to load the FW (flash alghoritm in keil cant write to the UICR registers)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81714?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 13:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d8c8e59-f78d-4427-90b5-b8bd6c3358e1</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;THX. I set your settings but It still doesn&amp;#39;t work. So, I guess that problem has to be elsewhere.
Check my update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81722?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 12:56:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec791ce3-17a6-4e85-a578-d0f8231944f6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The key is to update the BOOTLOADER_REGION_START and BOOTLOADER_SETTINGS_ADDRESS defintions as well as the linker options, which you have done already. However, the addresses needs to be page aligned (0x400), so BOOTLOADER_REGION_START should  be  0x1C000 or 0x1C400.., and the  BOOTLOADER_SETTINGS_ADDRESS must be set to 0x1FC00. In addition, you need to do a full chip erase before you can update the UICR registers. You can do that by clicking the erase button in nrfgo studio.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81721?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 12:48:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f5ba775-86c6-4303-9b69-3dc6fe37767f</guid><dc:creator>Jackxl</dc:creator><description>&lt;p&gt;I don&amp;#39;t understand. That thread is diferent. I know that I have to reduce IROM Start, but what address is still right. I have expected that my new settings is right, but it isn&amp;#39;t. How I can erase all from custom board by nrf51422 DK? I erase all by nRFgo Studio but I am not sure, that it works.&lt;/p&gt;
&lt;p&gt;My new settings :
#define BOOTLOADER_REGION_START         0x1C200//0x0003C000&lt;br /&gt;
#define BOOTLOADER_SETTINGS_ADDRESS     0x0001FE00//0x0003FC00&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader memory settings for 51822xxAB</title><link>https://devzone.nordicsemi.com/thread/81707?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 12:19:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42e568f0-e7c6-4808-ac6e-2ca1a5997061</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please refer to this &lt;a href="https://devzone.nordicsemi.com/question/18039/bootloader-debugging/"&gt;thread&lt;/a&gt;, it explains how you can change the flash layout for the bootloader.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 30/3&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Everything below 0x20002000 is reserved for the softdevice&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8741.linker.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;As a side note, if you change the device type from xxAC to xxAB, ensure that you are including the config headers located in \bootloader\config and \bootloader\config\dfu_dual_bank_ble_pca10028.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>