<?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 USB CDC RX issue on KW24 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-RX-issue-on-KW24/m-p/477388#M29121</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'm trying to get USB CDC working full duplex on TWR_KW24D512&lt;/P&gt;&lt;P&gt;I have built my prooject with beekit release 3.0.2, HaOnOffSwitch_EndDevice.&lt;/P&gt;&lt;P&gt;I can send and received data on UART1 (TWR_KW24 &amp;lt;--&amp;gt; Teraterm)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have included the files needed to support USB CDC and added initialisation calls as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in BeeAppInit.c void Main()&lt;/P&gt;&lt;P&gt;#if gVirtualCOMPort_d&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Initializes USB vitual COM port //&lt;/P&gt;&lt;P&gt;&amp;nbsp; USB_Init();&lt;/P&gt;&lt;P&gt;&amp;nbsp; (void)CDC_ModuleInit();&lt;/P&gt;&lt;P&gt;#endif // #if gVirtualCOMPort_d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in BeeApp.c (void BeeAppIni (void)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if gVirtualCOMPort_d&lt;/P&gt;&lt;P&gt;&amp;nbsp; // USB data log and Command Port Rx CallBack Setting&lt;/P&gt;&lt;P&gt;&amp;nbsp; CDC_SetRxCallBack(BS_SerialRxCallback);&lt;/P&gt;&lt;P&gt;#endif //gVirtualCOMPort_d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can send without any problem logs to tera term window calling:&lt;/P&gt;&lt;P&gt;CDC_Transmit(pBuf, bufLen, pfCallBack)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a problem on USB CDC RX side:&lt;/P&gt;&lt;P&gt;BS_SerialRxCallback function, is not called everytime data are sent from teraterm to TWR-KW24.&lt;/P&gt;&lt;P&gt;It is called only two times and no more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First data frame is not seen&lt;/P&gt;&lt;P&gt;second data frame is not seen&lt;/P&gt;&lt;P&gt;third data frame is not seen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forth data frame is properly received&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5th data frame is not seen&lt;/P&gt;&lt;P&gt;6th data frame is not seen&lt;/P&gt;&lt;P&gt;7th data frame is not seen&lt;/P&gt;&lt;P&gt;9th data frame is not seen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10th data frame is properly received&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All following frames are not seen!!!??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can be the rout cause of this behavior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Fabrice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2016 17:00:19 GMT</pubDate>
    <dc:creator>fabricetocci</dc:creator>
    <dc:date>2016-01-08T17:00:19Z</dc:date>
    <item>
      <title>USB CDC RX issue on KW24</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-RX-issue-on-KW24/m-p/477388#M29121</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'm trying to get USB CDC working full duplex on TWR_KW24D512&lt;/P&gt;&lt;P&gt;I have built my prooject with beekit release 3.0.2, HaOnOffSwitch_EndDevice.&lt;/P&gt;&lt;P&gt;I can send and received data on UART1 (TWR_KW24 &amp;lt;--&amp;gt; Teraterm)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have included the files needed to support USB CDC and added initialisation calls as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in BeeAppInit.c void Main()&lt;/P&gt;&lt;P&gt;#if gVirtualCOMPort_d&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Initializes USB vitual COM port //&lt;/P&gt;&lt;P&gt;&amp;nbsp; USB_Init();&lt;/P&gt;&lt;P&gt;&amp;nbsp; (void)CDC_ModuleInit();&lt;/P&gt;&lt;P&gt;#endif // #if gVirtualCOMPort_d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in BeeApp.c (void BeeAppIni (void)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if gVirtualCOMPort_d&lt;/P&gt;&lt;P&gt;&amp;nbsp; // USB data log and Command Port Rx CallBack Setting&lt;/P&gt;&lt;P&gt;&amp;nbsp; CDC_SetRxCallBack(BS_SerialRxCallback);&lt;/P&gt;&lt;P&gt;#endif //gVirtualCOMPort_d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can send without any problem logs to tera term window calling:&lt;/P&gt;&lt;P&gt;CDC_Transmit(pBuf, bufLen, pfCallBack)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a problem on USB CDC RX side:&lt;/P&gt;&lt;P&gt;BS_SerialRxCallback function, is not called everytime data are sent from teraterm to TWR-KW24.&lt;/P&gt;&lt;P&gt;It is called only two times and no more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First data frame is not seen&lt;/P&gt;&lt;P&gt;second data frame is not seen&lt;/P&gt;&lt;P&gt;third data frame is not seen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forth data frame is properly received&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5th data frame is not seen&lt;/P&gt;&lt;P&gt;6th data frame is not seen&lt;/P&gt;&lt;P&gt;7th data frame is not seen&lt;/P&gt;&lt;P&gt;9th data frame is not seen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10th data frame is properly received&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All following frames are not seen!!!??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can be the rout cause of this behavior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Fabrice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 17:00:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-RX-issue-on-KW24/m-p/477388#M29121</guid>
      <dc:creator>fabricetocci</dc:creator>
      <dc:date>2016-01-08T17:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC RX issue on KW24</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-RX-issue-on-KW24/m-p/477389#M29122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fabrice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've not checked Beestack further but this kind of issue seems similar to the one described in this thread: &lt;A href="https://community.nxp.com/thread/359149"&gt;KSDK VCOM example does not work without loopback&lt;/A&gt;​, I can advise you to see USB callbacks and understand its structure and see if same problem/solution applies to your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to reproduce this issue and will let you know if something is found!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 00:57:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-RX-issue-on-KW24/m-p/477389#M29122</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-01-12T00:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC RX issue on KW24</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-RX-issue-on-KW24/m-p/477390#M29123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looped back the received characters and the USB CDC works fine now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your efficient support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Fabrice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 15:22:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-RX-issue-on-KW24/m-p/477390#M29123</guid>
      <dc:creator>fabricetocci</dc:creator>
      <dc:date>2016-01-12T15:22:36Z</dc:date>
    </item>
  </channel>
</rss>

