<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with scanf() function in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-scanf-function/m-p/243855#M150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you use processor expert. ConsloeIO component is CPU External Devices-Display This component generates low-level methods for redirecting console I/O to the selected UART. These methods are typically used by printf()/scanf() methods. With Consloe component, printf and scanf are usable. If you don’t use prinf or scanf, you needn't consoleIO component. please refer the demo code under ..\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\TWR-K21D50M\Serial if the demo code can't help, please post your project here. we will check. thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Feb 2014 03:34:18 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2014-02-20T03:34:18Z</dc:date>
    <item>
      <title>Problem with scanf() function</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-scanf-function/m-p/243854#M149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a bare board project for TWR-K60 board. Console IO component is added from the Processor Expert.When I use scanf to read a string, I am missing the first character in the string. But with gets() I am able to read string without any issues. What could be the possible issue ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source code is as simple as&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;printf("Enter a String");&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;scanf("%s", str);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;printf("\nString : %s", str);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody had such a problem before ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Renjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 07:48:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-scanf-function/m-p/243854#M149</guid>
      <dc:creator>renjithvamanan</dc:creator>
      <dc:date>2014-02-19T07:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with scanf() function</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-scanf-function/m-p/243855#M150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you use processor expert. ConsloeIO component is CPU External Devices-Display This component generates low-level methods for redirecting console I/O to the selected UART. These methods are typically used by printf()/scanf() methods. With Consloe component, printf and scanf are usable. If you don’t use prinf or scanf, you needn't consoleIO component. please refer the demo code under ..\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\TWR-K21D50M\Serial if the demo code can't help, please post your project here. we will check. thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 03:34:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-scanf-function/m-p/243855#M150</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2014-02-20T03:34:18Z</dc:date>
    </item>
  </channel>
</rss>

