Skip to main content
Visitor II
November 15, 2013
Question

Troubleshooting required with STM32f4 USB Microphone device

  • November 15, 2013
  • 16 replies
  • 3432 views
Posted on November 15, 2013 at 14:41

Dear all,

I think I am almost done with the this program, but when I plug after pprogramming my STM32F4 Discovery board. It gives an exclamation mark, (Code 10) generally. ''The I/O request was canceled.'' is written as well in the device status. I am attaching the programming made on KEIL uVision please help me out with this program.

Umair Mukati.

#usb #microphone #stm32f4discovery
    This topic has been closed for replies.

    16 replies

    Visitor II
    November 15, 2013
    Posted on November 15, 2013 at 18:13

    usbd_desc.c
    #define USBD_VID 0x0483
    #define USBD_PID 0x5730

    You don't change VID/PID from the original audio speaker example. Assign a new VID/PID, OR uninstall the device instance on Device Manager of your Windows PC, when you change descriptors so much. Tsuneo
    contact2Author
    Visitor II
    November 16, 2013
    Posted on November 16, 2013 at 07:36

    I changed the PID and VID still no change, just a new driver install then it works as it was working.

    contact2Author
    Visitor II
    November 16, 2013
    Posted on November 16, 2013 at 10:37

    It is not working, please some one help!

    Visitor II
    November 16, 2013
    Posted on November 16, 2013 at 16:31

    Capture the enumeration sequence on a sniffer, to know exactly the problem Windows see.

    These USB sniffers can capture enumeration sequence,

    USBlyzer (33days free trial) http://www.usblyzer.com/

    USBTrace (15days free trial) http://www.sysnucleus.com/

    To capture enumeration,

    Run USBlyzer, enable ''Capture->Capture Hot-plugged'' menu, and plug in your device.

    OR

    After starting USBTrace, click the Capture Hot Plugged Devices menu or toolbar button and start capture. And then, plug in your device.

    If you would see any error line on the sniffer log, it shows the problem on which we have to focus. If the log doesn't put any error, the last ''URB'' line suggests the problem.

    Tsuneo

    contact2Author
    Visitor II
    November 20, 2013
    Posted on November 20, 2013 at 14:08

    Sir,

    Thanks for your reply, I have uploaded a file. Please see the issue. I am unable to understand.

    ________________

    Attachments :

    USB_Audio_Microphone.ulz : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0cI&d=%2Fa%2F0X0000000bbP%2FoIFt5lKnVYNLv.G04cUXS6WqDoDFHoT6kbfcTOOXtEM&asPdf=false
    contact2Author
    Visitor II
    November 20, 2013
    Posted on November 20, 2013 at 14:39

    Please help me with this issue.

    Visitor II
    November 20, 2013
    Posted on November 20, 2013 at 16:46

    > I have uploaded a file. Please see the issue.

    Do you expect that I would check every line of your code?

    I don't have so much free time for you.

    Code 10 on Windows occurs on every kind of errors.

    Get more exact clue on a sniffer, so that we can focus on more narrow range of your source code to find bugs.

    Tsuneo

    contact2Author
    Visitor II
    November 21, 2013
    Posted on November 21, 2013 at 15:44

    The matter is that, I am very close to FYP submission date.

    I am trying to solve this issue for a month but unsuccessful. And source for this type of device is still not available. That's why I want to ask someone who has got much experience in this field.

    Although, I know it takes time, you are right.

    Graduate II
    November 21, 2013
    Posted on November 21, 2013 at 18:40

    The matter is that, I am very close to FYP submission date. I am trying to solve this issue for a month but unsuccessful. And source for this type of device is still not available.

     

    It is perhaps foolhardy to presume that all code you might need comes magically packaged on the internet, and with free support. People who can write and debug code well are expensive, and likely already have degrees and jobs.

    You need to focus on what exactly fails, and when it first fails. ''Code 10'' is a symptom, not a diagnosis. You'd want to review the logs, and ideally have some other working device with which to compare your situation. Understand how USB works with respect to the class of device you are creating. Perhaps examples exist on other platforms that might be instructive.

    Can your project supervisor, and class mates, not render any assistance?
    Visitor II
    November 22, 2013
    Posted on November 22, 2013 at 01:37

    As you have working setup of your application, it doesn't take any more than 10 minutes to take sniffer log, including the download time of the trial sniffer. If your firmware could get pass Get_Descriptor( Config ), USBTrace will check the config descriptor sets.

    If you could't interpret the sniffer log well, post the log.

    I'm not sure why you would hesitate such a trivial job.

    Don't miss the chance to learn the way, how to debug USB application ;)

    Tsuneo