<?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: Setting up the USB ROM stack to use high speed in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1377898#M47140</link>
    <description>&lt;P&gt;I just sent to your email. Please have a look.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
    <pubDate>Mon, 29 Nov 2021 04:45:12 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2021-11-29T04:45:12Z</dc:date>
    <item>
      <title>Setting up the USB ROM stack to use high speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1369287#M46964</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There are several LPC54628 example projects using the USB ROM stack.&amp;nbsp; I'm working with the CDC project "lpcxpresso54628_rom_dev_cdc_bm".&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the USB ROM examples are configured for full speed operation;&amp;nbsp; I want to change the CDC example to high speed.&lt;/P&gt;&lt;P&gt;After making what I think are the necessary modifications, the call to the Init function in the ROM api fails with error code 0x4000A (ERR_USBD_BAD_MEM_BUF, /**&amp;lt; Bad alignment of buffer passed. */)&lt;/P&gt;&lt;P&gt;The new HS configuration descriptor is properly word aligned.&lt;/P&gt;&lt;P&gt;Has anyone used the ROM stack in high speed mode?&amp;nbsp; Any suggestions or maybe a boiler plate example to share?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 12:10:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1369287#M46964</guid>
      <dc:creator>jking1</dc:creator>
      <dc:date>2021-11-10T12:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the USB ROM stack to use high speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1369609#M46971</link>
      <description>&lt;P&gt;Hi Joe&lt;/P&gt;
&lt;P&gt;To change SDK USB demo from FS USB (USB0) to HS USB (USB1),&amp;nbsp; we need to change file :usb_device_config.h&lt;/P&gt;
&lt;P&gt;--------------------------&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/*! @brief LPC USB IP3511 FS instance count */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt; USB_DEVICE_CONFIG_LPCIP3511FS (0U)&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/*! @brief LPC USB IP3511 HS instance count */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt; USB_DEVICE_CONFIG_LPCIP3511HS (1U)&lt;/P&gt;
&lt;P&gt;-----------------------&lt;/P&gt;
&lt;P&gt;rebuild the project. USB1 should work.&lt;/P&gt;
&lt;P&gt;if this can't meet your requirement, please let us know the steps of how to reproduce your issue based on the SDK demo code.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 03:23:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1369609#M46971</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-11-11T03:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the USB ROM stack to use high speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1369769#M46978</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for the response.&amp;nbsp; Your suggested solution only applies when working with SDK examples which use the firmware USB stack.&amp;nbsp; My issue is with the examples that use the ROM based USB stack.&lt;/P&gt;&lt;P&gt;In particular I tested with the SDK example "lpcxpresso54628_rom_dev_cdc_bm"&amp;nbsp; This example is written for full speed USB and if compiles and runs correctly on my dev card.&lt;/P&gt;&lt;P&gt;To convert the example to high speed I added an HS device config descriptor, a device qualifier descriptor and set up the appropriate clock source and power control. However I found that the ROM based Init() function failed when setting the USBD_API_INIT_PARAM_ parameter .usb_speed to USB_HIGH_SPEED (i.e. 1)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have gone as far as I'm able with the available documentation and have searched on this forum and the wider Web but not found a solution.&lt;/P&gt;&lt;P&gt;I have zipped the source folder and posted it here so you can see the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 08:03:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1369769#M46978</guid>
      <dc:creator>jking1</dc:creator>
      <dc:date>2021-11-11T08:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the USB ROM stack to use high speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1372526#M47030</link>
      <description>&lt;P&gt;I got your reply.&lt;/P&gt;
&lt;P&gt;I will work on it and let you know once I work it out.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 07:44:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1372526#M47030</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-11-17T07:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the USB ROM stack to use high speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1377550#M47124</link>
      <description>&lt;P&gt;HI&lt;/P&gt;
&lt;P&gt;For all of usb rom demos in the released SDK, only FS is supported now and in the future.&lt;/P&gt;
&lt;P&gt;I meant to upload my revised usb rom HS code to you. But I can't upload because of the code restriction.&lt;/P&gt;
&lt;P&gt;If you need, please send me your email address. I will send it to you.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 09:35:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1377550#M47124</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-11-26T09:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the USB ROM stack to use high speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1377570#M47125</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Jun Zhang&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for this.&amp;nbsp; I would be grateful if you would send you your solution.&amp;nbsp; I'll PM you my contact.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Joseph&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 10:36:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1377570#M47125</guid>
      <dc:creator>jking1</dc:creator>
      <dc:date>2021-11-26T10:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the USB ROM stack to use high speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1377898#M47140</link>
      <description>&lt;P&gt;I just sent to your email. Please have a look.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 04:45:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1377898#M47140</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-11-29T04:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the USB ROM stack to use high speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1517821#M50076</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I also need to use the USB ROM for High-Speed USB. Could you make the solution available here for anyone else to use?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Elijah&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 14:52:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1517821#M50076</guid>
      <dc:creator>elijah</dc:creator>
      <dc:date>2022-09-06T14:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the USB ROM stack to use high speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1517823#M50077</link>
      <description>Hi Joseph,&lt;BR /&gt;&lt;BR /&gt;I am having the exact same issue as you, are you able to advise how to fix the ERR_USBD_BAD_MEM_BUF error and get the USB ROM workign in High-Speed mode?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Elijah</description>
      <pubDate>Tue, 06 Sep 2022 15:04:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1517823#M50077</guid>
      <dc:creator>elijah</dc:creator>
      <dc:date>2022-09-06T15:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the USB ROM stack to use high speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1517858#M50081</link>
      <description>&lt;P&gt;Hi Elijah&lt;/P&gt;&lt;P&gt;Although high speed allows a maximum bulk in/out packet size of 512 bytes, the ROM code only allows the full speed maximum packet size of 64 bytes. I think this was an oversight at the chip design stage which wasn't worth their while to correct (or document). So in the USB descriptor, set wMaxPacketSize to WBVAL(USB_FS_MAX_BULK_PACKET) that is: 64.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 16:06:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1517858#M50081</guid>
      <dc:creator>jking1</dc:creator>
      <dc:date>2022-09-06T16:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the USB ROM stack to use high speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1680531#M53305</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I know this is an old topic, but I ran into the same issue. Is there anyone who can share the sources to the solution (or a link to it)?&lt;BR /&gt;&lt;BR /&gt;My final goal is to get the HID based on the ROM stack working for HS USB. Is there anyone who managed to get this up and running?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Daan&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 13:06:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1680531#M53305</guid>
      <dc:creator>DaGe</dc:creator>
      <dc:date>2023-07-03T13:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the USB ROM stack to use high speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1680532#M53306</link>
      <description>The ROM stack *technically* works in high speed mode, however it only supports a maximum report size of 64 bytes (NXP chose not to either fix or record this anywhere). If you try to use a larger report size the ROM stack will throw an error and there is no way around it.&lt;BR /&gt;&lt;BR /&gt;If you actually want to make full use of the High-Speed USB 512 byte report size you will have to use the software stack. I had to go through the painful process of ripping out the ROM stack from a large project and replacing it with the software stack from other examples.</description>
      <pubDate>Mon, 03 Jul 2023 13:16:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1680532#M53306</guid>
      <dc:creator>elijah</dc:creator>
      <dc:date>2023-07-03T13:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the USB ROM stack to use high speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1680541#M53307</link>
      <description>&lt;P&gt;Hi Elijah,&lt;/P&gt;&lt;P&gt;Thanks for the quick reply. I'm willing to accept the 64 byte report size limitation (although it is a pity that NXP didn't document this any ware). I took the source shared by Joe in this thread and modified the endpoint descriptors to the correct endpoint size, but I still end up with result 0x4000A (ERR_USBD_BAD_MEM_BUF).&lt;/P&gt;&lt;P&gt;I have no idea how to debug this issue, so any working examples would be appreciated.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Daan&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 13:36:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1680541#M53307</guid>
      <dc:creator>DaGe</dc:creator>
      <dc:date>2023-07-03T13:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up the USB ROM stack to use high speed</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1709596#M53901</link>
      <description>&lt;P&gt;Any ideas on how to debug this memory buffer issue? Or is there anyone willing to share a working example (highspeed USB using the ROM stack)?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 06:18:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-the-USB-ROM-stack-to-use-high-speed/m-p/1709596#M53901</guid>
      <dc:creator>DaGe</dc:creator>
      <dc:date>2023-08-23T06:18:02Z</dc:date>
    </item>
  </channel>
</rss>

