<?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: UART and Thread in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Re-UART-and-Thread/m-p/642369#M8328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;You can share your project, then i debug on my side and check the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;ALice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Dec 2016 04:03:38 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-12-28T04:03:38Z</dc:date>
    <item>
      <title>Re: UART and Thread</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Re-UART-and-Thread/m-p/642366#M8325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Just now i tried the Uart-polling example with the same project,which is&lt;/P&gt;&lt;P&gt;working.I think the issues is with the interrupt.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On Mon, Dec 26, 2016 at 3:20 PM, Ajay K R &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:ajay.kr@erislabs.com"&gt;ajay.kr@erislabs.com&lt;/A&gt;&lt;SPAN&gt;&amp;gt; wrote:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" level="1"&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for reply.I'm using FRDM-64f board.First I checked my code alone&lt;/P&gt;&lt;P&gt;using the project uart non blocking,with interrupt and which is working&lt;/P&gt;&lt;P&gt;perfect.Then I moved the same code into the lwip tcp echo demo&lt;/P&gt;&lt;P&gt;project,which is now showing some issues.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nRet = UART_DRV_Init(BOARD_DEBUG_UART3_INSTANCE, &amp;amp;uartState,&lt;/P&gt;&lt;P&gt;&amp;amp;uartConfig);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pFunc = (uart_rx_callback_t *)uart_Callback;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_DRV_InstallRxCallback(BOARD_DEBUG_UART3_INSTANCE&lt;/P&gt;&lt;P&gt;,(uart_rx_callback_t)pFunc ,&amp;amp;rxChar, 0, NULL);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC_SetPriority(I2C0_IRQn, 3U);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(true)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReceiveCommandFromSerial();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UART_DRV_ReceiveData(BOARD_DEBUG_UART3_INSTANCE , &amp;amp;rxChar , 8u);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;void uart_Callback()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;__asm("nop");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;If I use UART_DRV_SendData() function the whole board is getting hanging.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;AJAY K R&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;AJAY K R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2016 10:32:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Re-UART-and-Thread/m-p/642366#M8325</guid>
      <dc:creator>ajaykr</dc:creator>
      <dc:date>2016-12-26T10:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: UART and Thread</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Re-UART-and-Thread/m-p/642367#M8326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello AJAY K R,&lt;/P&gt;&lt;P&gt;Thanks for your sharing.&lt;/P&gt;&lt;P&gt;So now one hand you can use the polling method,&lt;/P&gt;&lt;P&gt;on the other hand, if you must use interrupt, you need debug and analysis it&lt;/P&gt;&lt;P&gt;step by step , for example check whether the data have send , debug into&lt;/P&gt;&lt;P&gt;the function to check it hang which code ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 02:42:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Re-UART-and-Thread/m-p/642367#M8326</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-12-27T02:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: UART and Thread</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Re-UART-and-Thread/m-p/642368#M8327</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 conducted a step by step analysis,which shows a&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt; UART_DRV_SendData() function is showing blocking the entire code.Suggest some solution to solve the issue with interrupt method.Polling method is not suitable for my application.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 04:27:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Re-UART-and-Thread/m-p/642368#M8327</guid>
      <dc:creator>ajaykr</dc:creator>
      <dc:date>2016-12-27T04:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: UART and Thread</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Re-UART-and-Thread/m-p/642369#M8328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;You can share your project, then i debug on my side and check the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;ALice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 04:03:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Re-UART-and-Thread/m-p/642369#M8328</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-12-28T04:03:38Z</dc:date>
    </item>
  </channel>
</rss>

