<?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 Nonblocking scanf in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Nonblocking-scanf/m-p/1207136#M12039</link>
    <description>&lt;LI-SPOILER&gt;&amp;nbsp;&lt;/LI-SPOILER&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to send a parameter to the board (imxrt1050) once in a while. I am using scanf right now, but it blocks the whole program and wait for the user input. How can I change it to a non-blocking one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2021 00:30:26 GMT</pubDate>
    <dc:creator>dynamix</dc:creator>
    <dc:date>2021-01-06T00:30:26Z</dc:date>
    <item>
      <title>Nonblocking scanf</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Nonblocking-scanf/m-p/1207136#M12039</link>
      <description>&lt;LI-SPOILER&gt;&amp;nbsp;&lt;/LI-SPOILER&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to send a parameter to the board (imxrt1050) once in a while. I am using scanf right now, but it blocks the whole program and wait for the user input. How can I change it to a non-blocking one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 00:30:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Nonblocking-scanf/m-p/1207136#M12039</guid>
      <dc:creator>dynamix</dc:creator>
      <dc:date>2021-01-06T00:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Nonblocking scanf</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Nonblocking-scanf/m-p/1207210#M12041</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;dynamix,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Do you use the UART to receive your parameter?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; If yes, I think you totally can use the UART interrupt to receive it, that one don't need to blocks the whole program, because when receive the data, it is using the interrupt.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; More details, you can refer to the SDK code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SDK_2.8.6_EVKB-IMXRT1050\boards\evkbimxrt1050\driver_examples\lpuart&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There has a lot of uart interrupt code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The SDK download link is:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://mcuxpresso.nxp.com/" target="_blank"&gt;https://mcuxpresso.nxp.com/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you still have questions about, please kindly let me know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If your question is solved, please help to mark the correct answer just to close this case, thanks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 03:06:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Nonblocking-scanf/m-p/1207210#M12041</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-01-06T03:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Nonblocking scanf</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Nonblocking-scanf/m-p/1371925#M17155</link>
      <description>&lt;P&gt;According to my test, you can change&amp;nbsp;DbgConsole_Scanf() to&amp;nbsp;DbgConsole_TryGetchar() and define&amp;nbsp;DEBUG_CONSOLE_TRANSFER_NON_BLOCKING. This API is non-blocking scanf().&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 10:09:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Nonblocking-scanf/m-p/1371925#M17155</guid>
      <dc:creator>felix1</dc:creator>
      <dc:date>2021-11-16T10:09:01Z</dc:date>
    </item>
  </channel>
</rss>

