<?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>using RTT console to print along with newlib C library in Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79727/using-rtt-console-to-print-along-with-newlib-c-library-in-zephyr</link><description>Hello everyone, I am using NrfConnect with Zephyr on Segger embedded studio . I want tu use the math logarithm function in my code and print the result on the debug terminal. At first when enabling the &amp;quot;Use RTT for console&amp;quot; configuration, printf works</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Sep 2021 09:57:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79727/using-rtt-console-to-print-along-with-newlib-c-library-in-zephyr" /><item><title>RE: using RTT console to print along with newlib C library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/330432?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 09:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95e7eb16-7ad0-44a5-ac69-9a8e441631f2</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tested your project with upstream zephyr (v2.7.0-rc2), and it does not print over rtt using printf() there either. Switch to minimal libc, then it prints.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using RTT console to print along with newlib C library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/330337?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 15:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd37ec26-45a4-44b4-92d7-c5ed91c7834a</guid><dc:creator>Abdellah AF</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I posted on Github before coming here and they closed the post and told me that it was an nrf Connect sdk issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using RTT console to print along with newlib C library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/330314?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 14:09:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:058f03ad-d1e6-44b7-a79e-c79d874e34c1</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can confirm that I see the same issue. Could you register this as an issue with the zephyr project github?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues"&gt;https://github.com/zephyrproject-rtos/zephyr/issues&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using RTT console to print along with newlib C library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/330301?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 13:30:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3ff427c-2203-4a90-8cbe-09b6c8d12d95</guid><dc:creator>Abdellah AF</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes, the issue is persistent&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please find attached a test project&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/printfNewlib.rar"&gt;devzone.nordicsemi.com/.../printfNewlib.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using RTT console to print along with newlib C library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/330166?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 07:28:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61d6e65b-a360-406a-a3d3-ebc1dfd9bde4</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you test this on a newer ncs release to see if the issue is persistent across versions?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using RTT console to print along with newlib C library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/330088?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 14:51:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86e3dcc5-d17a-4451-9af8-324356ae1637</guid><dc:creator>Abdellah AF</dc:creator><description>&lt;p&gt;Yes the prj.conf is the same. Printf does not print to the debug terminal.&lt;/p&gt;
&lt;p&gt;Then I removed&amp;nbsp;CONFIG_NEWLIB_LIBC=y from prj.conf and printf worked but&amp;nbsp; math.h functions are no longer recognized&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using RTT console to print along with newlib C library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/330039?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 12:35:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7abcec10-40f7-4344-8c57-ef67a4382c3c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I do not see why it should be. Did you look at the prj.conf and copy those into your project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using RTT console to print along with newlib C library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/330015?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 11:43:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fc6d96d-8c35-4c6d-9bee-10c376e9e061</guid><dc:creator>Abdellah AF</dc:creator><description>&lt;p&gt;The example you provided works for me, the code I am testing uses C++ instead of C.&lt;/p&gt;
&lt;p&gt;Do you think this is the problem ?&lt;/p&gt;
&lt;p&gt;If yes, what would be the solution to build a cpp project ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using RTT console to print along with newlib C library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/330007?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 11:26:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d052e68-1385-4e81-b291-5057f542b3d5</guid><dc:creator>Abdellah AF</dc:creator><description>&lt;p&gt;I am using ncs 1.5.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using RTT console to print along with newlib C library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/330000?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 11:18:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1e439ed-1fca-4816-94cb-fec4aea842be</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Which ncs version are you using? Here&amp;#39;s&amp;nbsp;an example showing how it works&amp;nbsp;with ncs v1.6.1:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hello_5F00_world_5F00_rtt_5F00_newlib_5F00_printf.zip"&gt;devzone.nordicsemi.com/.../hello_5F00_world_5F00_rtt_5F00_newlib_5F00_printf.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using RTT console to print along with newlib C library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/329987?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 10:34:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7b21b58-3862-4d46-9855-6b631c5914cb</guid><dc:creator>Abdellah AF</dc:creator><description>&lt;p&gt;Yes it is set and printf works until I set &amp;quot;Newlib C library&amp;quot; then it no longer works&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using RTT console to print along with newlib C library in Zephyr</title><link>https://devzone.nordicsemi.com/thread/329981?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 10:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8188bc53-6e46-4fa0-b0a7-3894bc91cb35</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have CONFIG_RTT_CONSOLE=y set?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>