2024-09-18 08:06 AM
Subject: STM32H7 USBX Virtual COM Port Setup - Missing ux_dcd_stm32.h File
Hello ST Community,
I'm working on setting up a USB Virtual COM port on an STM32H7 microcontroller using Azure RTOS (AzureRTOS-H7). I'm encountering an issue with missing USBX files, specifically the STM32 device controller driver header.
**Project Details:**
- Microcontroller: STM32H7 (specific model: STM32H725RGVX)
- IDE: STM32CubeIDE (Version: 1.16.0)
- Azure RTOS Package Version: 3.3.0
I Have tried
**Issue:**
After enabling USB in the .ioc file and generating the code, I'm getting the following error when trying to compile:
```
app_usbx_device.h:32:10: fatal error: ux_dcd_stm32.h: No such file or directory
```
Any guidance or suggestions would be greatly appreciated. Thank you in advance for your help!
[Your Name/Username]
Solved! Go to Solution.
2024-09-18 08:24 AM - edited 2024-09-18 08:28 AM
Hello @MiB_s,
Make sure to Include the correct paths to your include directories.
This article may help you: How to implement the USB device composite class in... - STMicroelectronics Community
You can also refer to this github repository :
2024-09-18 08:24 AM - edited 2024-09-18 08:28 AM
Hello @MiB_s,
Make sure to Include the correct paths to your include directories.
This article may help you: How to implement the USB device composite class in... - STMicroelectronics Community
You can also refer to this github repository :
2024-09-18 12:18 PM
It seems that the file is missing when i generate the project, i tried to copy the ux_dcd_stm32.h into the folder(\Middlewares\ST\usbx\common\usbx_device_classes\inc\) and this seems to fix the problem building the project. So thanks for the help!