<?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>Linker Placement (RAM_START and RAM_SIZE) in SES 3.34: how to modify?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33898/linker-placement-ram_start-and-ram_size-in-ses-3-34-how-to-modify</link><description>I&amp;#39;m following the Custom BLE Service Example , and using: 
 
 Segger Embedded Studio Release 3.34a 
 macOS 10.13.4 (aka High Sierra) 
 nRF52 DK (PCA10040, nRF52832) 
 nRF5_SDK_15.0.0_a53641a 
 
 I downloaded the git repository verbatim and the project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 May 2018 08:56:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33898/linker-placement-ram_start-and-ram_size-in-ses-3-34-how-to-modify" /><item><title>RE: Linker Placement (RAM_START and RAM_SIZE) in SES 3.34: how to modify?</title><link>https://devzone.nordicsemi.com/thread/131319?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 08:56:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc8f00c6-0a89-46a0-bf29-411354bb7f79</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;FDS will use the last two pages in flash memory to store data and your application linker script is configured to use the entire flash area above the SoftDevice, i.e.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; FLASH (rx) : ORIGIN = 0x26000, LENGTH = 0x5a000&lt;/p&gt;
&lt;p&gt;so whenever you flash the application you should also clear the FDS pages.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linker Placement (RAM_START and RAM_SIZE) in SES 3.34: how to modify?</title><link>https://devzone.nordicsemi.com/thread/131318?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 08:53:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1326f77d-477f-4e35-969d-4145964e3202</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/fearless_5f00_fool"&gt;rdpoor&lt;/a&gt;: You have opened the options for the fds.c file and not the project itself (SES is a bit annoying regarding this). You have to select Project &amp;#39;ble_app_template_pca10040_s132&amp;#39; in the Project explorer and then click&amp;nbsp;Project =&amp;gt; Edit Options... or just right-click on&amp;nbsp;&amp;nbsp;Project &amp;#39;ble_app_template_pca10040_s132&amp;#39; in the Project explorer and then&amp;nbsp;select&amp;nbsp;Edit Options...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linker Placement (RAM_START and RAM_SIZE) in SES 3.34: how to modify?</title><link>https://devzone.nordicsemi.com/thread/131270?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 22:04:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f63453e6-c04d-4434-a11f-9875774566c0</guid><dc:creator>rdpoor</dc:creator><description>&lt;p&gt;I believe I fixed the problem, even if I don&amp;#39;t completely understand why:&lt;/p&gt;
&lt;p&gt;Short form: I erased the part and restarted.&amp;nbsp; Works.&lt;/p&gt;
&lt;p&gt;Details:&lt;/p&gt;
&lt;p&gt;I noticed that the system was looking for two or more free pages in `pages_init()`, but the call to `page_is_erased()` was returning false.&amp;nbsp; (I don&amp;#39;t know what was written there...).&amp;nbsp; So in the Target menu item, I selected &amp;#39;Erase All&amp;#39; and re-loaded the program.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This time it ran without error.&lt;/p&gt;
&lt;p&gt;Lingering question: Is there a reason the pages in question aren&amp;#39;t getting initialized?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linker Placement (RAM_START and RAM_SIZE) in SES 3.34: how to modify?</title><link>https://devzone.nordicsemi.com/thread/131266?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 20:45:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f62df31-0196-4057-a907-849eeb110922</guid><dc:creator>rdpoor</dc:creator><description>&lt;p&gt;For completeness, here is a screenshot of SES just after it got the error. It has just returned from a call to `pages_init()`, and `init_opts` has a value of NO_PAGES.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2018_2D00_05_2D00_07-at-13.21.40.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linker Placement (RAM_START and RAM_SIZE) in SES 3.34: how to modify?</title><link>https://devzone.nordicsemi.com/thread/131265?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 20:29:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e624c95a-74c3-4fe0-a24b-da414f030164</guid><dc:creator>rdpoor</dc:creator><description>&lt;p&gt;Hello Bj&amp;oslash;rn!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the screenshot of the window I get by clicking Project =&amp;gt; Edit Options...&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2018_2D00_05_2D00_07-at-13.22.20.png" /&gt;&lt;/p&gt;
&lt;p&gt;And&amp;nbsp;the contents of ble_pp_template_gcc_nfr52.ld are as follows:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* Linker script to configure memory regions. */

SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)

MEMORY
{
  FLASH (rx) : ORIGIN = 0x26000, LENGTH = 0x5a000
  RAM (rwx) :  ORIGIN = 0x20002220, LENGTH = 0xdde0
}

SECTIONS
{
}

SECTIONS
{
  . = ALIGN(4);
  .mem_section_dummy_ram :
  {
  }
  .log_dynamic_data :
  {
    PROVIDE(__start_log_dynamic_data = .);
    KEEP(*(SORT(.log_dynamic_data*)))
    PROVIDE(__stop_log_dynamic_data = .);
  } &amp;gt; RAM
  .fs_data :
  {
    PROVIDE(__start_fs_data = .);
    KEEP(*(.fs_data))
    PROVIDE(__stop_fs_data = .);
  } &amp;gt; RAM
  .cli_sorted_cmd_ptrs :
  {
    PROVIDE(__start_cli_sorted_cmd_ptrs = .);
    KEEP(*(.cli_sorted_cmd_ptrs))
    PROVIDE(__stop_cli_sorted_cmd_ptrs = .);
  } &amp;gt; RAM

} INSERT AFTER .data;

SECTIONS
{
  .mem_section_dummy_rom :
  {
  }
  .sdh_soc_observers :
  {
    PROVIDE(__start_sdh_soc_observers = .);
    KEEP(*(SORT(.sdh_soc_observers*)))
    PROVIDE(__stop_sdh_soc_observers = .);
  } &amp;gt; FLASH
  .pwr_mgmt_data :
  {
    PROVIDE(__start_pwr_mgmt_data = .);
    KEEP(*(SORT(.pwr_mgmt_data*)))
    PROVIDE(__stop_pwr_mgmt_data = .);
  } &amp;gt; FLASH
  .sdh_ble_observers :
  {
    PROVIDE(__start_sdh_ble_observers = .);
    KEEP(*(SORT(.sdh_ble_observers*)))
    PROVIDE(__stop_sdh_ble_observers = .);
  } &amp;gt; FLASH
  .log_const_data :
  {
    PROVIDE(__start_log_const_data = .);
    KEEP(*(SORT(.log_const_data*)))
    PROVIDE(__stop_log_const_data = .);
  } &amp;gt; FLASH
    .nrf_balloc :
  {
    PROVIDE(__start_nrf_balloc = .);
    KEEP(*(.nrf_balloc))
    PROVIDE(__stop_nrf_balloc = .);
  } &amp;gt; FLASH
  .sdh_state_observers :
  {
    PROVIDE(__start_sdh_state_observers = .);
    KEEP(*(SORT(.sdh_state_observers*)))
    PROVIDE(__stop_sdh_state_observers = .);
  } &amp;gt; FLASH
  .sdh_stack_observers :
  {
    PROVIDE(__start_sdh_stack_observers = .);
    KEEP(*(SORT(.sdh_stack_observers*)))
    PROVIDE(__stop_sdh_stack_observers = .);
  } &amp;gt; FLASH
  .sdh_req_observers :
  {
    PROVIDE(__start_sdh_req_observers = .);
    KEEP(*(SORT(.sdh_req_observers*)))
    PROVIDE(__stop_sdh_req_observers = .);
  } &amp;gt; FLASH
    .nrf_queue :
  {
    PROVIDE(__start_nrf_queue = .);
    KEEP(*(.nrf_queue))
    PROVIDE(__stop_nrf_queue = .);
  } &amp;gt; FLASH
    .cli_command :
  {
    PROVIDE(__start_cli_command = .);
    KEEP(*(.cli_command))
    PROVIDE(__stop_cli_command = .);
  } &amp;gt; FLASH
  .crypto_data :
  {
    PROVIDE(__start_crypto_data = .);
    KEEP(*(SORT(.crypto_data*)))
    PROVIDE(__stop_crypto_data = .);
  } &amp;gt; FLASH

} INSERT AFTER .text

INCLUDE &amp;quot;nrf_common.ld&amp;quot;
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linker Placement (RAM_START and RAM_SIZE) in SES 3.34: how to modify?</title><link>https://devzone.nordicsemi.com/thread/130585?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 13:28:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fade254a-3037-4917-b09a-f32bb43108fd</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/fearless_5f00_fool"&gt;rdpoor&lt;/a&gt;:&amp;nbsp;The&amp;nbsp;custom_ble_service_example should run without any issues on the nRF52832. There should be a Linker subsection &lt;strong&gt;under&lt;/strong&gt; the Code section, if not, then please upload a screenshot of the Options window.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you also attach the&amp;nbsp;ble_app_template_gcc_nrf52.ld (linker script) file found in custom_ble_service_example-master\pca10040\s132\armgcc ?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linker Placement (RAM_START and RAM_SIZE) in SES 3.34: how to modify?</title><link>https://devzone.nordicsemi.com/thread/130373?ContentTypeID=1</link><pubDate>Tue, 01 May 2018 10:14:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6b2f898-d923-49a9-8105-6b6ff5fac086</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Just try to play a bit with LENGTH parameter of the flash in the linker script.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linker Placement (RAM_START and RAM_SIZE) in SES 3.34: how to modify?</title><link>https://devzone.nordicsemi.com/thread/130367?ContentTypeID=1</link><pubDate>Tue, 01 May 2018 09:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:667110a3-c55a-4d23-8131-6580f0a8fc47</guid><dc:creator>rdpoor</dc:creator><description>&lt;p&gt;Thanks for the clarification.&amp;nbsp; Is there a fix?&amp;nbsp; Or are you saying (indirectly) that the&amp;nbsp;&lt;a href="https://github.com/bjornspockeli/custom_ble_service_example"&gt;https://github.com/bjornspockeli/custom_ble_service_example&lt;/a&gt;&amp;nbsp;example won&amp;#39;t run on the&amp;nbsp;nRF52832?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linker Placement (RAM_START and RAM_SIZE) in SES 3.34: how to modify?</title><link>https://devzone.nordicsemi.com/thread/130193?ContentTypeID=1</link><pubDate>Sun, 29 Apr 2018 11:11:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:054dfc58-4f45-47ee-8ff8-ed3466c90ed6</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;FDS_ERR_NO_PAGES has nothing to do with RAM, its about your FLASH memory settings. Basically there is not enough free space between your app area and top-of-flash/bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>