<?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: Getting a Shell on USB VCOM in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1648295#M4317</link>
    <description>&lt;P&gt;Me too, I ended up with my own shell and command line interface.&lt;/P&gt;&lt;P&gt;You can find the core module here: &lt;A href="https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/src/McuShell.c" target="_blank"&gt;https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/src/McuShell.c&lt;/A&gt; along with example in the same GitHub.&lt;/P&gt;&lt;P&gt;It includes support for backspace and history (I rarely use it), but it comes with support for any kind of 'serial' communication interface: UART, RTT, USB CDC, even UDP, both for bare metal and RTOS. I used it mostly as a user interface and testing interface running with FreeRTOS, or in combination with a logging module (&lt;A href="https://mcuoneclipse.com/2020/06/01/mculog-logging-framework-for-small-embedded-microcontroller-systems/" target="_blank"&gt;https://mcuoneclipse.com/2020/06/01/mculog-logging-framework-for-small-embedded-microcontroller-systems/&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2023 03:24:23 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2023-05-11T03:24:23Z</dc:date>
    <item>
      <title>Getting a Shell on USB VCOM</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1562831#M4044</link>
      <description>&lt;P&gt;I have a LPC55S28 project that uses SDK 2.12.0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StuartTyler_3-1669898163762.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202447iDCC49E45165D1824/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StuartTyler_3-1669898163762.png" alt="StuartTyler_3-1669898163762.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;StuartTyler_3-1669898163762.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am trying to get the USBHSD (usb_device_interface_0_cic_vcom .c/.h) working with fsl_shell .c/.h - it is the first time using both of these, and I see the vcom loopback, and see the receive and transmit buffers, and call to USB_DeviceCdcAcmSend.&lt;/P&gt;&lt;P&gt;What I am unsure about is how to hook this into fsl_shell. What I want is to generate a shell that is accessible over the USB vcom interface, so I can send the device commands from the PC.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StuartTyler_0-1669898093208.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202445i416FA0E4776CAC9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StuartTyler_0-1669898093208.png" alt="StuartTyler_0-1669898093208.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;StuartTyler_0-1669898093208.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;SHELL_Init seems to need a serial_handle_t&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StuartTyler_1-1669898093209.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202444iE9B408FC97C9725C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StuartTyler_1-1669898093209.png" alt="StuartTyler_1-1669898093209.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;StuartTyler_1-1669898093209.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the SDK components I notice serial_manager_usb_cdc&lt;/P&gt;&lt;P&gt;I was sort of hoping that this would expose the usb vcom port as a serial handle that could be passed to SHELL_Init. But I could not work it out. Am I on the right path, or is this incorrect?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StuartTyler_2-1669898093210.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202446iC54CD6220E490608/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StuartTyler_2-1669898093210.png" alt="StuartTyler_2-1669898093210.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;StuartTyler_2-1669898093210.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any clues on how to get USB VCOM being passed to SHELL_Init, so that I can build up a command system easily accessible over USB?&lt;/P&gt;&lt;P&gt;An example project for the LPC55S28-EVK would be really nice.&lt;/P&gt;&lt;P&gt;When I install fsl_component_serial_port_usb.c there are compile errors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StuartTyler_4-1669898565787.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/202449i724139F2A3F01FA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StuartTyler_4-1669898565787.png" alt="StuartTyler_4-1669898565787.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;StuartTyler_4-1669898565787.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A basic example of using fsl_component_serial_port_usb.c with fsl_shell and USBHSD would be good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 12:47:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1562831#M4044</guid>
      <dc:creator>StuartTyler</dc:creator>
      <dc:date>2022-12-01T12:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Shell on USB VCOM</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1565719#M4048</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have not found any application note or the other doc which addresses the shell via USB CDC stack instead of shell via uart module.&lt;/P&gt;&lt;P&gt;But the ticket maybe helpful.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT/using-SDK-SHELL-with-Serial-Manager-on-USB-CDC-Interface/m-p/1088739#M9480" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT/using-SDK-SHELL-with-Serial-Manager-on-USB-CDC-Interface/m-p/1088739#M9480&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not think there is problem for shell via USB CDC stack.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 07:48:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1565719#M4048</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-12-07T07:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Shell on USB VCOM</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1648119#M4314</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209491"&gt;@StuartTyler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you manage to&amp;nbsp;get&lt;SPAN&gt;&amp;nbsp;a Shell on USB VCOM?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to implement a similar feature.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 18:39:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1648119#M4314</guid>
      <dc:creator>Mc2023</dc:creator>
      <dc:date>2023-05-10T18:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Shell on USB VCOM</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1648195#M4316</link>
      <description>&lt;P&gt;&amp;lt;rant start&amp;gt;&lt;/P&gt;&lt;P&gt;No, I never got it working. The link provided by xiangiun rong did not help me.&lt;/P&gt;&lt;P&gt;I hacked together my own command handler very quickly and never came back to this. Its annoying because I dont have backspace or command history which I really want - but I could implement this but the command line is used 90% automated interface, humans only use it occasionally.&lt;/P&gt;&lt;P&gt;The USB CDC driver is a horrible implementation as is only gives you a rx buffer and tx buffer and an error handler and you have to work out all the interfacing. What I want is a serial stream, which I would think is what most engineers want so that they can connect it to Shell easily.&lt;/P&gt;&lt;P&gt;So close NXP, but no good. Everyone has to get in and hack away at the USB CDC driver to use it. And handle the errors - they occur frequently.&lt;/P&gt;&lt;P&gt;&amp;lt;rant end&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 23:35:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1648195#M4316</guid>
      <dc:creator>StuartTyler</dc:creator>
      <dc:date>2023-05-10T23:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Shell on USB VCOM</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1648295#M4317</link>
      <description>&lt;P&gt;Me too, I ended up with my own shell and command line interface.&lt;/P&gt;&lt;P&gt;You can find the core module here: &lt;A href="https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/src/McuShell.c" target="_blank"&gt;https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/src/McuShell.c&lt;/A&gt; along with example in the same GitHub.&lt;/P&gt;&lt;P&gt;It includes support for backspace and history (I rarely use it), but it comes with support for any kind of 'serial' communication interface: UART, RTT, USB CDC, even UDP, both for bare metal and RTOS. I used it mostly as a user interface and testing interface running with FreeRTOS, or in combination with a logging module (&lt;A href="https://mcuoneclipse.com/2020/06/01/mculog-logging-framework-for-small-embedded-microcontroller-systems/" target="_blank"&gt;https://mcuoneclipse.com/2020/06/01/mculog-logging-framework-for-small-embedded-microcontroller-systems/&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 03:24:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1648295#M4317</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2023-05-11T03:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Shell on USB VCOM</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1648508#M4321</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209491"&gt;@StuartTyler&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks a lot for your feedback!&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 08:52:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1648508#M4321</guid>
      <dc:creator>Mc2023</dc:creator>
      <dc:date>2023-05-11T08:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Shell on USB VCOM</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1648512#M4322</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/17173"&gt;@ErichStyger&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks a lot for your feedback!&lt;/P&gt;&lt;P&gt;I have feeling that NXP should improve their sdk when I read your comment and the one from&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209491"&gt;@StuartTyler&lt;/a&gt;. I think some of NXP competitors already provide this feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 08:57:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1648512#M4322</guid>
      <dc:creator>Mc2023</dc:creator>
      <dc:date>2023-05-11T08:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Shell on USB VCOM</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1648632#M4323</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/212739"&gt;@Mc2023&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;It all depends what you want and need for your project. To me, the implementation in the SDK probably fits most users or applications, nothing wrong with it imho. And if you want it different or with different features, there are always choices or other open source implementations.&lt;/P&gt;&lt;P&gt;Just my 1 cent,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 11:10:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1648632#M4323</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2023-05-11T11:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Shell on USB VCOM</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1648772#M4324</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/17173"&gt;@ErichStyger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is always room for improvement and it is really obvious by looking at the comments about the shell not working with usb cdc.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 13:39:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Getting-a-Shell-on-USB-VCOM/m-p/1648772#M4324</guid>
      <dc:creator>Mc2023</dc:creator>
      <dc:date>2023-05-11T13:39:49Z</dc:date>
    </item>
  </channel>
</rss>

