Skip to main content
Explorer
March 6, 2024
Solved

X CUBE USB AUDIO not recognized as audio device

  • March 6, 2024
  • 7 replies
  • 4835 views

Hello,

 

I want to use X CUBE USB AUDIO examples in X CUBE IDE.

After generating the binary code (without errors) and flashing the binary code via DFU, the card is not recognized as an audio device, I tried on all 4 projects. I unplugged USB, do reset, nothink change.

On the other hand, if I generate for example the binary of another audio project: FP-AUD-SMARTMIC1, and flash it via DFU, the card is recognized as an audio device.

 

Thanks by advance.

    This topic has been closed for replies.
    Best answer by FBL

    Hi again @Loulou 

    Update for F446

    7 replies

    Technical Moderator
    March 21, 2024

    Hello @Loulou 

    Could you flash the code as described in read me? I have run the example, and it works without issues. I can hear through Audio streaming in FS mode using F769 disco board.

    FBL_0-1711027398411.png

     

    LoulouAuthor
    Explorer
    March 22, 2024

    Hello @FBL ,

     

    Many thanks for your answer.

     

    I was trying to make working the UAC10-PLAY example on STM32F446E-EVAL board, on CUBE IDE.

     

    The read me file speak about a usb_audio_user.h file who don't exist in the package.

     

    There are a usb_audio.h file in the package. Did I need to modify it for making this example working ?

     

    I'am new to STM32, thanks for your support.

     

     

     

     

    Technical Moderator
    March 22, 2024

    Hi @Loulou 

    Indeed, it is missing in the latest version published.

    An internal ticket (176798) has been reported to update the package ASAP. Attached the missing file. You can omit usb_audio_constants.h. If you need any further support don't hesitate to come back and post new threads.

    LoulouAuthor
    Explorer
    March 26, 2024

    @FBL 

    Thanks for your answer. As I'am new to STM32, I will wait for the new release of X CUBE USB AUDIO. Could you let me know me the release is posted please ?

    I want start working with a working release. 

    Do you think it is possible in the new release ((internal ticket (176798)) to include a working binary file for the example UAC10-PLAY (target STM32F446)? That could help me. I think binary files for all examples could help members who program via DFU.

    Regards.

     

    Technical Moderator
    April 3, 2024

    Hi @Loulou 

    I will let you know as soon as the release is posted. 

    Attached the binary.

    Following package might be useful as well.

    X-CUBE-AUDIO-KIT - Audio processing software expansion for STM32Cube - STMicroelectronics 

    LoulouAuthor
    Explorer
    April 4, 2024

    Hi @FBL

     

    I flashed the binary in my STM32F446RET6 and nothing happens (no audio device recognized under windows). Can you try it yourself with the same processor?

     

    Thanks for the links to X-CUBE-AUDIO-KIT. For the moment I am looking to work with STM32F446RET6. This link will  be useful to me later.

    FBLAnswer
    Technical Moderator
    April 4, 2024

    Hi again @Loulou 

    Update for F446

    LoulouAuthor
    Explorer
    April 4, 2024

    Hi again @FBL

    I flashed with STM32 Cube Programmer the binary file and the hex file for STM32F446 you just sent me.

    The result is the same as with my binary files generated from CUBE IDE for all the examples X CUBE USB AUDIO for STM32F446. No audio device recognized under Windows.

    Please can you try it yourself with the same processor?

    Thanks.

    Technical Moderator
    April 19, 2024

    Hi @Loulou 

    You can change your target in the compiler. The only difference is RE with less pin count.

    Please consider opening new discussion for further questions.