Skip to main content
Visitor II
September 18, 2024
Solved

STM32H725 usb missing ux_dcd_stm32.h

  • September 18, 2024
  • 1 reply
  • 1137 views

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

  1. Created a new STM32H7 project in STM32CubeIDE
  2. Enabled USB in the .ioc file(Device Only)
  3. Configured USBX middleware
  4. Checked the following packages in the manager
    1. Core System
    2. UX Device CoreStack
    3. UX Device Class CDC ACM
  5. Enable the the USB USBX

**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]

    This topic has been closed for replies.

    1 reply

    Imen.DAnswer
    Technical Moderator
    September 18, 2024
    MiB_sAuthor
    Visitor II
    September 18, 2024

    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!