<?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 2 in KSDK V 2.0 issue  in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-2-in-KSDK-V-2-0-issue/m-p/565918#M5789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had a similiar problem over UART2 on MKL25Z128 with SDK2.0&amp;nbsp;and the RTOS UART APIs Functions UART_RTOS_Send () and&amp;nbsp;UART_RTOS_Receive (). I think the Driver is nearly identical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My misstake was not to set the "configTIMER_TASK_PRIORITY" in FreeRTOSConfig.h to highest Priority (configMAX_PRIORITIES-1), because&amp;nbsp;the xTimerQueue need to&amp;nbsp;process the "Eventbitmessage" instantly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else&amp;nbsp;the&amp;nbsp;Callback-Function is&amp;nbsp;setting the Eventbit &amp;nbsp;"RTOS_UART_COMPLETE" to end the "xEventGroupWaitBits"-Period after starting Transfer, but the Eventbit was not received instead cause the Timertask stucks behind other Tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe u can solve ur Problem the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2016 10:31:53 GMT</pubDate>
    <dc:creator>jensseifr</dc:creator>
    <dc:date>2016-09-09T10:31:53Z</dc:date>
    <item>
      <title>UART 2 in KSDK V 2.0 issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-2-in-KSDK-V-2-0-issue/m-p/565913#M5784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are working on MK27Z256MV4 SOC . We are currently working on UART module on K SDK 1.X with Processor exper and KSDK V 2.0 without processor expert .&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are able to communicate over UART module using Processor expert driver with KSDK 1.X version&amp;nbsp;&lt;/P&gt;&lt;P&gt;But we are not able to work the UART module using KSDK V 2.0 driver .&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are the pin mux settings in pin_mux.c file of the project .&lt;/P&gt;&lt;P&gt;PORT_SetPinMux(PORTD, PIN2_IDX, kPORT_MuxAlt3); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* PORTD2 (pin C2) is configured as UART2_RX */&lt;/P&gt;&lt;P&gt;PORT_SetPinMux(PORTE, PIN22_IDX, kPORT_MuxAlt4); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* PORTE22 (pin G2) is configured as UART2_TX */&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and we are using RTOS UART APIs as below ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;UART_RTOS_Send () and&amp;nbsp;UART_RTOS_Receive () .&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;Thanks ,&lt;/P&gt;&lt;P&gt;Anil N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2016 20:36:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-2-in-KSDK-V-2-0-issue/m-p/565913#M5784</guid>
      <dc:creator>anilnadargi</dc:creator>
      <dc:date>2016-08-27T20:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: UART 2 in KSDK V 2.0 issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-2-in-KSDK-V-2-0-issue/m-p/565914#M5785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry SoC is&amp;nbsp; MKL27Z256VMP4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anil N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2016 20:37:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-2-in-KSDK-V-2-0-issue/m-p/565914#M5785</guid>
      <dc:creator>anilnadargi</dc:creator>
      <dc:date>2016-08-27T20:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: UART 2 in KSDK V 2.0 issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-2-in-KSDK-V-2-0-issue/m-p/565915#M5786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;Did you enable the UART2 clock in the SIM_SCGC4 register?&lt;/P&gt;&lt;P&gt;Did you initialize the UART2 as well?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 19:17:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-2-in-KSDK-V-2-0-issue/m-p/565915#M5786</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-08-29T19:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: UART 2 in KSDK V 2.0 issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-2-in-KSDK-V-2-0-issue/m-p/565916#M5787</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 suppose you use the example code located at:&lt;/P&gt;&lt;P&gt;C:\Freescale\KSDK2.0_KL27\boards\frdmkl27z\rtos_examples\freertos_uart\kds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example use UART2 and PTD2 and PTD3 as UART2_RX and UART2_TX. If you use PTE22 as UART2_TX, as David said, you have to enable PORTE clock and set the PTE22 port with the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_EnableClock(kCLOCK_PortE);&lt;/P&gt;&lt;P&gt;PORT_SetPinMux(PORTE, PIN22_IDX, kPORT_MuxAlt4); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* PORTE22 (pin G2) is configured as UART2_TX */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 07:25:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-2-in-KSDK-V-2-0-issue/m-p/565916#M5787</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-08-30T07:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: UART 2 in KSDK V 2.0 issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-2-in-KSDK-V-2-0-issue/m-p/565917#M5788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ring,&lt;/P&gt;&lt;P&gt;Thanks for your inputs . We already have the changes mentioned by you . The issue is with data loss in reception . We are Able to perform TX part . But during Rx , we are loss some data bytes out of total bytes received.we are using rtos api for Uart driver .The non rtos api interrupt example works perfect.but when switch to rtos api for blocking mechanism it's drops some bytes or sometimes no data even though we see data on Rx line on Digital Oscilloscope.we tried both with and without ringbuffer .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 06:20:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-2-in-KSDK-V-2-0-issue/m-p/565917#M5788</guid>
      <dc:creator>anilnadargi</dc:creator>
      <dc:date>2016-09-08T06:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: UART 2 in KSDK V 2.0 issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-2-in-KSDK-V-2-0-issue/m-p/565918#M5789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had a similiar problem over UART2 on MKL25Z128 with SDK2.0&amp;nbsp;and the RTOS UART APIs Functions UART_RTOS_Send () and&amp;nbsp;UART_RTOS_Receive (). I think the Driver is nearly identical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My misstake was not to set the "configTIMER_TASK_PRIORITY" in FreeRTOSConfig.h to highest Priority (configMAX_PRIORITIES-1), because&amp;nbsp;the xTimerQueue need to&amp;nbsp;process the "Eventbitmessage" instantly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else&amp;nbsp;the&amp;nbsp;Callback-Function is&amp;nbsp;setting the Eventbit &amp;nbsp;"RTOS_UART_COMPLETE" to end the "xEventGroupWaitBits"-Period after starting Transfer, but the Eventbit was not received instead cause the Timertask stucks behind other Tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe u can solve ur Problem the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 10:31:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/UART-2-in-KSDK-V-2-0-issue/m-p/565918#M5789</guid>
      <dc:creator>jensseifr</dc:creator>
      <dc:date>2016-09-09T10:31:53Z</dc:date>
    </item>
  </channel>
</rss>

