<?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>how to use scanf in nrf5340 DK using nrf connect sdk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74133/how-to-use-scanf-in-nrf5340-dk-using-nrf-connect-sdk</link><description>Hi , 
 I am using nrf connect sdk , nrf 5340 dk board and segger studio. scanf is not working. please let me know how to use scanf for nrf5340 dk . can you provide me any example code for better understanding . 
 Regards, 
 Srinivas Rao.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Apr 2021 10:49:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74133/how-to-use-scanf-in-nrf5340-dk-using-nrf-connect-sdk" /><item><title>RE: how to use scanf in nrf5340 DK using nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/305492?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 10:49:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0deaa466-c535-4205-88cd-01d84af23c40</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;You can get data from the uart console by adding &amp;quot;CONFIG_CONSOLE_HANDLER=y&amp;quot;.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s hello world with this feature:&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_uart.zip"&gt;devzone.nordicsemi.com/.../hello_5F00_world_5F00_uart.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: how to use scanf in nrf5340 DK using nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/305480?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 10:14:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e4ae3bd-602a-4d4e-a4fc-8878ce01cbe7</guid><dc:creator>SRINI</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;we can&amp;#39;t read data from the console using sscanf . we can read data from one buffer to another buffer. Actually, I will enter commands on the console. so, I need to read the commands from the console .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Srinivas.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use scanf in nrf5340 DK using nrf connect sdk</title><link>https://devzone.nordicsemi.com/thread/305414?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 07:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:064f2cdc-cfaa-4a1a-b5ca-e5f30e8b53be</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;Try adding these configurations to any project, and start using sscanf() freely:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_NEWLIB_LIBC_FLOAT_SCANF=y
CONFIG_MAIN_STACK_SIZE=4096&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But please be aware that the sscanf() implementation in newlib does not support&amp;nbsp;8 bit IO types, as described in this thread:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/72455/nrf9160---sscanf---length-field-hhi-hhu"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/72455/nrf9160---sscanf---length-field-hhi-hhu&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></channel></rss>