<?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: bug in MQX usb stack class driver? in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-usb-stack-class-driver/m-p/199785#M4352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What baud rate you set for your board? Try set the baud rate to 115200 8N1, and type in the console, you should what you type in the console. The virtual COM demo implements a loopback device which echos back what you typed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 May 2010 12:38:10 GMT</pubDate>
    <dc:creator>cutworth</dc:creator>
    <dc:date>2010-05-25T12:38:10Z</dc:date>
    <item>
      <title>bug in MQX usb stack class driver?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-usb-stack-class-driver/m-p/199783#M4350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I am now using MQX in my custom mcf52259 board,the HID device example work, but the virtual com has something strange, the PC can find the virtual com, but I can't change baudrate in device manager of microsoft windows.,and can't send or receive any data.&lt;/P&gt;&lt;P&gt;I read MQX source code, find a strange thing, see below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;void USB_Framework_Periodic_Task(void)&lt;/DIV&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* if control request pending to be completed */&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(g_control_pending==TRUE)&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{ &amp;nbsp; /* handle pending control request */&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;USB_Control_Service(&amp;amp;g_f_event); &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;g_control_pending=FALSE;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/DIV&gt;&lt;DIV&gt;}&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void USB_Framework_Periodic_Task(void){&amp;nbsp;&amp;nbsp; &amp;nbsp;/* if control request pending to be completed */&amp;nbsp;&amp;nbsp; &amp;nbsp;if(g_control_pending==TRUE)&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{ &amp;nbsp; /* handle pending control request */&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;USB_Control_Service(&amp;amp;g_f_event); &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g_control_pending=FALSE;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;}&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the&amp;nbsp;USB_Control_Service prototype is :&lt;/P&gt;&lt;P&gt;void USB_Control_Service (PTR_USB_EVENT_STRUCT event,pointer arg )&lt;/P&gt;&lt;P&gt;SO, in&amp;nbsp;&amp;nbsp;USB_Framework_Periodic_Task function call it without the second argument&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it a bug??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 21:53:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-usb-stack-class-driver/m-p/199783#M4350</guid>
      <dc:creator>bluehacker</dc:creator>
      <dc:date>2010-05-12T21:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: bug in MQX usb stack class driver?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-usb-stack-class-driver/m-p/199784#M4351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;USB_Framework_Periodic_Task isn't used in the demo, because DELAYED_PROCESSING isn't defined in the virtual com demo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw some strange things too with usbView :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Device Descriptor:bcdUSB:             0x0200bDeviceClass:         0x02bDeviceSubClass:      0x00bDeviceProtocol:      0x00bMaxPacketSize0:      0x40 (64)idVendor:           0x2504idProduct:          0x0300bcdDevice:          0x0002iManufacturer:        0x010x0409: "FREESCALE SEMICONDUCTOR INC."iProduct:             0x020x0409: "MQX VIRTUAL COM DEMO"iSerialNumber:        0x00bNumConfigurations:   0x01ConnectionStatus: DeviceConnectedCurrent Config Value: 0x01Device Bus Speed:     FullDevice Address:       0x01Open Pipes:              3Endpoint Descriptor:bEndpointAddress:     0x81  INTransfer Type:   InterruptwMaxPacketSize:     0x0010 (16)bInterval:            0x0AEndpoint Descriptor:bEndpointAddress:     0x82  INTransfer Type:        BulkwMaxPacketSize:     0x0040 (64)bInterval:            0x00Endpoint Descriptor:bEndpointAddress:     0x03  OUTTransfer Type:        BulkwMaxPacketSize:     0x0040 (64)bInterval:            0x00Configuration Descriptor:wTotalLength:       0x0043bNumInterfaces:       0x02bConfigurationValue:  0x01iConfiguration:       0x00bmAttributes:         0xC0 (Bus Powered Self Powered )MaxPower:             0x32 (100 Ma)Interface Descriptor:bInterfaceNumber:     0x00bAlternateSetting:    0x00bNumEndpoints:        0x01bInterfaceClass:      0x02bInterfaceSubClass:   0x02bInterfaceProtocol:   0x00iInterface:           0x00Unknown Descriptor:bDescriptorType:      0x24bLength:              0x0505 24 00 10 01 Unknown Descriptor:bDescriptorType:      0x24bLength:              0x0505 24 01 01 01 Unknown Descriptor:bDescriptorType:      0x24bLength:              0x0404 24 02 06 Unknown Descriptor:bDescriptorType:      0x24bLength:              0x0505 24 06 00 01 Endpoint Descriptor:bEndpointAddress:     0x81  INTransfer Type:   InterruptwMaxPacketSize:     0x0010 (16)bInterval:            0x0AInterface Descriptor:bInterfaceNumber:     0x01bAlternateSetting:    0x00bNumEndpoints:        0x02bInterfaceClass:      0x0AbInterfaceSubClass:   0x00bInterfaceProtocol:   0x00iInterface:           0x00Endpoint Descriptor:bEndpointAddress:     0x82  INTransfer Type:        BulkwMaxPacketSize:     0x0040 (64)bInterval:            0x00Endpoint Descriptor:bEndpointAddress:     0x03  OUTTransfer Type:        BulkwMaxPacketSize:     0x0040 (64)bInterval:            0x00&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just before the end, there's weird Unknown Descriptor.&lt;/P&gt;&lt;P&gt;It works with windows, but it's normal that baud-rate settings doesn't work, it just makes echo, it's not a real USB-RS232 bridge.&lt;/P&gt;&lt;P&gt;With linux, things get worst, device is well detected, but no ttyUSB device were created, even if usbserial module is loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there an error somewhere in this demo, but I don't have USB knowledge enough to find the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 21:40:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-usb-stack-class-driver/m-p/199784#M4351</guid>
      <dc:creator>Nouchi</dc:creator>
      <dc:date>2010-05-20T21:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: bug in MQX usb stack class driver?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-usb-stack-class-driver/m-p/199785#M4352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What baud rate you set for your board? Try set the baud rate to 115200 8N1, and type in the console, you should what you type in the console. The virtual COM demo implements a loopback device which echos back what you typed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 12:38:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-usb-stack-class-driver/m-p/199785#M4352</guid>
      <dc:creator>cutworth</dc:creator>
      <dc:date>2010-05-25T12:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: bug in MQX usb stack class driver?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-usb-stack-class-driver/m-p/199786#M4353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes ,I set the baudrate as 115200 and 8 bits data , one bit stop, but I can't get anything back when I send some characters to board.&lt;/P&gt;&lt;P&gt;also I can't change the baudrate setting ,if I change it ,The console tools will lose response. I trace into code ,and find the&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;void USB_Notif_Callback(uint_8 event_type,void* val,pointer arg)&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void USB_Notif_Callback(uint_8 event_type,void* val,pointer arg) function seems something wrong , it was &amp;nbsp;never called with event_type=USB_APP_CDC_DTE_ACTIVATED, SO the&amp;nbsp;start_transactions global variable never get TRUE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 15:14:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-usb-stack-class-driver/m-p/199786#M4353</guid>
      <dc:creator>bluehacker</dc:creator>
      <dc:date>2010-05-28T15:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: bug in MQX usb stack class driver?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-usb-stack-class-driver/m-p/199787#M4354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CDC device example uses hardware data flow. Try to switch on hardware data flow when opening a device in the Windows Hyperterminal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jun 2010 14:57:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/bug-in-MQX-usb-stack-class-driver/m-p/199787#M4354</guid>
      <dc:creator>JuroV</dc:creator>
      <dc:date>2010-06-03T14:57:03Z</dc:date>
    </item>
  </channel>
</rss>

