<?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>s130 2.0.0 ROM and RAM settings?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12637/s130-2-0-0-rom-and-ram-settings</link><description>Hi, 
 I am using a 128KB-rom 16KB-ram nrf51822 and trying to run blinky from SDK 11 with softdevice. 
 If I load nrf51 S130 1.0.0 softdevice, and use the following in my gcc compiling setting:
FLASH (rx) : ORIGIN = 0x1c000, LENGTH = 0x4000
RAM (rwx</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Sep 2016 11:50:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12637/s130-2-0-0-rom-and-ram-settings" /><item><title>RE: s130 2.0.0 ROM and RAM settings?</title><link>https://devzone.nordicsemi.com/thread/48006?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 11:50:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:621042ad-e8d3-45f5-977a-7ea0887b11ef</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Which chip revision is it? Check the build code (QFAAxx) and find the revision &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51/dita/nrf51/compatibility_matrix/nRF51822_ic_revision_overview.html?cp=3_0_1"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s130 2.0.0 ROM and RAM settings?</title><link>https://devzone.nordicsemi.com/thread/48008?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2016 22:52:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9def6995-9b68-4c88-ac00-4ea8bd47952b</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;The HRS example works using the pca10028 board for my generic device (I&amp;#39;m testing on a Waveshare BLE400 with a QFAA  based module plugged in)&lt;/p&gt;
&lt;p&gt;I copied  ble_app_hrs_gcc_nrf51.ld to ble_app_hrs_gcc_nrf51QFAA.ld&lt;/p&gt;
&lt;p&gt;I changed the MEMORY section&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;MEMORY
{
  FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x25000
  RAM (rwx) :  ORIGIN = 0x20002080, LENGTH = 0x1f80
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I also updated the Makefile&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf51422_xxac_s130: LINKER_SCRIPT=ble_app_hrs_gcc_nrf51.ld
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf51422_xxac_s130: LINKER_SCRIPT=ble_app_hrs_gcc_nrf51QFAA.ld
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So that the new linker file is used&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s130 2.0.0 ROM and RAM settings?</title><link>https://devzone.nordicsemi.com/thread/48011?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2016 13:32:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9257d01-9839-4bac-a27a-4e8dcb1adf67</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;It looks like we use Keil to generate the precompiled hex files.&lt;/p&gt;
&lt;p&gt;I was wrong in my last comment, the 4.5KB used in the application will include the stack used, so the hrs example use less than 16KB of RAM by default. Also if the stack overlaps with the heap, you will get an error from the compiler during linking, so this is not the problem.&lt;/p&gt;
&lt;p&gt;The difference between Keil and GCC is that GCC will place the stack at the top of the RAM (0x20004000 for 16KB ram) while Keil will place it after the heap (at SD ram size + app ram size + heap size + stack size) if heap is used, if not it will place it after application ram (heap is removed by keil if not used).&lt;/p&gt;
&lt;p&gt;Can you post the memory settings in the linker script so that I can confirm that it is correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s130 2.0.0 ROM and RAM settings?</title><link>https://devzone.nordicsemi.com/thread/48010?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 23:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faa365d2-daef-4f8b-8798-4b0da363cbfb</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;@Ole&lt;/p&gt;
&lt;p&gt;The strange thing, is that the precompiled Hex code in the SDK does work on the 16k device (QFAAH3)&lt;/p&gt;
&lt;p&gt;So assuming the Hex was compiled from the same source, the difference is only the compiler&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what compiler Nordic use to make the precompiled hex, I guess its IAR or possibly Keil&lt;/p&gt;
&lt;p&gt;I was going to try using the demo copy of Keil but I&amp;#39;d need to make a Keil project, so that would be one more unknown / variable in the mix.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s130 2.0.0 ROM and RAM settings?</title><link>https://devzone.nordicsemi.com/thread/48009?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 15:16:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28a317e6-1295-43d4-85a5-42dcafa41bcd</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Try changing the heap size to 0 in &lt;code&gt;arm_startup_nrf51.s&lt;/code&gt;. The SDK does not use heap (malloc/free), so if your application does not either you can safely set this to zero.&lt;/p&gt;
&lt;p&gt;The hrs example will use just over 8KB for the SoftDevice and about 4.5KB in the application. Adding this with the heap and stack size of 2KB you will end up at about 16.5KB which is too much.&lt;/p&gt;
&lt;p&gt;Also see &lt;a href="https://devzone.nordicsemi.com/tutorials/26/"&gt;this&lt;/a&gt; tutorial on RAM and ROM management on the nRF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s130 2.0.0 ROM and RAM settings?</title><link>https://devzone.nordicsemi.com/thread/48007?ContentTypeID=1</link><pubDate>Sat, 03 Sep 2016 03:21:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ab78085-46f3-4bd2-bd84-5a02fe00570d</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Has this issue been resolved ?&lt;/p&gt;
&lt;p&gt;I have a similar issue, I can only get the ble_beacon to compile and run on a 16k / 256k, nRF51822 QFAA&lt;/p&gt;
&lt;p&gt;If I try compiling the hrs example, it will only run on my QFAC 32k Ram evaluation board.&lt;/p&gt;
&lt;p&gt;But. reducing the Ram size in the linker file doesn&amp;#39;t seem to allow the hrs example to run.&lt;/p&gt;
&lt;p&gt;(My board has the 32khz osc, so the only variable in this seems to be the ram size)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s130 2.0.0 ROM and RAM settings?</title><link>https://devzone.nordicsemi.com/thread/48005?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2016 13:47:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bb4c451-8185-4298-83cf-6f673628eb43</guid><dc:creator>Brook Gebremedhin</dc:creator><description>&lt;p&gt;@olba ,
this issue of mine similar to this , could you have a look please ?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/76363/16-kb-ram-linker-file-configuration-no-external-crystal-on-the-board/?answer=76366#post-id-76366"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s130 2.0.0 ROM and RAM settings?</title><link>https://devzone.nordicsemi.com/thread/48004?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2016 09:33:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fbd5f40-c688-40a7-b1e5-2f475e90c1fc</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;ble_app_beacon from SDK 11 works with SoftDevice S130 v2.0.0 (release version). How do you see that the example loads the alpha version of the SoftDevice (assuming you are not using SDK 11 alpha version)?&lt;/p&gt;
&lt;p&gt;Do you have an external 32kHz crystal on your board? If not the example wont work out of the box. You should create your own boards file (similar to PCA10028.h or PCA20006.h) and if you are going to use internal 32kHz oscillator, change NRF_CLOCK_LFCLKSRC to use &lt;code&gt;.source = NRF_CLOCK_LF_SRC_RC&lt;/code&gt;. Also change rc_ctiv (RC calibration interval) and rc_temp_ctiv (RC temperature calibration interval) to your needs (you can read more about them in nrf_sdm.h). The LEDs and buttons pin definitions should also be changed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s130 2.0.0 ROM and RAM settings?</title><link>https://devzone.nordicsemi.com/thread/48003?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2016 16:22:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95655cbe-86da-43d9-ac57-bee7a35d824c</guid><dc:creator>gdou</dc:creator><description>&lt;p&gt;Thanks Ole - I am using this: NRF51822-QFAB-R7, on a custom PCB board. And I was able to make blinky work with both S130 1.0.0 and S130 2.0.0 now. However my ble_app_beacon still does not work on either of them.
I tried to use S130 2.0.0-7.alpha because in the SDK 11 ble_app_beacon example I see it loads this version of softdevice.
Does ble_app_beacon work with the release version of SD (S130 2.0.0)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: s130 2.0.0 ROM and RAM settings?</title><link>https://devzone.nordicsemi.com/thread/48002?ContentTypeID=1</link><pubDate>Fri, 18 Mar 2016 11:36:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:753d01ed-49b7-46a6-a6d0-abf60bd4c42d</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;The ROM and RAM settings looks correct. Which chip version are you using (which module are you using)? Did you reset the chip after programming?
ROM/RAM settings for S130 2.0.0-7.alpha is: ROM origin 0x1c000, RAM origin (minimum required memory): 0x1234. Why are you going to use the alpha version? I would strongly recommend using the release version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>