<?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>&amp;#39;UNPLACED SECTIONS&amp;#39; issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24904/unplaced-sections-issue---segger-embedded-studio</link><description>Hello, 
 I am trying to run a simple ble_app_hrs example from the SDK v12, but I am getting the same error as in this post devzone.nordicsemi.com/.../ 
 Building ‘ble_app_hrs_pca10040_s132’ from solution ‘ble_app_hrs_pca10040_s132’ in configuration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Jun 2018 09:31:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24904/unplaced-sections-issue---segger-embedded-studio" /><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/137225?ContentTypeID=1</link><pubDate>Fri, 22 Jun 2018 09:31:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a539792-b044-40ac-9761-19d0e3b0e9db</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;We added support for SES from SDK14.1, and you should use the native SES projects instead of using the import function when using SDK 14.1 or later.&lt;/p&gt;
&lt;p&gt;However, if you still want to import a project and face some issues, I would suggest that you create a new thread here on devzone, explaining your approach and issues a bit closer.&lt;/p&gt;
&lt;p&gt;Best regards.&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: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/137113?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 13:40:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5126ca92-dec3-4356-bd2b-1437912ed0e1</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;I am getting the same issue in SDK v15.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98082?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 10:26:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61895e51-f931-4b1b-8983-33025551df33</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Jan. To avoid any more confusion, I have added the files you can use in my original answer. Please try to use both of those files, and please open the flash_placement.xml inside SES to verify that the content is the same as in the file I&amp;#39;ve added. The rest of your settings should be fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98083?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 08:44:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:575ca312-bcb4-4be4-b401-e05bf501370e</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;Hi Joakim,
I am quite sure that the flash_placement content is as stated in the blogpost for SDK 12 since I copied it from there. Anyway I will double check.
So to be sure that I am doing it correctly.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Use the thumb_crt0.s from the blogpost under SDK 14 and add fs_data as mentioned in the blogpost.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;ldr r0, =&lt;strong&gt;fs_data_load_start&lt;/strong&gt;
ldr r1, =&lt;strong&gt;fs_data_start&lt;/strong&gt;
ldr r2, =&lt;strong&gt;fs_data_end&lt;/strong&gt;
bl memory_copy&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;
&lt;p&gt;Change the content of the flash_placement.xml file as stated in the blogpost under SDK 12.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add the FLASH AND RAM settings to the following:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;FLASH_START=0x1F000&lt;/p&gt;
&lt;p&gt;SRAM_START=0x20002C38&lt;/p&gt;
&lt;ol start="4"&gt;
&lt;li&gt;
&lt;p&gt;Do I also need to add FLASH_SIZE and SRAM_SIZE?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Change/add other settings mentioned in the blogpost&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Anything else missing?&lt;/p&gt;
&lt;p&gt;Best regards,
Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98081?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 06:41:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:564ae3f7-8a84-4305-84e0-4b714e0d8995</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi, your error does seem to be caused by your flash_placement.xml file not being correct. Sometimes SES will overwrite the content of the file, instead of using the content.&lt;br /&gt;
Try opening the flash_placement.xml file inside SES and make sure that the content is what it should be. You can find it in the Project Explorer -&amp;gt; System Files.&lt;br /&gt;
Using the files that are made for SDK 14 should not make a difference, and they should work (They are the ones I&amp;#39;m using).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98080?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 19:44:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf50a135-5eb2-4767-a9d0-bae50ba76eea</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;Hi Joakim,
I have tried to download the pre-compiled hex file and that works fine. Then I tried to replace the original thumb_crt0.s with the one found in the blogpost (though it seems to be for SDK 14 and I am using SDK 12). When I replace it I receive the following build errors:&lt;/p&gt;
&lt;p&gt;Linking ble_app_hrs_pca10040_s132.elf
Output/ble_app_hrs_pca10040_s132 nrf52832_xxaa/Obj/thumb_crt0.o: In function memory_set:
undefined reference to _start_nrf_sections
undefined reference to _start_nrf_sections_run
undefined reference to _end_nrf_sections_run&lt;/p&gt;
&lt;p&gt;I did add the following lines to the new thumb_crt0.s as stated in the blogpost:&lt;/p&gt;
&lt;p&gt;ldr r0, =&lt;strong&gt;fs_data_load_start&lt;/strong&gt;
ldr r1, =&lt;strong&gt;fs_data_start&lt;/strong&gt;
ldr r2, =&lt;strong&gt;fs_data_end&lt;/strong&gt;
bl memory_copy&lt;/p&gt;
&lt;p&gt;So downloading and replacing it doesn&amp;#39;t work. My FLASH and SRAM settings are:
FLASH_START=0x1F000&lt;br /&gt;
FLASH_SIZE=0x65000
SRAM_START=0x20002C38
SRAM_SIZE=0x8000&lt;/p&gt;
&lt;p&gt;BR.
Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98075?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 12:01:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c4334e0-814c-439a-95c1-83e8b5160dea</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Yes, there is only one &lt;code&gt;thumb_crt0.s&lt;/code&gt; file. That lies in the &lt;code&gt;SES_installation_folder/source&lt;/code&gt;. The changes that needs to be made is explained in the blogpost i referred to in my original answer. There is also a &lt;code&gt;thumb_crt0.s&lt;/code&gt; file ready for download in the blog. You can simply download and replace it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98077?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 11:48:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:645eb634-12a8-4bf4-ab26-ba7eafa34180</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;Hi Joakim. So is there only one thumb_crt0.s file associated with the SES installation or one for each project?. What changes must be made to the file?
Br.
Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98074?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 09:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c2539aa-2470-4665-ba58-4ffe3bb2cea9</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Now I think I know the cause of your problems. I&amp;#39;m afrad that the thumb_crt0.s file needs to be modified to make the example work. If I remove the changes I made to my own file, my device stops advertising as well. You need to find a way to modify the file, rebuild the example and flash it to your device. Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98079?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 07:35:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97c0c634-1698-40cb-8a97-0d12cdb53fff</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;As mentioned I followed the blog, but the only part I did not do was to add/change the thumb_crt0.s file as mentioned in the blog.
I only added the flash_placement.xml file for SDK 12.2.
Best regards,
Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98078?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 07:30:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aafdaaac-75e9-4d74-9574-b0b45caaf34a</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;Hi Joakim, I have not made any changes to the example code. I will try the precompiled hec file tonight.
Let me know what you find.
Best regards,
Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98076?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 06:45:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:642b415f-b87a-492d-956e-f3b2a26c2b24</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi again Jan. I will take a look at your case and get back to you as soon as possible. I will try to see if I can reproduce what you are experiencing. Did you make any modifications at all to the example? Could you also try to flash the precompiled hex-file and see if that works? You can find it in &lt;code&gt;&amp;lt;SDK_Installfolder&amp;gt;/examples/ble_peripheral/ble_app_hrs/hex/ble_app_hrs_pca10040_s132.hex&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98085?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 20:04:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d004ab6a-c424-4e0c-8018-b496ec62b819</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;Could it be my flash and ram settings. I haven&amp;#39;t added FLASH_SIZE and SRAM_SIZE, only FLASH_START and SRAM_START. What should the sizes be..?
Best regards,
Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98084?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 19:52:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48a9cb91-ad05-444b-a5cc-4431b5e807e3</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;I have now tried to erase all and program then softdevice from nRFgostdio. Then I choose Build and Debug from Segger Embedded Studio. The debugger starts in Main(). Then I Step over until I reach ble_stack_init(). When I try to step over this function nothing happens and when I then pause I end up with a Hardfault_Handler in the ses_nrf52_startup.s file.
Does that give you any hint to why it is not working on my side..?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98073?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 19:38:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14d3712f-9087-4bba-ac4a-d5dce686f1dd</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;Hi Joakim, I have added the Softdevice hex file under &amp;#39;Additional Load File[0] from the following location nRF5_SDK_12.2.0_f012efa/components/softdevice/s132/hex/s132_nrf52_3.0.0_softdevice.hex. But that was already added. So the only change I have tried now is to change flash and ram settings from
FLASH_START=0x1F000&lt;br /&gt;
SRAM_START=0x20002000&lt;/p&gt;
&lt;p&gt;to
FLASH_START=0x1F000&lt;br /&gt;
SRAM_START=0x20002C38&lt;/p&gt;
&lt;p&gt;BUT it makes no difference. The LED is not blinking and the device is not visible in the HRM app.&lt;/p&gt;
&lt;p&gt;Best regards,
Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98071?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 08:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95abb3eb-85a4-44c0-bb95-8f8f6a6a7e49</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Jan L. I did get the ble_app_hrs example to work. I can see two possible reasons that your device is not advertising.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You forgot to add the Softdevice to be flashed with the example.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You need to change the flash and sram settings. Try changing them to;&lt;/p&gt;
&lt;p&gt;FLASH_START=0x1F000&lt;br /&gt;
SRAM_START=0x20002C38&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Let me know how if any of this helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98072?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2017 14:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0ba8819-a921-4236-8905-40fc7530cefb</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;Hi Bjørn. I am not sure how I can Build and Run the example from nRF Go Studio. I have only used that for programming hex files (softdevice and application) and erasing the chip etc.
It would be very helpful if you could ask Joakim how he got the ble_app_hrs up and running on SDK 12.2. Let me know when you know more. Thanks.
Best regards,
Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98070?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2017 11:36:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2132650-01ce-4cb3-a70b-7c7caf842733</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Jan. What happens if you program the code as a hex file using nrfgostudio? Does the ble_app_hrs example work then? Does LED1 flash (board is advertising)?&lt;/p&gt;
&lt;p&gt;I believe Joakim has gotten the ble_app_hrs example working on SDK 12.2. I will talk to him &amp;amp; ask if his board advertises or not.&lt;/p&gt;
&lt;p&gt;Kind 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: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98069?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 20:30:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d9a4a41-7cba-4eae-8d21-5c2a1bca56e2</guid><dc:creator>Jan Lundskov</dc:creator><description>&lt;p&gt;Hi Joakim,
Thanks for your reply. I have now followed the blog post except the thumb_crt0.s part. I followed the post and added the flash_placement.xml file for SDK 12. I added the file using &amp;#39;Import Section Placement&amp;#39; under Project. I started with the &amp;#39;ble_app_hrs example&amp;#39; and I am able to build and run the code, but LED1 is not flashing and the &amp;#39;peripheral&amp;#39; is not visible in the HRM page of the nRF Toolbox App, i.e not advertising. If I press Build and Debug it jumps to the start of Main() as expected, so it seems ok.
I then tried the &amp;#39;ble_app_beacon&amp;#39; example following the same procedure. In this case I do see a &amp;#39;beacon&amp;#39; on the nRF Connect App, so that seems to work.
What can I be missing since the ble_app_hrs example is not advertising when everything builds and runs fine..?
Thanks in advance.
Best regards,
Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'UNPLACED SECTIONS' issue - Segger Embedded Studio</title><link>https://devzone.nordicsemi.com/thread/98068?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 14:24:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3ece1f4-6097-4d13-8c3a-ca1afdab28eb</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Jan L!&lt;/p&gt;
&lt;p&gt;Did you follow &lt;a href="https://devzone.nordicsemi.com/blogs/1032/segger-embedded-studio-a-cross-platform-ide/"&gt;this blog-post&lt;/a&gt; when testing Segger Embedded Studio?&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The flash_placement.xml file you can just generate using a text editor. Simply create a new file and rename it
to flash_placement.xml. This file should be in your project folder. For example, if you are using the beacon example
for the nRF52 DK it should be in this folder:&lt;br /&gt;
&lt;code&gt;SDK_InstallFolder/examples/ble_peripheral/ble_app_beacon/pca_10040/s132/arm_no_packs.&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The correct content of this file is explained in the blog-post, as well as the devzone-case you referred to in your
question.&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;You should be able to modify the thumb_crt.s file, but you most probably will need administrator rights.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you haven&amp;#39;t done so already, I highly suggest that you take a look at the blog-post I have mentioned above.
Let me know if you have any more questions.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/thumb_5F00_crt0.s"&gt;thumb_crt0.s&lt;/a&gt;&lt;br /&gt;
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8816.flash_5F00_placement.xml"&gt;flash_placement.xml&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,
Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>