2025-11-14 2:25 PM - last edited on 2025-11-17 12:22 AM by Saket_Om
Using Ux_Device_Audio2.0_PlayBack as an example for STM32H753, I enabled in the .ioc file, but it doesn't seem to be affected in the project. Any idea why?
In the .ioc, I have this `UX_DEVICE_CLASS_AUDIO_FEEDBACK_SUPPORT` enabled... should be affecting ux_user.h
But ux_user.h is not being used in the project, so I don't think it's actually being built into the .elf file. I also can't find the file in the STM32CubeIDE project as well, although it is under `USBX/App/ux_user.h` in the system explorer...
Here's the Project explorer in the IDE:
and even opening each of those *.c files doesn't reveal ux_user.h.
Lastly, I do have UX_INCLUDE_USER_DEFINE_FILE in the preprocessor:
Am I missing something?
2025-11-15 4:57 AM - edited 2025-11-15 4:58 AM
Hi @audio,
So when compiling the project, the Generic USBX Project constants in "ux_port.h" will be forced to constants defined to the user in "ux_user.h"
2025-11-15 8:05 AM
2025-11-15 9:26 AM - edited 2025-11-15 11:18 AM
Can you share with me your ioc file ?
2025-11-17 1:39 AM
Hi @audio
Totally agreed @Mohamed_AYED
About USB_AUDIO_FEEDBACK_SUPPORT, it is still not supported by our current implementation as I mentioned here.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-11-17 5:44 AM - edited 2025-11-17 5:58 AM
@Mohamed_AYED Thank you for your response. Here's the .ioc file.
@FBL Hello again! Just to clarify, if I enable UX_DEVICE_CLASS_AUDIO_FEEDBACK_SUPPORT or not, it won't work in this project?
Edit: I should clarify, I enabled this in the .ioc file, I couldn't do this in the ux_user.h file as I can't find this as mentioned in the original post of this question. I expect that when I enable this, I should see ux_user.h show up in the Project Explorer for me to use UX_DEVICE_CLASS_AUDIO_FEEDBACK_SUPPORT.
2025-11-20 5:36 AM
Following up, I haven't heard a reply from you since.
2025-11-20 9:12 AM
Hi @audio
Did you try with latest CubeMX version?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-11-20 2:45 PM
Hi @audio,
Sorry for the delay, i tried project generated with you .ioc and i see that UX_DEVICE_CLASS_AUDIO_FEEDBACK_SUPPORT is correctly generated in ux_user.h and correctly included in the project.
To test that you can compile generated code and then go to ux_device_class_audio_change.c file click with rigth button of your mouse on UX_DEVICE_CLASS_AUDIO_FEEDBACK_SUPPORT then go to declarection you can see that UX_DEVICE_CLASS_AUDIO_FEEDBACK_SUPPORT is defined in ux_user.h
2025-11-21 2:59 AM - edited 2025-11-21 3:17 AM
I found this interesting example supporting feedback endpoint (full SW setup). Feel free to use it as reference.
Assigning feedback endpoint here, initialize feedback task then compute USB feedback.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.