<?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>FDS breaks RTT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69396/fds-breaks-rtt</link><description>Hi there, 
 I&amp;#39;m using ARMGCC in combination with Make, nRF5 SDK, nRF SDK for Mesh, FreeRTOS and C++. Everything except one single thing is working. I&amp;#39;ve just implemented FDS without FreeRTOS in a separate repository and was in the proces of integrating</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Dec 2020 15:27:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69396/fds-breaks-rtt" /><item><title>RE: FDS breaks RTT</title><link>https://devzone.nordicsemi.com/thread/284592?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 15:27:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b060d812-cb0f-4034-bb13-34b9724d53fd</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry to have wasted your time. Turns out, I made a very silly mistake with the&amp;nbsp;JLinkRTTClient... I&amp;#39;ve added it as a target in the makefile so I can run &amp;#39;make terminal&amp;#39; to have the output in VS code. However, I was using the wrong command to setup RTT communication.&lt;/p&gt;
&lt;p&gt;I used&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;JLink -device NRF52 -speed 4000 -if SWD -AutoConnect 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;while I should have used&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;JLink -device NRF52840_XXAA -speed 4000 -if SWD -AutoConnect 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t believe it actually worked all this time! I have probably been developing and using the terminal like this for nearly three months already. Oh well, it&amp;#39;s at least working now. FDS was just the unlucky addition that overflowed the bucket...&lt;/p&gt;
&lt;p&gt;Anyway, thanks for your help and time.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jochem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS breaks RTT</title><link>https://devzone.nordicsemi.com/thread/284573?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 14:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7be2cc5e-12c9-414d-b70f-9ebd4358e3c4</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Well, I&amp;#39;ve set breakpoints at all lines &amp;quot;NRF_LOG_BACKEND_SECTION_NAME&amp;quot; occurs, but none of them triggers. Neither with the source files included nor without them.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The structs contain the same values. Only the location of the timestamp function changes. The debugger also shows that the same piece of code is executed.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1607696984895v1.png" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1607696999948v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Could it be something else than the section variables? The program is quite large with I2S, I2C, SPI, SD card, beacon scanning, mesh participation, etc. Would&amp;#39;ve thought that if it&amp;#39;d had to do something with section variables, I&amp;#39;d have already encountered major problems right?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jochem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS breaks RTT</title><link>https://devzone.nordicsemi.com/thread/284541?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 13:21:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de00ed13-cae4-4046-955b-2d5889041336</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Thanks for the quick reply! I&amp;#39;ll look into it and keep you updated.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jochem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS breaks RTT</title><link>https://devzone.nordicsemi.com/thread/284537?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 13:16:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a23d25c-76c3-4504-a8c3-877577e3c2cc</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Jochem,&lt;/p&gt;
&lt;p&gt;There should not be any link between RTT logging and fstorage/FDS. However, both the logger module and fstorage rely on section variables, and that does not work well out of the box with C++,&amp;nbsp;particularly with GCC. See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/61644/c-and-gcc-error-while-registering-softdevice-observers/252025#252025"&gt;this post&lt;/a&gt;. I suspect that perhaps the log backend is never registered properly by the linker.&lt;/p&gt;
&lt;p&gt;Can you check if the log backend (NRF_LOG_BACKEND_SECTION_NAME) is iterated over properly in components/libraries/log/src/nrf_log_frontend.c and compare to see the difference with and without FDS/fstorage, and that the data in the struct is correct?&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>