<?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 &amp;#39;.log_backends&amp;#39; will not fit in region ‘UNPLACED_SECTIONS’. (with flash_placement.xml)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89621/section-log_backends-will-not-fit-in-region-unplaced_sections-with-flash_placement-xml</link><description>Hi, 
 I encountered an error when I turned on NRF_LOG_BACKEND_RTT_ENABLED in a project: 
 &amp;quot;...section &amp;#39;.log_backends&amp;#39; will not fit in region ‘UNPLACED_SECTIONS’.&amp;quot; 
 &amp;quot;region &amp;#39; UNPLACED_SECTIONS &amp;#39; overflowed by 16 bytes.&amp;quot; 
 Here is the flash_placement.xml</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Jul 2022 15:20:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89621/section-log_backends-will-not-fit-in-region-unplaced_sections-with-flash_placement-xml" /><item><title>RE: ...section '.log_backends' will not fit in region ‘UNPLACED_SECTIONS’. (with flash_placement.xml)</title><link>https://devzone.nordicsemi.com/thread/375615?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2022 15:20:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:842e5fcf-d118-4178-a110-2a9378054a8f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Yao Jiao,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you followed what&amp;#39;s inside&amp;nbsp;&lt;span&gt;flash_placement.xml in ble_app_hrs&amp;nbsp; ?&amp;nbsp;&lt;br /&gt;Please copy any configuration with &amp;quot;log&amp;quot; in the name.&amp;nbsp;&lt;br /&gt;Please add a breakpoint inside&amp;nbsp;nrf_log_init() in nrf_log_frontend.c and try to debug.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ...section '.log_backends' will not fit in region ‘UNPLACED_SECTIONS’. (with flash_placement.xml)</title><link>https://devzone.nordicsemi.com/thread/375554?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2022 12:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a84b9c44-6e28-49c1-9dbd-18857d856479</guid><dc:creator>Joyop</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;Thank you, it works!&lt;/p&gt;
&lt;p&gt;However, when I call&amp;nbsp;NRF_LOG_INIT(NULL) in main, the program crashed without any log. (I added blinky after &lt;span&gt;NRF_LOG_INIT(NULL) &lt;/span&gt;and the LED blink didn&amp;#39;t appear. So I judged that the program had crashed.)&lt;/p&gt;
&lt;p&gt;May I ask what may be the cause? Is there any&amp;nbsp;tutorials about adding&amp;nbsp;RTT log to SES project?&lt;/p&gt;
&lt;p&gt;Best wishes,&lt;/p&gt;
&lt;p&gt;Joyop&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ...section '.log_backends' will not fit in region ‘UNPLACED_SECTIONS’. (with flash_placement.xml)</title><link>https://devzone.nordicsemi.com/thread/375382?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2022 15:16:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3294fefb-ff7d-4baf-8530-bdd9a5a9f2da</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Yao Jiao,&amp;nbsp;&lt;br /&gt;I believe you need to add the section for the log backend into flash_placement.xml.&amp;nbsp;&lt;br /&gt;Something like this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; keep=&amp;quot;Yes&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.log_backends&amp;quot; inputsections=&amp;quot;*(SORT(.log_backends*))&amp;quot; address_symbol=&amp;quot;__start_log_backends&amp;quot; end_symbol=&amp;quot;__stop_log_backends&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;Please refer to the flash_placement.xml in one of our example in the SDK for example ble_app_hrs.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>