<?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: How to debug USB SDK examples in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-debug-USB-SDK-examples/m-p/794311#M944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class=""&gt;Hi Zhenchuan Chai&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;In the usb_device_descriptor.h file in the sources folder you can find all the configuration of the descriptors for the USB example. For example, for the dev_msc_ramdisk_bm project code you can find:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;#define USB_MSC_CLASS (0x08U)&lt;BR /&gt;/* scsi command set */&lt;BR /&gt;#define USB_MSC_SUBCLASS (0x06U)&lt;BR /&gt;/* bulk only transport protocol */&lt;BR /&gt;#define USB_MSC_PROTOCOL (0x50U)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Jorge Alcala&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2018 22:45:47 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2018-10-19T22:45:47Z</dc:date>
    <item>
      <title>How to debug USB SDK examples</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-debug-USB-SDK-examples/m-p/794309#M942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using a FRDM-KL82Z board, and have successfully imported and built several MCUXpreso USB SDK bare metal examples.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I can only see the first message, such as "USB device HID generic demo", "USB device mass storage demo" in UART, nothing else. For the mass storage&amp;nbsp;example, I couldn't&amp;nbsp;see the new drive, and I couldn't even find the device in the system device tree (device manager or system information).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck, no idea how to debug that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, I have J-Link firmware on the board, so I can see the J-link's drive when I plug the board into PC, but not the drive the SDK sample is supposed to create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also, those USB SDK examples only show the standard device, HID, MSD, video&amp;nbsp;etc, but not vendor class. Anyone knows where to get the vendor class examples? I need to send our&amp;nbsp;own command to the device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2018 17:58:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-debug-USB-SDK-examples/m-p/794309#M942</guid>
      <dc:creator>zcchai</dc:creator>
      <dc:date>2018-10-15T17:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug USB SDK examples</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-debug-USB-SDK-examples/m-p/794310#M943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What a dumb I am, I found I only used the SDA USB port, which is why I didnt see the MSC drive show up in my host. There is another USB port on the board, if I connect that to host, I can see the USB drive show up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still, I don't&amp;nbsp;know where can I find the Vendor Class example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 00:27:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-debug-USB-SDK-examples/m-p/794310#M943</guid>
      <dc:creator>zcchai</dc:creator>
      <dc:date>2018-10-16T00:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug USB SDK examples</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-debug-USB-SDK-examples/m-p/794311#M944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class=""&gt;Hi Zhenchuan Chai&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;In the usb_device_descriptor.h file in the sources folder you can find all the configuration of the descriptors for the USB example. For example, for the dev_msc_ramdisk_bm project code you can find:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;#define USB_MSC_CLASS (0x08U)&lt;BR /&gt;/* scsi command set */&lt;BR /&gt;#define USB_MSC_SUBCLASS (0x06U)&lt;BR /&gt;/* bulk only transport protocol */&lt;BR /&gt;#define USB_MSC_PROTOCOL (0x50U)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Jorge Alcala&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 22:45:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-debug-USB-SDK-examples/m-p/794311#M944</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2018-10-19T22:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug USB SDK examples</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-debug-USB-SDK-examples/m-p/794312#M945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Jorge, it helps.&lt;/P&gt;&lt;P&gt;-Zhenchuan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 19:05:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/How-to-debug-USB-SDK-examples/m-p/794312#M945</guid>
      <dc:creator>zcchai</dc:creator>
      <dc:date>2018-10-22T19:05:53Z</dc:date>
    </item>
  </channel>
</rss>

