<?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: Printing on terminal using USB CDC VCOM example in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Printing-on-terminal-using-USB-CDC-VCOM-example/m-p/946629#M2379</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;Can you please provide the part number of the mcu that you are using?&lt;/P&gt;&lt;P&gt;Also, just to make sure I understand, do you want to print on the terminal from the program as part of the execution, without needing to type or expect a user input?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Oct 2019 14:42:43 GMT</pubDate>
    <dc:creator>Sabina_Bruce</dc:creator>
    <dc:date>2019-10-08T14:42:43Z</dc:date>
    <item>
      <title>Printing on terminal using USB CDC VCOM example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Printing-on-terminal-using-USB-CDC-VCOM-example/m-p/946628#M2378</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;&lt;/P&gt;&lt;P&gt;I'm using MCUXpresso IDE with SDK 2.2. I'm currently looking over the example which is titled usb_device_cdc_vcom_bm . From what I understand, the code is a polling loop that reads user input one character once at a time and sends it to the program. My question is if there's a way to go backward and print out to the terminal from the program instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2019 21:14:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Printing-on-terminal-using-USB-CDC-VCOM-example/m-p/946628#M2378</guid>
      <dc:creator>huy_dang</dc:creator>
      <dc:date>2019-10-03T21:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Printing on terminal using USB CDC VCOM example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Printing-on-terminal-using-USB-CDC-VCOM-example/m-p/946629#M2379</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;Can you please provide the part number of the mcu that you are using?&lt;/P&gt;&lt;P&gt;Also, just to make sure I understand, do you want to print on the terminal from the program as part of the execution, without needing to type or expect a user input?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2019 14:42:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Printing-on-terminal-using-USB-CDC-VCOM-example/m-p/946629#M2379</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-10-08T14:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Printing on terminal using USB CDC VCOM example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Printing-on-terminal-using-USB-CDC-VCOM-example/m-p/946630#M2380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply. I'm currently using the FRDM-KL25Z and yes you got it right, I just want to print on the usb terminal as part of the execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Huy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2019 14:51:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Printing-on-terminal-using-USB-CDC-VCOM-example/m-p/946630#M2380</guid>
      <dc:creator>huy_dang</dc:creator>
      <dc:date>2019-10-08T14:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Printing on terminal using USB CDC VCOM example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Printing-on-terminal-using-USB-CDC-VCOM-example/m-p/946631#M2381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Huy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;In this case if you'd like to use the same functions that are being used in the examples.&lt;/P&gt;&lt;P&gt;Take a look at how usb_echo() works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usb_echo you will find that you can print directly in the console. For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usb_echo("Hello World!"\r\n);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you will see hello world printed in the serial terminal that you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see the root function it is essentially a printf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. Let me know if I answered your question or if you have other questions.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2019 18:44:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Printing-on-terminal-using-USB-CDC-VCOM-example/m-p/946631#M2381</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-10-09T18:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Printing on terminal using USB CDC VCOM example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Printing-on-terminal-using-USB-CDC-VCOM-example/m-p/946632#M2382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usb_echo would only print to the IDE's console. I want to print it to the usb terminal that is reading the user input instead.&lt;/P&gt;&lt;P&gt;For example, if I add a usb_echo line to line 640 and print out the character being received through the terminal like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87543i8FB3BF057E2E7EE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will see this on the IDE's console.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87396iFC242BED4398C984/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here's the terminal that I want to print to instead.&amp;nbsp;&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/87637iBBB60767F53DA129/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;The hello world right here is written when I type it in. Now I want to be able to print something else instead of just what I typed in.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that clarifies it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Huy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2019 19:27:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Printing-on-terminal-using-USB-CDC-VCOM-example/m-p/946632#M2382</guid>
      <dc:creator>huy_dang</dc:creator>
      <dc:date>2019-10-09T19:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Printing on terminal using USB CDC VCOM example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Printing-on-terminal-using-USB-CDC-VCOM-example/m-p/946633#M2383</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;Ok in this case you can use the same function used in the example to send what you type.&lt;/P&gt;&lt;P&gt;USB_DeviceCdcAcmSend&lt;/P&gt;&lt;P&gt;However instead of sending an array that is being filled as you type, you can send an array that has a static string. Just make sure that you the size is corrected for your string.&lt;/P&gt;&lt;P&gt;Please try this and let me know your results. Try using a breakpoint to see if it writes as you expect.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Oct 2019 00:44:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Printing-on-terminal-using-USB-CDC-VCOM-example/m-p/946633#M2383</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-10-12T00:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Printing on terminal using USB CDC VCOM example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Printing-on-terminal-using-USB-CDC-VCOM-example/m-p/946634#M2384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabina,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the tip. That is in the right direction but it didn't work. However, I got it working now by following this example here. There's a couple more steps I have to do in addition to your suggestions.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/thread/458760?commentID=939834#comment-939834" title="https://community.nxp.com/thread/458760?commentID=939834#comment-939834"&gt;https://community.nxp.com/thread/458760?commentID=939834#comment-939834&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your help!&lt;/P&gt;&lt;P&gt;Huy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2019 13:46:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Printing-on-terminal-using-USB-CDC-VCOM-example/m-p/946634#M2384</guid>
      <dc:creator>huy_dang</dc:creator>
      <dc:date>2019-10-14T13:46:07Z</dc:date>
    </item>
  </channel>
</rss>

