• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » C5000 Ultra Low Power DSP » C5000 Ultra Low Power DSP Forum » USB error USBD_STATUS_BUFFER_UNDERRUN (0xc000000d)
Share
C5000 Ultra Low Power DSP
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Top 6 Wiki Links
  • C5000 Main Wiki
  • C5000 Software
  • C5515 Boot-Image Programmer
  • CSL (including CSL 3.00)
  • C5000 Connected Audio Framework
  • Porting C5000 Teaching ROM to C5535 eZdsp
  • Forums

    USB error USBD_STATUS_BUFFER_UNDERRUN (0xc000000d)

    This question is answered
    Long Ngoc
    Posted by Long Ngoc
    on Apr 16 2012 02:46 AM
    Intellectual285 points

    Hi, I am working with TMS320C5535 eZdsp USB Kit, I tried debugging Connected Audio framework example successfully. But now I am adapting it as a webcam device conforming to USB Video Class (UVC) specs, everything is good so far, the board is recognized as USB Video Device except that when I connect to the board to start streaming function (the host UVC driver on Windows will send packet to set the interface to alternative interface number 1), the host keeps saying that "Cannot connect device. The device may already be in use" - certainly there is none using this device.

    I tried to debug and use USB Monitor to track the packets going from/to the USB port, what I have found so far is weird:

    - By the time I connect to the device, inside function MUSB_Handle_EP0_Intr (app_usb.c), case CSL_USB_SET_INTERFACE: when it runs through this line

    usbRegisters->PERI_CSR0_INDX |= CSL_USB_PERI_CSR0_INDX_SERV_RXPKTRDY_MASK, USB Monitor shows that the host return error USBD_STATUS_BUFFER_UNDERRUN (0xc000000d). I got no clue how this might happen and how to fix it. I guess this is the reason I cannot connect to the board as a Webcam device.

    - Also, before that instrument, usbRegisters->PERI_CSR0_INDX = 0x0001, after bit OR with CSL_USB_PERI_CSR0_INDX_SERV_RXPKTRDY_MASK (0x0040u), it becomes 0x0011. How this could happen?

    - The Status returned in Hdr is USB_STATUS_INVALID_PARAMETER (0x80000300), and the field InterfaceHandle in URB_FUNCTION_SELECT_INTERFACE request = 0xffffffffffffffff, while it should be something else like 0xffffffffc9262d00...

    I got stuck at this point for several days without any progress, so I appreciate any help or suggestion for this. Thank you very much.

    C5000 C5535 eZdsp
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Long Ngoc
      Posted by Long Ngoc
      on Apr 18 2012 00:41 AM
      Verified Answer
      Verified by Long Ngoc
      Intellectual285 points

      Hi, it turns out that is the problem of speed mode. After modifying the MaxPacketSize of Isochronous Endpoint 1 OUT from 0x400 (1024) - Hi-speed down to 0x0064 (100) - Full-speed then it passes the SELECT_INTERFACE request. Now remain the question why the device cannot work with USB 2.0 Hi-speed?

      There are some facts that we need to be clear:

      1. My computer clearly supports USB 2.0, and so does the port I am using, since I plugged another webcam USB 2.0 into the port and it works properly with MaxPacketSize = 1024

      2. When I start the device, there is a message in Windows 7 saying that "This device can perform faster if you connect it to a hi-speed usb 2.0". It looks like my computer does not support USB 2.0, but as 1. pointed out it surely is.

      All in all, how to make it work in Hi-speed mode? Since I am turning TMS320C5535 into something like a webcam so full-speed mode is just too slow for me.

      Thank you!

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Long Ngoc
      Posted by Long Ngoc
      on Apr 20 2012 02:25 AM
      Intellectual285 points

      Hi, any idea?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Long Ngoc
      Posted by Long Ngoc
      on Apr 23 2012 23:11 PM
      Verified Answer
      Verified by Long Ngoc
      Intellectual285 points

      It is already solved, please check this article http://e2e.ti.com/support/dsp/tms320c5000_power-efficient_dsps/f/109/t/184302.aspx

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use