<?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: Freertos uart receive in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freertos-uart-receive/m-p/758164#M7752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have same question, any update? I want receive non block data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2019 10:08:34 GMT</pubDate>
    <dc:creator>chinagkuanyi</dc:creator>
    <dc:date>2019-02-20T10:08:34Z</dc:date>
    <item>
      <title>Freertos uart receive</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freertos-uart-receive/m-p/758161#M7749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I use the&amp;nbsp;SDK_2.2_TWR-K60D100M and try to use the freertos_uart.c on my&amp;nbsp;&lt;SPAN&gt;TWR-K60D100M board to test receive data from UART.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The program like this&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;UART_RTOS_Receive(&amp;amp;handle, recv_buffer, 20, &amp;amp;n);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(n==20)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;UART_RTOS_Send(&amp;amp;handle, (uint8_t *)recv_buffer, n);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now, I use the labtop send data to&amp;nbsp;TWR-K60D100M board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found when the program run to&amp;nbsp;UART_RTOS_Receive(&amp;amp;handle, recv_buffer, 20, &amp;amp;n), the program is going to block state, when receive data over 20 and the program will active.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My question is how to let the&amp;nbsp;UART_RTOS_Receive(&amp;amp;handle, recv_buffer, 20, &amp;amp;n) immediately return, rather than wait the received data over 20.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 07:44:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freertos-uart-receive/m-p/758161#M7749</guid>
      <dc:creator>wyao75</dc:creator>
      <dc:date>2017-11-08T07:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Freertos uart receive</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freertos-uart-receive/m-p/758162#M7750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="250414" data-username="wyao75" href="https://community.nxp.com/people/wyao75"&gt;&amp;amp;#23002; &amp;amp;#29614&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RTOS Uart driver is blocking the current task until whole required data are received. Please check the API UART_RTOS_Receive.&lt;/P&gt;&lt;P&gt;int UART_RTOS_Receive(uart_rtos_handle_t *handle, uint8_t *buffer, uint32_t length, size_t *received).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, you specify the number of data words as 20. If you define the length as 1, the function will receive just 1 byte every time and return immediately.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Daniel&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, 13 Nov 2017 02:41:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freertos-uart-receive/m-p/758162#M7750</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-11-13T02:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Freertos uart receive</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freertos-uart-receive/m-p/758163#M7751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if i am streaming some data to the UART. I would like to use the RTOS UART DRIVER and process lets say 20 data word blocks, except that the last packet is only 8 words and i need to process it.Any suggestions as to how to handle this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 18:12:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freertos-uart-receive/m-p/758163#M7751</guid>
      <dc:creator>sreejithmenon</dc:creator>
      <dc:date>2018-04-03T18:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Freertos uart receive</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freertos-uart-receive/m-p/758164#M7752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have same question, any update? I want receive non block data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2019 10:08:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Freertos-uart-receive/m-p/758164#M7752</guid>
      <dc:creator>chinagkuanyi</dc:creator>
      <dc:date>2019-02-20T10:08:34Z</dc:date>
    </item>
  </channel>
</rss>

