<?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>Section `_RTT_SECTION_NAME&amp;#39; can&amp;#39;t be allocated in segment 2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118620/section-_rtt_section_name-can-t-be-allocated-in-segment-2</link><description>I&amp;#39;m getting the following notice/warning/error when building my application (nrfsdk 2.9.0 w/ sysbuild, nrf9151dk board): 
 /usr/local/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-objcopy: /Users/kon/Workshop/GitHub/AgX/agmuster-workspace/agmuster</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 13 Apr 2025 06:46:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118620/section-_rtt_section_name-can-t-be-allocated-in-segment-2" /><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/531594?ContentTypeID=1</link><pubDate>Sun, 13 Apr 2025 06:46:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb29a8a4-aed5-4293-b00e-c5abba96d438</guid><dc:creator>Aditya Gandhi</dc:creator><description>&lt;p&gt;This helped!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/525935?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 10:35:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddb4c468-8a12-4e85-99aa-b6590b5c8283</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The issue has been reported internally but there has not been any updates. To get rid of the warning for now you can select&amp;nbsp;&lt;span&gt;CONFIG_SEGGER_RTT_SECTION_NONE.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/525354?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 19:21:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b8f4b1b-e293-4132-a079-aa2ca41b32ce</guid><dc:creator>PuffinEgg</dc:creator><description>&lt;p&gt;Hi, are there any updates to the investigations? We are looking to update the SDK to 2.9.0 and this is the only remaining issue that is preventing us for making the jump due to stability concerns.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/522507?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 16:30:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83e4bef5-e1c8-4bcf-9c9a-7034e2db11a6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span&gt;The&amp;nbsp;&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/commit/711ed082a2c361311a06b2c76c604f7e03fa8ddf"&gt;CONFIG_SEGGER_RTT_SECTION_CUSTOM&lt;/a&gt;&amp;nbsp;config setting was added fairly recently to allow the RTT buffer to be placed in a specific RAM location shared between multiple images such as bootloader and app (see commit message for more details). I don&amp;#39;t think this&amp;nbsp;should have any impact on RTT in your case since you have RAM split between secure and non-secure regions (bootloader and app will not share the same RAM start address anyway).&lt;/span&gt;&lt;/p&gt;
[quote user="taspon98"]&lt;p&gt;I have been experimenting with&amp;nbsp;zephyr&amp;#39;s&amp;nbsp;ble peripheral&amp;nbsp;example (zephyr/samples/bluetooth/peripheral) using my nRF52dk board and setting&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BUILD_OUTPUT_STRIPPED=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;in the sample&amp;#39;s prj.conf with 2.9.0 SDK and toolchain will cause the build&amp;nbsp;warning&amp;nbsp;to appear.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;Thanks. This is an interesting clue. I will investigate further and check internally if anyone else has encountered this.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/522307?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 21:15:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae3a8217-ecb4-4d7f-be8d-7b95bdad7fb3</guid><dc:creator>PuffinEgg</dc:creator><description>&lt;p&gt;I have been experimenting with&amp;nbsp;zephyr&amp;#39;s&amp;nbsp;ble peripheral&amp;nbsp;example (zephyr/samples/bluetooth/peripheral) using my nRF52dk board and setting&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BUILD_OUTPUT_STRIPPED=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;in the sample&amp;#39;s prj.conf with 2.9.0 SDK and toolchain will cause the build&amp;nbsp;warning&amp;nbsp;to appear.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/522261?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 15:18:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:431a7d5e-bad6-40c1-aa5c-7815dd6b8771</guid><dc:creator>Konstantin Klitenik</dc:creator><description>&lt;p&gt;How does that impact RTT functionality?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/522228?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 14:14:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e90760c0-6801-4609-842f-51eb677254f3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I did not see any changes to the placement of the .&lt;span&gt;noinit when I was comparing the linker scripts. I would recommend using CONFIG_SEGGER_RTT_SECTION_NONE for now.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/members/taspon98"&gt;PuffinEgg&lt;/a&gt;&amp;nbsp;, did you also have a minimal project you can share that will allow me to reproduce the warning without memfault?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/522217?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 13:58:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f89a865b-22ed-4268-a096-c2601ca730f9</guid><dc:creator>Konstantin Klitenik</dc:creator><description>&lt;p&gt;I wonder if this has something to do with conflicting .noinit sections. I know memfault creates a .noinit section for some things.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/521810?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 19:43:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c46ad986-7308-402d-a7a9-9be93215023b</guid><dc:creator>Konstantin Klitenik</dc:creator><description>&lt;p&gt;I know memfault also uses the .noinit section in RAM to store reboot reasons, etc. I wonder if those 2 conflict.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/521805?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 18:48:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e433f839-8f26-4a90-8d8d-2e49fad2e79c</guid><dc:creator>PuffinEgg</dc:creator><description>&lt;p&gt;I don&amp;#39;t seem to have Memfault enabled in my project.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_06-at-10.45.31_2F20_AM.png" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_06-at-10.45.52_2F20_AM.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/521800?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2025 17:22:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6714a414-0ad0-4cb3-9f1e-b8cd260afa11</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I was able to reproduce the warning thanks to the project you provided, but I have not been able to determine why. So far I&amp;rsquo;ve found that the error does not occur if I configure the RTT module to not use the named linker section (&lt;a href="https://github.com/nrfconnect/sdk-zephyr/commit/711ed082a2c361311a06b2c76c604f7e03fa8ddf"&gt;_RTT_SECTION_NAME&lt;/a&gt;) by selecting CONFIG_SEGGER_RTT_SECTION_NONE, or if I disable CONFIG_MEMFAULT. However, I don&amp;#39;t see why the warning goes away when memfault is disabled. I tried comparing the linker scripts and map files between these builds, but was unable to spot any relevant differences.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/taspon98"&gt;PuffinEgg&lt;/a&gt;&amp;nbsp;, could you please confirm if you are using Memfault in your project as well? I don&amp;#39;t believe&amp;nbsp;the issue is directly related to memfault, but would be good if we could rule out that possibility.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/521629?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 19:15:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdfd6799-35bb-4c69-92bf-3b90a6fe5f1a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I think it would be easiest if you could create a new private support ticket and upload your project folder as a zip file there. Just provide me the link to the case here so I can assign it to myself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/521625?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 18:46:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c96223df-04e8-4c73-8133-edf6f0d03967</guid><dc:creator>PuffinEgg</dc:creator><description>&lt;p&gt;I am also using the NCS toolchain 2.9.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/521622?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 18:23:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d37af0d7-54a8-4532-b67c-eaea4adc9311</guid><dc:creator>Konstantin Klitenik</dc:creator><description>&lt;p&gt;Mine looks similar.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_05-at-1.22.16_2F20_PM.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have a minimal example but our project is just getting started and it&amp;#39;s basically just initial setup. I can send you the repo if you let me know the best way to do that privately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/521618?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 18:16:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c80a4b80-19c4-46f4-b2e9-9a1edb9542bb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I thought the toolchain version might be relevant since the error was reported by objcopy, but I’m still unable to reproduce this warning using the same toolchain version. Have you managed to reproduce this warning with any of the SDK samples? Or are you able to provide a minimal version of your project that will allow me to reproduce&amp;nbsp;the warning? This would make it easier to troubleshoot and determine if it really is a problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here I&amp;#39;m building (with sysbuild) the peripheral_uart sample which has logging over RTT enabled by default:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1738779070642v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And not sure if it&amp;#39;s relevant, but the _RTT_SECTION_NAME linker section appears in segment 5 in my case:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1738779287481v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/521590?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 14:57:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4753e839-db6c-44b8-bd28-f716b4ba2998</guid><dc:creator>Konstantin Klitenik</dc:creator><description>&lt;p&gt;Also, we&amp;#39;re using sysbuild, again, not sure how much that matters.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/521589?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 14:54:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:332327f1-32f3-4911-9ff4-a00118152726</guid><dc:creator>Konstantin Klitenik</dc:creator><description>&lt;p&gt;Not sure how much this matters but I&amp;#39;m on Zephyr SDK 0.17.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/521586?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 14:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:162e97ff-5681-4d70-91ba-76468cd5db47</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Unfortunately, I have not been able to&amp;nbsp;reproduce this objcpy error on my end. I&amp;#39;m using the NCS toolchain v2.9.0 (Based on Zephyr SDK v0.16.8).&amp;nbsp;Have you been able to reproduce this with any of the SDK examples?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/taspon98"&gt;PuffinEgg&lt;/a&gt;&amp;nbsp;, are you also using the Zephyr SDK, or are you using the NCS toolchain?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Section `_RTT_SECTION_NAME' can't be allocated in segment 2</title><link>https://devzone.nordicsemi.com/thread/521405?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2025 19:00:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52cc4871-e359-46e2-a27a-e648e2183947</guid><dc:creator>PuffinEgg</dc:creator><description>&lt;p&gt;I am also running into this issue when migrating from 2.7.0 to 2.9.0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>