USBX Device CDC ACM problem
Hi all,
I am writing to you because I am trying to understand how to make the USB CDC ACM work on the Nucleo U5A5ZJ board. First of all I analyzed some ST webinars and tested the UX_Device_CDC_ACM program which works correctly. I tried to reproduce it starting from Cube MX by checking what had been done in the example project and after generating the code I checked where the code had been added. In the end, despite all the changes, the program does not work because the USB port is not detected by the PC, while with the example program it is detected. I would like to understand some points:
1) I placed the code in the app_usbx_device.c and .h files and in the ux_device_cdc_acm.c and .h files. When compiling there are no errors, but when I connect the nucleo board to the PC the serial port is not recognised, whereas with the ST example program it is recognised. Where could the problem be?
2) In the UX_Device_CDC_ACM project in CubeMX the USART1 to communicate via STLink and also UCPD1 in the "connectivity" section and USBPD in the "Middleware" section are added. What are UCPD1 and USBPD for?
3) To create a simple project in which I send commands / words from the Host PC with the USB type C which are read by the program on the nucleo board which responds if it recognizes them... Do I need to activate UCPD1 and USBPD as well or is it enough to add ThreadX, USBX and USB_OTG_HS in CubeMX?
4) I have analyzed many webinars on ST's YouTube channel, but I don't really understand how I can set up USB with Azure RTOS. Is there a simple, step-by-step guide that explains how to set up and operate USB devices and hosts with Azure RTOS ThreadX?
Thank you very much for the support!
