<?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 FSL_USB_STACK and Tera Term in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FSL-USB-STACK-and-Tera-Term/m-p/824270#M49835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using KDS v3.2 and Processor Expert to try and implement USB functionality on a custom K22FN256LH12 chip. I am using the FSL_USB_STACK, and it is currently connection to my PC fine, however I am unable to see my send commands on Tera Term. I am using&amp;nbsp;Error = CDC1_SendString("Hello World!"); It is not returning any error (0x0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have confirmed I am using the correct serial port, however I am unsure of the tera terminal serial port settings. I have an image below of my settings, but I have tried many different baud rates. I am unable to find a baud rate value in the CDC component as well.&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/63114iCBE7F15C3CB99C71/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;Any Suggestions to something I may have missed would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2018 18:50:30 GMT</pubDate>
    <dc:creator>burgeh</dc:creator>
    <dc:date>2018-06-27T18:50:30Z</dc:date>
    <item>
      <title>FSL_USB_STACK and Tera Term</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FSL-USB-STACK-and-Tera-Term/m-p/824270#M49835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using KDS v3.2 and Processor Expert to try and implement USB functionality on a custom K22FN256LH12 chip. I am using the FSL_USB_STACK, and it is currently connection to my PC fine, however I am unable to see my send commands on Tera Term. I am using&amp;nbsp;Error = CDC1_SendString("Hello World!"); It is not returning any error (0x0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have confirmed I am using the correct serial port, however I am unsure of the tera terminal serial port settings. I have an image below of my settings, but I have tried many different baud rates. I am unable to find a baud rate value in the CDC component as well.&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/63114iCBE7F15C3CB99C71/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;Any Suggestions to something I may have missed would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 18:50:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FSL-USB-STACK-and-Tera-Term/m-p/824270#M49835</guid>
      <dc:creator>burgeh</dc:creator>
      <dc:date>2018-06-27T18:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: FSL_USB_STACK and Tera Term</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FSL-USB-STACK-and-Tera-Term/m-p/824271#M49836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;USB CDC does not really use a baud rate (that does not exist for USB). What I usually use is something like 38400 in the terminal.&lt;/P&gt;&lt;P&gt;Your terminal settings are looking fine. I guess it is more of a host system issue. Check in your device manager/viewer if the board really enumerates that COM port you are using. Additionally, make sure you close the COM port before you connect the board (disconnecting/connecting with an active connection can be causeing problems depending on your host system).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 19:15:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FSL-USB-STACK-and-Tera-Term/m-p/824271#M49836</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2018-06-27T19:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: FSL_USB_STACK and Tera Term</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FSL-USB-STACK-and-Tera-Term/m-p/824272#M49837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replying,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It shows the chip in my serial ports just fine (computer dings too). I believe it may not actually be sending. The image below is my code. The result I get from when I get the chars in the tx buffer I get 12 ("Hello World!"). Stepping through the code I never see it actually send the data.&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/63117iC2212F6464CA98C0/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;You can see here in this function (which is the pretty much the main function to send values) It just puts values in the tx_buf&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/63118i22E73C209B316FFF/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 19:25:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FSL-USB-STACK-and-Tera-Term/m-p/824272#M49837</guid>
      <dc:creator>burgeh</dc:creator>
      <dc:date>2018-06-27T19:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: FSL_USB_STACK and Tera Term</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FSL-USB-STACK-and-Tera-Term/m-p/824273#M49838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest that you start with one of the examples I have put on GitHub (&lt;A class="link-titled" href="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples" title="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples"&gt;mcuoneclipse/Examples at master · GitHub&lt;/A&gt;&amp;nbsp;) as if you did your own one, there are so many things which could fail or configured wrongly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens with CDC1_GetCharsInTxBuf() that it returns the number of characters in the output ring buffer. They will be sent out to the USB port if the buffer is full or at every call of CDC1_App_Task().&lt;/P&gt;&lt;P&gt;The other thing ot check is if your interrupts and the USB interrupt are actually enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the bare-metal 'echo' example available with &lt;A class="link-titled" href="https://github.com/ErichStyger/mcuoneclipse/blob/master/Examples/KDS/FRDM-K20D50M/FRDM-K20_USB_CDC/Sources/main.c" title="https://github.com/ErichStyger/mcuoneclipse/blob/master/Examples/KDS/FRDM-K20D50M/FRDM-K20_USB_CDC/Sources/main.c"&gt;mcuoneclipse/main.c at master · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 19:49:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FSL-USB-STACK-and-Tera-Term/m-p/824273#M49838</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2018-06-27T19:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: FSL_USB_STACK and Tera Term</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FSL-USB-STACK-and-Tera-Term/m-p/824274#M49839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your example works! Thanks! I missed the use of app task();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 20:06:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FSL-USB-STACK-and-Tera-Term/m-p/824274#M49839</guid>
      <dc:creator>burgeh</dc:creator>
      <dc:date>2018-06-27T20:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: FSL_USB_STACK and Tera Term</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FSL-USB-STACK-and-Tera-Term/m-p/824275#M49840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christopher / Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USB-CDC does contain provision for baud rate (and other things like stop bits and parity) for when used as a USB-serial adapter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich's own board (with K22) can show this:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FtinyK22.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/tinyK22.html&lt;/A&gt;&lt;BR /&gt;where the reference has three parallel USB-CDC to UART bridges as well as the standard terminated USB-CDC (as with TeraTerm), all with end to end flow control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 21:31:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FSL-USB-STACK-and-Tera-Term/m-p/824275#M49840</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-06-27T21:31:53Z</dc:date>
    </item>
  </channel>
</rss>

