X-CUBE-USB-AUDIO Expansion Package won't compile
Dear STM32CubeIDE community.
I've been trying to write a USB audio input driver (I want to use the Nucleo F746ZG to generate audio data, that gets sent back to the computer to play as "input audio") and thought that the X-CUBE-USB-AUDIO Expansion Package - https://www.st.com/en/embedded-software/x-cube-usb-audio.html - would be ideal.
Unfortunately, not only does it not compile, there is no useful documentation about how to use it at all.
The issue is in:
/Class/CustomHID/Src/usdb_customhid_if_template.cwhich is missing the TEMPLATE_CUSTOM_HID_ReportDesc definition and implementation, even though it is used by:
USBD_CUSTOM_HID_ItfTypeDef USBD_CustomHID_template_fopsThis means that out-of-the-box neither the examples, nor the library itself even compiles.
Even though this is trivial to fix, if I add the obvious definition you would expect, I then get a bunch of other errors that don't seem quite as trivial to fix, but this isn't a good start for a vendor-supplied library.
Has anyone managed to get any part of this working?
Does anyone have any tips about where to find proper documentation for this? Or should I just do what I always do with the HAL and just mindlessly hack it for weeks until it gives me something that almost-but-not-really works properly?
ST, do you provide working USB audio in/out drivers for the Nucleo F7 range that actually work and are documented sufficiently to use? I'm not really that keen on having to write one from scratch, but it's looking like I will have to.
Thanks.
