Classic coremw apps USB standalone HID example on Nucleo-U575ZI-Q using IAR EW 9.10.2 not working?
Hello! I am another programmer that doesn't want to use the ThreadX and Microsoft Azure OS in order to implement device USB on an STM32U5 series processor, as I have some very time-critical real-time peripheral operation that I need to get working, I don't need an OS for my application, and I want to avoid all of the extra, highly complicated new code. I am fairly used to ST's USB libraries of old and would be much more comfortable working with the classic model.
Our client is also not looking forward to writing custom Windows device drivers for a custom Vendor and Product ID, and I have read that it is difficult to get ST to sub-license a Product ID under the ST Vendor ID, let alone create another driver package for this (a CDC class), so I have chosen to implement a HID class. Even though it runs slower, it is less installation hassle and the problem of Vendor and Product ID's is less of a problem (we have our own Vendor and Product ID, and we don't even need to write a driver file for a USB HID).
I have downloaded the USB HID standalone example from the Git Hub repository for classic U5 apps at this link: https://github.com/STMicroelectronics/stm32u5-classic-coremw-apps. I made sure to get all the components using the "git clone" request. I was able to open the IAR Embedded Workbench project file (~\stm32u5-classic-coremw-apps\Projects\NUCLEO-U575ZI-Q\Applications\USB_Device\HID_Standalone\EWARM\Project.eww) and was able to build the project using IAR with 0 errors and 0 warnings (Note: don't try this with STM32Cube IDE because there are libraries files involved and needed and there are no library files provided for STM32Cube IDE!)
I was able to program the Nucleo-U575ZI-Q board and run the debugger. But when I let the program run, and then plug in a Type-C USB cable to the Nucleo board, and the other end of the cable to a PC, I do *not* see the new USB device appear inside "mice and other pointing devices" or "Human Interface Devices" inside the Device Manager of the Windows 10 control panel (with PID & VID equal to 0x5710 & 0x0483). I have tried with 2 different Type-C USB cables including 1 that I know works and still no luck. I see the green light next to the USB connector light up, and when I push a button, the green light goes off.
Does anyone know why the USB Standalone HID example doesn't seem to work in my Nucleo-U575ZI-Q setup? I am surprised that an ST example doesn't work out-of-the-box.
