2025-07-03 5:24 AM
Hello,
I'm working on implementing USB UVC on the STM32N6570-DK board. I generated a project using STM32CubeMX only for FSBL and added the following files manually from the ST USBX example project
1 . ux_device_video.c and .h
2 . ux_device_descriptors .c and .h
3 . app_usbx_device .c and .h
4 . app_azure_rtos.c and .h
All files were taken from this example:
However, I did not use USBPD/UCPD in my CubeMX configuration. The ST example uses both USBPD and UCPD and also includes a separate FSBL and Application.
When I flash the my project to the STM32N6570-DK board, the USB device is not enumerating as a UVC device it does not appear in the Windows Device Manager at all.
I previously tested a similar setup on an STM32U5 device, and it worked — the UVC device was properly enumerated.
Is UCPD/USBPD required for USB UVC to work on the STM32N6570-DK board?
Could this be the reason the USB is not being detected?
Could ST provide a .ioc file for the UX_Device_Video example project for reference?
Any help or clarification would be greatly appreciated!
Thank you
Solved! Go to Solution.
2025-07-07 1:44 AM - edited 2025-07-20 6:10 AM
Hi @saikumar
I assume in case, you don't use UCPD peripheral, you need to make some hardware change in schematics to pull down CC lines with 5.1KOhms and reconfigure TCPP port to type C only. Otherwise, use the second USB controller as implemented type C only.
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-07-03 11:23 AM
Dear @saikumar
First, did you follow the README file and flash the provided example? Does it work as-is, or not? Without regenerating the code using CubeMX?
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-07-03 9:00 PM
Hello , mr @FBL
Yes, I followed the README instructions and flashed the provided example without regenerating any code. It worked correctly__the UVC device was properly enumerated and appear in Windows Device Manager, and I was able to preview the video output using the Windows Camera app.
However, when I tried to generate the project using STM32CubeMX (for FSBL only) it is not working. please check the source code and .ioc provided above .
Thank you,
2025-07-04 6:56 AM
Hi @saikumar
Currently, latest CubeMX v6.14.1 does not support USB code generation for STM32N6 in USB applications. You should refer to example provided in CubeN6 as reference.
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-07-06 9:46 PM
Hello, mr @FBL
Thank you for the response.
As per my understanding, currently only STM32CubeMX versions 6.14.0 and 6.14.1 support the STM32N6 series. I have tested USB configuration using both versions, but unfortunately, the issue remains the same.
Also, I would appreciate clarification on the following:
Is it mandatory to use UCPD and USBPD configuration for USB Device classes like UVC or CDC to work properly?
If UCPD/USBPD is not required, then could you please confirm whether my CubeMX USB configuration (as shared above in this discussion) is correct or missing any required settings?
Thank you in advance for your guidance.
2025-07-07 1:44 AM - edited 2025-07-20 6:10 AM
Hi @saikumar
I assume in case, you don't use UCPD peripheral, you need to make some hardware change in schematics to pull down CC lines with 5.1KOhms and reconfigure TCPP port to type C only. Otherwise, use the second USB controller as implemented type C only.
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.