<?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>RTT logs broken in SDK14.2 with GCC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28189/rtt-logs-broken-in-sdk14-2-with-gcc</link><description>Hi all, 
 Just noticed the RTT logs are broken with GCC in SDK14.2 while they work fine in SDK14.1 
 I found the cause is the definition of the macros: 
 /*
 * For GCC sections are sorted in the group by the linker. For IAR and KEIL it is assumed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Aug 2018 21:02:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28189/rtt-logs-broken-in-sdk14-2-with-gcc" /><item><title>RE: RTT logs broken in SDK14.2 with GCC</title><link>https://devzone.nordicsemi.com/thread/146595?ContentTypeID=1</link><pubDate>Thu, 30 Aug 2018 21:02:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6433b610-7b91-4768-b0e1-36cda1ea6d84</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;Don&amp;#39;t forget the same change for log_dynamic_data, as mentioned here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29870/sdk-14-2-nrf_log-prefix-is-garbage/118749"&gt;devzone.nordicsemi.com/.../118749&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT logs broken in SDK14.2 with GCC</title><link>https://devzone.nordicsemi.com/thread/111379?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 04:22:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c8d52d5-0b76-46dc-aa97-a4884359f9e9</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;in the linker script on SDK 14.0 or 14.1&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  .log_const_data :
  {
    PROVIDE(__start_log_const_data = .);
    KEEP(*(.log_const_data))
    PROVIDE(__stop_log_const_data = .);
  } &amp;gt; FLASH
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;From 14.2 on:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;   .log_const_data :
  {
    PROVIDE(__start_log_const_data = .);
    KEEP(*(SORT(.log_const_data*)))
    PROVIDE(__stop_log_const_data = .);
  } &amp;gt; FLASH
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;#yourwelcome&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT logs broken in SDK14.2 with GCC</title><link>https://devzone.nordicsemi.com/thread/111378?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 04:18:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8224c07-465f-408c-b211-bd3919cb0460</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Hey Vidar, do you think this should be in a migration document for 14.2 since it broke previously working code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT logs broken in SDK14.2 with GCC</title><link>https://devzone.nordicsemi.com/thread/111377?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2017 16:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e51a75c-c479-4d76-8d54-936de340c1ef</guid><dc:creator>vincent.golle</dc:creator><description>&lt;p&gt;Thanks for the tip ! it indeed solved the issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT logs broken in SDK14.2 with GCC</title><link>https://devzone.nordicsemi.com/thread/111376?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2017 15:12:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:869b8185-c2bc-4740-beef-97b5b88042c3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Linker declarations for the logger module (section variables) was changed in SDK 14.2.0, and I assume it may be related to the following bug fix (from SDK 14.2.0 release notes):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Fixed invalid module names in logger output when LTO was used in the
GCC compiler.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Because of this you need to update your linker script if you have migrated from an older SDK version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>