<?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>Kinetis Software Development Kit中的主题 Re: Using fsl_uart problem</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-fsl-uart-problem/m-p/419951#M2124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually fsl_uart and fsl_lpuart have very similar APIs in KSDK , but as lpuart supports working under low power modes such as stop mode and wait mode, so it has additional APIs for such feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Kinetis SDK v.1.2.0 API Reference Manual.pdf has stated clearly about the callback ,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54939i639CF2172A38E036/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so the simplest way to implement the callback is moving the part that is skipped by the callback function in the UART ISR, besides you may also add your custom code in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Technical Support&lt;BR /&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>Tue, 08 Sep 2015 02:42:27 GMT</pubDate>
    <dc:creator>Kan_Li</dc:creator>
    <dc:date>2015-09-08T02:42:27Z</dc:date>
    <item>
      <title>Using fsl_uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-fsl-uart-problem/m-p/419945#M2118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #51626f; font-family: 'Arial','sans-serif'; font-size: 10.5pt; mso-ansi-language: EN; mso-fareast-font-family: 'Times New Roman';"&gt;Doing my initial steps in KDS and Kinetis I faced a problem using “UART to console transaction” via OpenSDA USB link. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN lang="EN" style="color: #51626f; font-family: 'Arial','sans-serif'; font-size: 10.5pt; mso-ansi-language: EN; mso-fareast-font-family: 'Times New Roman';"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #51626f; font-family: 'Arial','sans-serif'; font-size: 10.5pt; mso-ansi-language: EN; mso-fareast-font-family: 'Times New Roman';"&gt;My project is implemented on FRDM-K64F using: KDS3.0, KSDK1.2+PE and UART based on fsl_uart component. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN lang="EN" style="color: #51626f; font-family: 'Arial','sans-serif'; font-size: 10.5pt; mso-ansi-language: EN; mso-fareast-font-family: 'Times New Roman';"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #51626f; font-family: 'Arial','sans-serif'; font-size: 10.5pt; mso-ansi-language: EN; mso-fareast-font-family: 'Times New Roman';"&gt;The program logic is based on a working “UART non-blocking driver” demo.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN lang="EN" style="color: #51626f; font-family: 'Arial','sans-serif'; font-size: 10.5pt; mso-ansi-language: EN; mso-fareast-font-family: 'Times New Roman';"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #51626f; font-family: 'Arial','sans-serif'; font-size: 10.5pt; mso-ansi-language: EN; mso-fareast-font-family: 'Times New Roman';"&gt;When I send predefined char string using “ UART_DRV_SendData(FSL_UARTCOM1, buffStart, byteCountBuff) ” method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN lang="EN" style="color: #51626f; font-family: 'Arial','sans-serif'; font-size: 10.5pt; mso-ansi-language: EN; mso-fareast-font-family: 'Times New Roman';"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #51626f; font-family: 'Arial','sans-serif'; font-size: 10.5pt; mso-ansi-language: EN; mso-fareast-font-family: 'Times New Roman';"&gt;The result is that the first character of buffStart string is sent to console in endless loop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #51626f; font-family: 'Arial','sans-serif'; font-size: 10.5pt; mso-ansi-language: EN; mso-fareast-font-family: 'Times New Roman';"&gt;I have same phenomena implementing&amp;nbsp; “DWF - Kinetis&lt;BR /&gt;Design Studio (KDS) using Processor Expert" - Lab4&amp;nbsp; ( &lt;A _jive_internal="true" data-containerid="11231" data-containertype="14" data-objectid="101650" data-objecttype="102" href="https://community.nxp.com/docs/DOC-101650"&gt;&lt;SPAN style="color: #017bba;"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://community.freescale.com/docs/DOC-101650" target="test_blank"&gt;https://community.freescale.com/docs/DOC-101650&lt;/A&gt;&lt;/SPAN&gt; ).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN lang="EN" style="color: #51626f; font-family: 'Arial','sans-serif'; font-size: 10.5pt; mso-ansi-language: EN; mso-fareast-font-family: 'Times New Roman';"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="color: #51626f; font-family: 'Arial','sans-serif'; font-size: 10.5pt; mso-ansi-language: EN; mso-fareast-font-family: 'Times New Roman';"&gt;Shaul&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 08:34:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-fsl-uart-problem/m-p/419945#M2118</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2015-09-03T08:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using fsl_uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-fsl-uart-problem/m-p/419946#M2119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please send your project for a review? I may use it to reproduce the issue on my FRDM-K64F. Thanks for your patience!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Technical Support&lt;BR /&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>Sun, 06 Sep 2015 06:06:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-fsl-uart-problem/m-p/419946#M2119</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-09-06T06:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using fsl_uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-fsl-uart-problem/m-p/419947#M2120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see in attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Sep 2015 10:26:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-fsl-uart-problem/m-p/419947#M2120</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2015-09-06T10:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using fsl_uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-fsl-uart-problem/m-p/419948#M2121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just reviewed your project, and found this issue is due to the RxCallback and TxCallback are enabled but left as undefined, disable them both can fix this issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54883i9BCF27F9B282F92C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54935i79BD85E02A1A8AED/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly refer to &lt;A href="https://community.nxp.com/thread/360363"&gt;Configuring MKL25 LPSCI with fsl_lpsci Processor Expert bean&lt;/A&gt;&amp;nbsp; for more details regarding RxCallback and TxCallback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Technical Support&lt;BR /&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, 07 Sep 2015 02:50:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-fsl-uart-problem/m-p/419948#M2121</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-09-07T02:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using fsl_uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-fsl-uart-problem/m-p/419949#M2122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kan;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your fast and helpful response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes without Tx &amp;amp; Rx CallBack it is working, but:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is a difference between fsl_uart and fsl_lpsci ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my project (FRDM-K64F with MK64FN!M0VLL12)  I have seen that the  lpsci is not applicable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a reference I used two Freescale lab presentations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;https://community.freescale.com/thread/353666&amp;gt; &lt;A href="https://community.freescale.com/thread/353666" target="test_blank"&gt;https://community.freescale.com/thread/353666&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;https://community.freescale.com/docs/DOC-101650&amp;gt; &lt;A href="https://community.freescale.com/docs/DOC-101650" target="test_blank"&gt;https://community.freescale.com/docs/DOC-101650&lt;/A&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In neither of them there is nothing mentioned to deselect Rx and Tx callback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of this I have made additional experiment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I build the same UART project again (also with Rx &amp;amp; Tx CallBacks) but “main.c” has been replaced with my “main.c” code that was  based on “non_blocking driver example”.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This main.c doesn’t have PE_low_level_init(); and RTOS startup code (all PE restricted areas).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program works with selected and undefined CallBacks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was the reason that I conclude that I Tx and Rx is needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I’m sure that I made something wrong, but I’m not familiar with those callback, can you please recommend any application or paper how to work with those callbacks?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 05:58:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-fsl-uart-problem/m-p/419949#M2122</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2015-09-07T05:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using fsl_uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-fsl-uart-problem/m-p/419950#M2123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kan;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on yours recommendations I added to the Rx &amp;amp; Tx CallBack functions the necessary instructions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is that I have done it like a parrot without knowing what it does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen in component list number of uart method some maybe are not applicable for my processor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any comparison between the different methods?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some are good for printf and scanf but I have seen that they are not recommended (code size).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours solution solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 08:28:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-fsl-uart-problem/m-p/419950#M2123</guid>
      <dc:creator>shauldorf</dc:creator>
      <dc:date>2015-09-07T08:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using fsl_uart problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-fsl-uart-problem/m-p/419951#M2124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually fsl_uart and fsl_lpuart have very similar APIs in KSDK , but as lpuart supports working under low power modes such as stop mode and wait mode, so it has additional APIs for such feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Kinetis SDK v.1.2.0 API Reference Manual.pdf has stated clearly about the callback ,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54939i639CF2172A38E036/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so the simplest way to implement the callback is moving the part that is skipped by the callback function in the UART ISR, besides you may also add your custom code in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale Technical Support&lt;BR /&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>Tue, 08 Sep 2015 02:42:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-fsl-uart-problem/m-p/419951#M2124</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2015-09-08T02:42:27Z</dc:date>
    </item>
  </channel>
</rss>

