<?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: [LPC5516] usb_cdc_adapter incompatible with component/serial_manager in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5516-usb-cdc-adapter-incompatible-with-component-serial/m-p/1932997#M56644</link>
    <description>&lt;P&gt;This is a bug report of sorts.&lt;/P&gt;&lt;P&gt;It seems like the best path forward is to delete the "usb_cdc_adapter" that gets added by the SDK component manager and add our own modified one that matches the expected naming convention of fsl_component_serial_port_usb.c&lt;/P&gt;&lt;P&gt;Most of the tools added by the SDK manager work with very little configuration (or by modifying a few defines).&amp;nbsp; I assumed that since this one was broken in its default state that there may be something I was missing.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2024 14:33:06 GMT</pubDate>
    <dc:creator>wilkinsw</dc:creator>
    <dc:date>2024-08-15T14:33:06Z</dc:date>
    <item>
      <title>[LPC5516] usb_cdc_adapter incompatible with component/serial_manager</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5516-usb-cdc-adapter-incompatible-with-component-serial/m-p/1932544#M56634</link>
      <description>&lt;P&gt;&lt;STRONG&gt;SDK Version&lt;/STRONG&gt;: SDK_2.x_LPC5516 version 2.16.000&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MCUXpresso version&lt;/STRONG&gt;: 11.9.0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SDK component(s)&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Utilities&lt;UL&gt;&lt;LI&gt;Device&lt;UL&gt;&lt;LI&gt;SDK Utilities&lt;UL&gt;&lt;LI&gt;debug_console&lt;/LI&gt;&lt;LI&gt;serial_manager_usb_cdc&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;: Using the debug_console SDK utility in kSerialPort_UsbCdc mode fails.&lt;/P&gt;&lt;P&gt;Several of the global variables and defines that fsl_component_serial_port_usb.c rely upon are heavily decorated on the LPC5516 due to there being two USB ports.&lt;/P&gt;&lt;P&gt;For example at line 178 in fsl_component_serial_port_usb.c there is the following definition expecting a global usb_device_class_struct_t named g_UsbDeviceCdcVcomConfig:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/* USB device class information */
static usb_device_class_config_struct_t s_cdcAcmConfig[1] = {{
    USB_DeviceCdcVcomCallback,
    0,
    &amp;amp;g_UsbDeviceCdcVcomConfig,
}};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However in usb_device_descriptor.c, which is installed as part of the same SDK component, the struct seems to be declared with the name g_UsbDeviceInterface0CicVcomConfig instead.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;usb_device_class_struct_t g_UsbDeviceInterface0CicVcomConfig = {
    g_UsbDeviceInterface0CicVcomInterfaceList,
    kUSB_DeviceClassTypeCdc,
    USB_DEVICE_CONFIGURATION_COUNT,
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like the serial_port component is expecting variables to be decorated with "UsbDeviceCdc" but the globals are actually decorated with "UsbDeviceInterface0Cic"&lt;/P&gt;&lt;P&gt;How would you suggest I handle this? Is there a way to change the decoration for the generated code, or should I modify the component source code directly?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 00:27:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5516-usb-cdc-adapter-incompatible-with-component-serial/m-p/1932544#M56634</guid>
      <dc:creator>wilkinsw</dc:creator>
      <dc:date>2024-08-15T00:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: [LPC5516] usb_cdc_adapter incompatible with component/serial_manager</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5516-usb-cdc-adapter-incompatible-with-component-serial/m-p/1932690#M56640</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/136578"&gt;@wilkinsw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To better solve your problem, please tell me what project you want to develop.&lt;/P&gt;
&lt;P&gt;And you can also refer to the SDK demo "dev_cdc_vcom_bm" .&amp;nbsp;The Virtual COM project is a simple demonstration program based on the MCUXpresso SDK. It is enumerated as a COM&lt;BR /&gt;port, which the users can open using terminal tools, such as TeraTerm. The demo echoes back any character it receives. The purpose of this demo is to show how to build a device of USB CDC class and to provide a simple project for further development.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 04:04:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5516-usb-cdc-adapter-incompatible-with-component-serial/m-p/1932690#M56640</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-08-15T04:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: [LPC5516] usb_cdc_adapter incompatible with component/serial_manager</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5516-usb-cdc-adapter-incompatible-with-component-serial/m-p/1932997#M56644</link>
      <description>&lt;P&gt;This is a bug report of sorts.&lt;/P&gt;&lt;P&gt;It seems like the best path forward is to delete the "usb_cdc_adapter" that gets added by the SDK component manager and add our own modified one that matches the expected naming convention of fsl_component_serial_port_usb.c&lt;/P&gt;&lt;P&gt;Most of the tools added by the SDK manager work with very little configuration (or by modifying a few defines).&amp;nbsp; I assumed that since this one was broken in its default state that there may be something I was missing.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 14:33:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5516-usb-cdc-adapter-incompatible-with-component-serial/m-p/1932997#M56644</guid>
      <dc:creator>wilkinsw</dc:creator>
      <dc:date>2024-08-15T14:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: [LPC5516] usb_cdc_adapter incompatible with component/serial_manager</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5516-usb-cdc-adapter-incompatible-with-component-serial/m-p/1933017#M56645</link>
      <description>&lt;P&gt;Ah I see what you mean, the "dev_cdc_vcom_bm" has a version of "usb_device_descriptor.c" that has things named correctly.&amp;nbsp; I'll use that then.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 15:01:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5516-usb-cdc-adapter-incompatible-with-component-serial/m-p/1933017#M56645</guid>
      <dc:creator>wilkinsw</dc:creator>
      <dc:date>2024-08-15T15:01:37Z</dc:date>
    </item>
  </channel>
</rss>

