cancel
Showing results for 
Search instead for 
Did you mean: 

Is `ux_user.h` included in the project when generated from CubeMX?

audio
Senior

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_SUPPORTenabled... should be affecting ux_user.h 

 

audio_0-1763158205482.png

 

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:

audio_1-1763158813613.png

and even opening each of those *.c files doesn't reveal ux_user.h

audio_2-1763158872615.png

Lastly, I do have UX_INCLUDE_USER_DEFINE_FILE in the preprocessor:

audio_3-1763158955819.png

Am I missing something?

11 REPLIES 11

Hello @FBL

I spent my day trying to figure out what broke, and this was after the CubeMX update, and made it even worse when I updated the CubeIDE as well. I had to uninstall everything and reinstall so now things are working, but sadly my project won't build. I'll put the error message at the end of this post. 

 

Having said this... @Mohamed_AYED your trick didn't work with me for some reason, but before the MX update, I was able to find it in the includes folder. This is after the MX update so of course I can't open it, but it would be under here: 

audio_0-1763751171411.png

 

Something weird is going on though. But back to my error message: 

audio_1-1763751212934.png

I did not make any changes, so I'm not sure why there's that error - but I just noticed that in the other screenshot (the includes list), it shows a warning icon on it, and that's where the pdm2pcm_glo.h actually is. 

 

Is there something corrupted that it can't load the hierarchy properly? 

Lastly @FBL I'm excited to try the example you mentioned earlier today. But until then, I gotta figure out why my project won't compile anymore, and any help is appreciated.

Ok I figured it out. The workspace was not set up correctly so I had to remove some things to force the right workspace to work. 

 

And somehow the \Middlewares\ST\STM32_Audio folder was deleted, so I was able to copy that folder over from older project, so now it compiles nicely. 

 

Lastly, @Mohamed_AYED your trick worked. Finally. I'm not sure which solution is correct now, it was a messy ride to get here. This thread can be closed. 

 

Now I go ahead and try the example code.