<?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>nRF51822_xxaa SDK12 S130 v2.0.1 IROM and IRAM settings</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21399/nrf51822_xxaa-sdk12-s130-v2-0-1-irom-and-iram-settings</link><description>We have a custom board with the nRF51822 xxaa chip on it. The board is completely functional and uses SDK8.0 and S110 as of now. We are porting the firmware to SDK12 and S130 SD. Following this blog [https://devzone.nordicsemi.com/blogs/723/rom-and-ram</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Apr 2017 12:46:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21399/nrf51822_xxaa-sdk12-s130-v2-0-1-irom-and-iram-settings" /><item><title>RE: nRF51822_xxaa SDK12 S130 v2.0.1 IROM and IRAM settings</title><link>https://devzone.nordicsemi.com/thread/83861?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 12:46:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46d497b1-af25-47fe-a6c9-648b2aee9288</guid><dc:creator>Sanjay Shreedharan</dc:creator><description>&lt;p&gt;That blog doesn&amp;#39;t explain how to integrate buttonless DFU into custom application. Anyways, I got it working. Thanks for your support!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822_xxaa SDK12 S130 v2.0.1 IROM and IRAM settings</title><link>https://devzone.nordicsemi.com/thread/83868?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 11:06:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f0bd566-2bf9-45bb-bec9-9a1ba729be02</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Great that you got it working! There is the blog post I linked to in my comment, the blog post is called &amp;quot;&lt;a href="https://devzone.nordicsemi.com/blogs/1085/getting-started-with-nordics-secure-dfu-bootloader/"&gt;Getting started with Nordic&amp;#39;s Secure DFU bootloader, a step by step guide&lt;/a&gt;&amp;quot;. If you have any questions regarding this, or run into any problems feel free to create a new question here on Devzone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822_xxaa SDK12 S130 v2.0.1 IROM and IRAM settings</title><link>https://devzone.nordicsemi.com/thread/83860?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 16:28:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3292559-2023-4f6f-9f00-c390c1f0ba37</guid><dc:creator>Sanjay Shreedharan</dc:creator><description>&lt;p&gt;Got it working. I was flashing the bootloader using the &amp;#39;LOAD&amp;#39; icon in Keil. Since Keil cannot directly write to the UICR registers, I had to use the nrfjprog command to flash the bootloader.&lt;/p&gt;
&lt;p&gt;Now that I want to integrate DFU into my custom application, is there a step-by-step guide or a blogpost on how to do this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822_xxaa SDK12 S130 v2.0.1 IROM and IRAM settings</title><link>https://devzone.nordicsemi.com/thread/83862?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 12:19:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b1d1109-5aa9-4f38-8a1f-8f3c00a0ede4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Did the L6406E error go away? If the only problem is that it don&amp;#39;t advertise, then try to follow the steps here:
&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v12.0.0%2Flib_bootloader.html&amp;amp;cp=4_0_2_3_4_0_0&amp;amp;anchor=lib_bootloader_programming"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also see the &amp;quot;Testing&amp;quot; steps &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/ble_sdk_app_dfu_bootloader.html?cp=4_0_2_4_3_1_4#ble_sdk_app_dfu_bootloader_test"&gt;here&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/blogs/1085/getting-started-with-nordics-secure-dfu-bootloader/"&gt;this blog post&lt;/a&gt; for more informaton about Secure DFU bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822_xxaa SDK12 S130 v2.0.1 IROM and IRAM settings</title><link>https://devzone.nordicsemi.com/thread/83870?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2017 08:03:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e374f7c-44f8-4adf-866f-a4017e84af25</guid><dc:creator>Sanjay Shreedharan</dc:creator><description>&lt;p&gt;Tried those RAM settings already on the custom board and it doesn&amp;#39;t start advertising.
I also tried using the original IRAM and IROM settings on a PCA10028 and it starts advertising as &amp;quot;DfuTarg&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822_xxaa SDK12 S130 v2.0.1 IROM and IRAM settings</title><link>https://devzone.nordicsemi.com/thread/83869?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2017 07:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c368767-7510-4fa0-a0be-9d798f6d1001</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;According to &lt;a href="https://devzone.nordicsemi.com/question/101293/dfu-issue-on-custom-board/"&gt;this devzone answer&lt;/a&gt;, you can for the bootloader_secure example for nRF51 16kB try to set the RAM settings to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;RAM start: 0x200025E0
RAM size/length: 0x1A20
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822_xxaa SDK12 S130 v2.0.1 IROM and IRAM settings</title><link>https://devzone.nordicsemi.com/thread/83865?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2017 18:09:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:788f9997-7f1b-4b86-a9db-9de646fcd532</guid><dc:creator>Sanjay Shreedharan</dc:creator><description>&lt;p&gt;Continuing the errors due to lack of characters in the previous comment.&lt;/p&gt;
&lt;p&gt;._build\nrf51422_xxac_s130.axf: Error: L6407E: Sections of aggregate size 0x9c bytes could not fit into .ANY selector(s).&lt;/p&gt;
&lt;p&gt;Not enough information to list image symbols.&lt;/p&gt;
&lt;p&gt;Not enough information to list the image map.&lt;/p&gt;
&lt;p&gt;Finished: 2 information, 0 warning and 13 error messages.&lt;/p&gt;
&lt;p&gt;&amp;quot;._build\nrf51422_xxac_s130.axf&amp;quot; - 13 Error(s), 0 Warning(s).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822_xxaa SDK12 S130 v2.0.1 IROM and IRAM settings</title><link>https://devzone.nordicsemi.com/thread/83864?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2017 18:08:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88dd880d-d3ff-4961-ba8c-094b4df77f66</guid><dc:creator>Sanjay Shreedharan</dc:creator><description>&lt;p&gt;Continuing the errors due to lack of characters in the previous comment.&lt;/p&gt;
&lt;p&gt;._build\nrf51422_xxac_s130.axf: Error: L6406E: No space in execution regions with .ANY selector matching app_util_platform.o(.data).&lt;/p&gt;
&lt;p&gt;._build\nrf51422_xxac_s130.axf: Error: L6406E: No space in execution regions with .ANY selector matching nrf_dfu_settings.o(.data).&lt;/p&gt;
&lt;p&gt;._build\nrf51422_xxac_s130.axf: Error: L6406E: No space in execution regions with .ANY selector matching nrf_dfu_flash.o(.data).&lt;/p&gt;
&lt;p&gt;._build\nrf51422_xxac_s130.axf: Error: L6406E: No space in execution regions with .ANY selector matching system_nrf51.o(.data).&lt;/p&gt;
&lt;p&gt;._build\nrf51422_xxac_s130.axf: Error: L6406E: No space in execution regions with .ANY selector matching fstorage.o(.data).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822_xxaa SDK12 S130 v2.0.1 IROM and IRAM settings</title><link>https://devzone.nordicsemi.com/thread/83863?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2017 18:07:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:923f004e-a704-49a4-911a-c3629301e9dd</guid><dc:creator>Sanjay Shreedharan</dc:creator><description>&lt;p&gt;Continuing the errors due to lack of characters in the previous comment.&lt;/p&gt;
&lt;p&gt;._build\nrf51422_xxac_s130.axf: Error: L6406E: No space in execution regions with .ANY selector matching softdevice_handler.o(.data).&lt;/p&gt;
&lt;p&gt;._build\nrf51422_xxac_s130.axf: Error: L6406E: No space in execution regions with .ANY selector matching nrf_dfu_flash.o(fs_data).&lt;/p&gt;
&lt;p&gt;._build\nrf51422_xxac_s130.axf: Error: L6406E: No space in execution regions with .ANY selector matching app_scheduler.o(.data).&lt;/p&gt;
&lt;p&gt;._build\nrf51422_xxac_s130.axf: Error: L6406E: No space in execution regions with .ANY selector matching nrf_ble_dfu.o(.data).&lt;/p&gt;
&lt;p&gt;._build\nrf51422_xxac_s130.axf: Error: L6406E: No space in execution regions with .ANY selector matching nrf_drv_rng.o(.bss).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822_xxaa SDK12 S130 v2.0.1 IROM and IRAM settings</title><link>https://devzone.nordicsemi.com/thread/83871?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2017 18:06:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae84379b-83f8-492c-ba01-40d4807d16c9</guid><dc:creator>Sanjay Shreedharan</dc:creator><description>&lt;p&gt;That was a quick response! And thank you it worked. I tried to compile other applications like ble_app_proximity and the values of IROM and IRAM [IRAM base - 0x20001FE8 IRAM size(16 kB RAM) - 0x2018 and IROM base - 0x1B000 IROM size(256 kB Flash) - 0x25000] works perfectly fine. But, when I try to compile bootloader_secure for doing DFU with the following IROM and IRAM values, I get errors.
IROM1 Start - 0x3AC00, Size - 0x5000
IRAM1 Start - 0x20002C00, Size - 0x1380&lt;/p&gt;
&lt;p&gt;The errors are as follows:&lt;/p&gt;
&lt;p&gt;linking...
._build\nrf51422_xxac_s130.axf: Error: L6406E: No space in execution regions with .ANY selector matching ble_conn_params.o(.bss).&lt;/p&gt;
&lt;p&gt;._build\nrf51422_xxac_s130.axf: Error: L6406E: No space in execution regions with .ANY selector matching ble_conn_params.o(.data).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822_xxaa SDK12 S130 v2.0.1 IROM and IRAM settings</title><link>https://devzone.nordicsemi.com/thread/83867?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2017 12:59:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45c530d2-fc56-4894-a4f3-c193818b59fc</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;For the experimental_ble_app_blinky example the softdevice uses 1FE8(8168 bytes) RAM and the application with logging enabled uses 3920bytes (ZI-data + RW-data). That’s 11,8 kB RAM, so you have sufficient RAM with the nRF51 16kB RAM device for this example.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Do you have an external LF crystal(32 kHz) on your custom board?
If not use the RC oscillator instead&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_CLOCK_LFCLKSRC      {.source        = NRF_CLOCK_LF_SRC_RC,            \
                                 .rc_ctiv       = 16,                                \
                                 .rc_temp_ctiv  = 2,                                \
                                 .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822_xxaa SDK12 S130 v2.0.1 IROM and IRAM settings</title><link>https://devzone.nordicsemi.com/thread/83866?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2017 12:35:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a8f6c98-2407-4904-85c3-942a61a5d89e</guid><dc:creator>Sanjay Shreedharan</dc:creator><description>&lt;p&gt;I tried the experimental_ble_app_blinky in SDK12 without making any changes to the code with the following values.
IRAM base - 0x20002000 IRAM size(16 kB RAM) - 0x2000
These values didn&amp;#39;t get it working. When I tried reducing it to IRAM base - 0x20001FE8 IRAM size(16 kB RAM) - 0x2018, then as well I don&amp;#39;t see it working.
Is the 16KB RAM on nRF51822_xxAA version sufficient to support SDK12 or SDK12 needs a minimum of 32KB RAM?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822_xxaa SDK12 S130 v2.0.1 IROM and IRAM settings</title><link>https://devzone.nordicsemi.com/thread/83859?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2017 09:22:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd1aed55-4442-4072-b82c-2d750c6f0214</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The IROM number is correct for S130 V2.0.1, The IRAM varies depending on how you configure the SoftDevice, how many services/characteristics you add, etc. For experimental_ble_app_blinky the &lt;strong&gt;default IRAM base should be&lt;/strong&gt; &lt;code&gt;0x20001fe8&lt;/code&gt; in SDK 12.1, if you add something extra to the default example, you need to increase the number.&lt;/p&gt;
&lt;p&gt;Regarding you last question,&lt;code&gt;0x20001870&lt;/code&gt; did not work because this is not enough RAM for the SoftDevice to work, but when you increased it to 0x20002000 this was enough for the SoftDevice. If you enable logging in SDK 12.1 (&lt;code&gt;NRF_LOG_ENABLED&lt;/code&gt; set to 1 in sdk_config.h) the function softdevice_enable() will print the correct RAM settings if you have not allocated enough RAM to the SoftDevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>