<?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: USBHS other speed in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311208#M9996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's correct.&amp;nbsp; I am using the mass storage example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2014 15:48:45 GMT</pubDate>
    <dc:creator>michaelbrudevol</dc:creator>
    <dc:date>2014-05-09T15:48:45Z</dc:date>
    <item>
      <title>USBHS other speed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311204#M9992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone implemented the USBHS other speed device descriptor properly in MQX?&amp;nbsp; I am using the USB MSC device code on a K20, and while it implements g_device_qualifier_descriptor and g_other_speed_config_descriptor, it's statically configured for the high-speed case.&amp;nbsp; For full-speed, the device descriptors need to be swapped.&amp;nbsp; I saw no reference in the usbd code to USBHS_PORTSC1, which I'm assuming is the best place to figure out the port speed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 20:39:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311204#M9992</guid>
      <dc:creator>michaelbrudevol</dc:creator>
      <dc:date>2014-05-06T20:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: USBHS other speed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311205#M9993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;I do not have a K20-120MHz tower.&lt;/P&gt;&lt;P&gt;I have used the TWR-K70F120M and the TWR-SER2 card that has a HS ULPI USB PHY on it.&lt;/P&gt;&lt;P&gt;I tested with MQX4.1 mfs_usb_twrk70f120m example application.&lt;/P&gt;&lt;P&gt;I did have to play around a bit to disable the PTA GPIO pins used for TWR-K70F120M LED's as they conflict with ULPI interface.&lt;/P&gt;&lt;P&gt;In twrk70f120m I made the following changes to enable using ULPI PHY and the mini-AB USB connector (yes have to find adapter to USB stick):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: 10pt;"&gt;&lt;STRONG&gt;#ifndef&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; BSP_USB_TWR_SER2 &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//DES added&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: 10pt;"&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; BSP_USB_TWR_SER2 (1) &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//set to 1 if TWR-SER2 (2 &lt;SPAN style="text-decoration: underline;"&gt;eth&lt;/SPAN&gt;) board used (only host)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: 10pt;"&gt;&lt;STRONG&gt;#if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; BSP_USB_TWR_SER2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* If the TWR-SER2 board is used, the default USB host controller is EHCI. This gives the applicatio&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;#define&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; USBCFG_DEFAULT_HOST_CONTROLLER (&amp;amp;_bsp_usb_host_ehci0_if)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: 10pt;"&gt;&lt;STRONG&gt;#else&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//BSP_USB_TWR_SER2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;/* Use KHCI host controller as default controller for other configurations. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;#define&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; USBCFG_DEFAULT_HOST_CONTROLLER (&amp;amp;_bsp_usb_host_khci0_if)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: 10pt;"&gt;&lt;STRONG&gt;#endif&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//BSP_USB_TWR_SER2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In init_hmi.c I modified it to disable using PORTA GPIO that conflict with ULPI interface:&lt;/P&gt;&lt;P&gt;/* LWGPIO buttons and LEDS &lt;/P&gt;&lt;P&gt;*&amp;nbsp; interrupt not used - HMI_LWGPIO_FLAG_INT_ON is not set for buttons&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;static const HMI_LWGPIO_INIT_STRUCT hmi_init_table_lwgpio[]={&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* UID, PIN ID, FUNCTIONALITY, FLAGS */&lt;/P&gt;&lt;P&gt;#ifndef BSP_USB_TWR_SER2&amp;nbsp;&amp;nbsp; //DES added...PTA pins conflicts with USB ULPI interface when using TWR-SER2 so LED's cannot be used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {HMI_LED_1, BSP_LED1, BSP_LED1_MUX_GPIO, HMI_LWGPIO_FLAG_DIRECTION_OUT|HMI_LWGPIO_FLAG_ACTIVE_STATE_0},&amp;nbsp;&amp;nbsp;&amp;nbsp; /* LED 1 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {HMI_LED_2, BSP_LED2, BSP_LED2_MUX_GPIO, HMI_LWGPIO_FLAG_DIRECTION_OUT|HMI_LWGPIO_FLAG_ACTIVE_STATE_0},&amp;nbsp;&amp;nbsp;&amp;nbsp; /* LED 2 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {HMI_LED_3, BSP_LED3, BSP_LED3_MUX_GPIO, HMI_LWGPIO_FLAG_DIRECTION_OUT|HMI_LWGPIO_FLAG_ACTIVE_STATE_0},&amp;nbsp;&amp;nbsp;&amp;nbsp; /* LED 3 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {HMI_LED_4, BSP_LED4, BSP_LED4_MUX_GPIO, HMI_LWGPIO_FLAG_DIRECTION_OUT|HMI_LWGPIO_FLAG_ACTIVE_STATE_0},&amp;nbsp;&amp;nbsp;&amp;nbsp; /* LED 4 */&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {HMI_BUTTON_5, BSP_SW1, BSP_BUTTON1_MUX_GPIO, HMI_LWGPIO_FLAG_DIRECTION_IN|HMI_LWGPIO_FLAG_ACTIVE_STATE_0|HMI_LWGPIO_FLAG_PULL_UP_ON},&amp;nbsp;&amp;nbsp;&amp;nbsp; /* BUTTON 1 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {HMI_BUTTON_6, BSP_SW2, BSP_BUTTON2_MUX_GPIO, HMI_LWGPIO_FLAG_DIRECTION_IN|HMI_LWGPIO_FLAG_ACTIVE_STATE_0|HMI_LWGPIO_FLAG_PULL_UP_ON},&amp;nbsp;&amp;nbsp;&amp;nbsp; /* BUTTON 2 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {0,0,0},&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 15:41:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311205#M9993</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2014-05-08T15:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: USBHS other speed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311206#M9994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not having issues connecting as a USB HS device and using ULPI to my PHY.&amp;nbsp; I am having issues connecting my device to Full-Speed ports (so non-high speed capable ports).&amp;nbsp; The issue is that the code is providing the device descriptor as if it was connected at high speed, which allow transfers of 512 bytes.&amp;nbsp; Full-speed only allows up to 64.&amp;nbsp; The code needs to be intelligent enough to notice if it was connected at full or high speed and provide the correct device descriptor.&amp;nbsp; My query is whether or not someone has already done that, which may save me time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 23:16:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311206#M9994</guid>
      <dc:creator>michaelbrudevol</dc:creator>
      <dc:date>2014-05-08T23:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: USBHS other speed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311207#M9995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;My apologize for not understanding the issue (and still a bit foggy).&amp;nbsp; The K20 you reference is a K20F120M (120/150MHz) MCU?&lt;/P&gt;&lt;P&gt;I think you are saying your K20 using MQX is being setup to operate with a ULPI phy in the device mode and when it connects to a USB FS Host it is using the wrong device descriptor.&amp;nbsp; Is that understanding correct?&lt;/P&gt;&lt;P&gt;What MQX example are you running?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 15:19:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311207#M9995</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2014-05-09T15:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: USBHS other speed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311208#M9996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's correct.&amp;nbsp; I am using the mass storage example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 15:48:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311208#M9996</guid>
      <dc:creator>michaelbrudevol</dc:creator>
      <dc:date>2014-05-09T15:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re: USBHS other speed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311209#M9997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;Thanks for clarification.&lt;/P&gt;&lt;P&gt;I did find one reference in the twrk70f120m.h header that says interface only for host mode.&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_13996529201907473 jive_text_macro jive_macro_code" jivemacro_uid="_13996529201907473"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;#define&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt; &lt;SPAN style="color: #000000;"&gt;BSP_USB_TWR_SER2 (1)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;//set to 1 if TWR-SER2 (2 &lt;SPAN style="text-decoration: underline;"&gt;eth&lt;/SPAN&gt;) board used (only host)&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;I'll ask around to see why that is the case.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 16:29:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311209#M9997</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2014-05-09T16:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: USBHS other speed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311210#M9998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to make sure you're not tracking down the wrong thing...&amp;nbsp; The function USB_Desc_Get_Descriptor returns the descriptor as an index into g_std_descriptors.&amp;nbsp; "g_std_descriptors" is one of them and "g_other_speed_config_descriptor" is another.&amp;nbsp; These are correct when connecting to a High-Speed host.&amp;nbsp; However, when connecting to a Full-Speed host, the two need to change places (and USB_OTHER_SPEED_DESCRIPTOR vs USB_CONFIG_DESCRIPTOR still need to be correct, so they need to swap places as well).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 16:56:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311210#M9998</guid>
      <dc:creator>michaelbrudevol</dc:creator>
      <dc:date>2014-05-09T16:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: USBHS other speed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311211#M9999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael, &lt;/P&gt;&lt;P&gt;I would like to know if you ever received an answer to your question.&amp;nbsp; I have just implemented a USB HS device with MQX and it seems like the other speed function was never implemented in a way that works.&amp;nbsp; The config descriptors and other speed descriptors are not dependent upon the actual speed configured by the port.&amp;nbsp; My bulk endpoints work at both full and high speed as long as I keep my packet size below the full speed max of 64.&amp;nbsp; If I use a packet size greater than 64 (but less than the high speed max of 512)&amp;nbsp; everything works at high speed but not at full speed. &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 22:55:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311211#M9999</guid>
      <dc:creator>lh_dan</dc:creator>
      <dc:date>2015-01-28T22:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: USBHS other speed</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311212#M10000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever find out if this should also work in "DEVICE" mode?&lt;/P&gt;&lt;P&gt;This question still seems to be open and this comment is still in the latest code along with the BSP_USB_TWR_SER2 precompile switch only changing USBCFG_DEFAULT_HOST_CONTROLLER to ehci mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 13:02:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/USBHS-other-speed/m-p/311212#M10000</guid>
      <dc:creator>simonraybould</dc:creator>
      <dc:date>2015-07-15T13:02:17Z</dc:date>
    </item>
  </channel>
</rss>

