<?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: K60 serial communication gets() scanf() in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-serial-communication-gets-scanf/m-p/663346#M40735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Smaschy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you want to receive strings from the uart, you can use the uart interrupt to receive it.&lt;/P&gt;&lt;P&gt;&amp;nbsp; About the bare metal driver, you can refer to this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/343003"&gt;UART transmition in isr for k60&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cano Cano already share the uart bare metal driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2017 04:48:19 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-02-06T04:48:19Z</dc:date>
    <item>
      <title>K60 serial communication gets() scanf()</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-serial-communication-gets-scanf/m-p/663345#M40734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;I'm trying to communicate with my twr-k60d100m via&amp;nbsp;the uart3.&lt;/P&gt;&lt;P&gt;From uC&amp;nbsp;to PC everything is fine but I'm not able to send a line from the PC to the uC.&lt;/P&gt;&lt;P&gt;I can send and receive single chars but i get some trouble when I'm trying to receive a whole line from the PC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Project: The uC sends every second some data to the PC but&amp;nbsp;sometime I need to send some Numbers like "15" or "5000" from the PC to the uC to configure some delay time of the uC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;char&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;gets&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;printf&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"%s"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;with this code the uC get stucked.&lt;/P&gt;&lt;P&gt;Can someone help me to solve my problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a good example for UART interrupts (bare metal) for the twr?&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KDS 3&lt;/P&gt;&lt;P&gt;SDK 1.3&amp;nbsp;&lt;/P&gt;&lt;P&gt;bare metal code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 17:54:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-serial-communication-gets-scanf/m-p/663345#M40734</guid>
      <dc:creator>smaschy</dc:creator>
      <dc:date>2017-02-02T17:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: K60 serial communication gets() scanf()</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-serial-communication-gets-scanf/m-p/663346#M40735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Smaschy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you want to receive strings from the uart, you can use the uart interrupt to receive it.&lt;/P&gt;&lt;P&gt;&amp;nbsp; About the bare metal driver, you can refer to this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/343003"&gt;UART transmition in isr for k60&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cano Cano already share the uart bare metal driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 04:48:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-serial-communication-gets-scanf/m-p/663346#M40735</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-02-06T04:48:19Z</dc:date>
    </item>
  </channel>
</rss>

