cancel
Showing results for 
Search instead for 
Did you mean: 

ST32CubeMX 6.13.0 STM32H747 USB_DEVICE_M4 USB_OTG_FS files not included in the generated .cmake

peterdonchev
Associate III

STM32CubeMX 6.13.0
MCU: STM32H747
Peripheral: USB_OTG_FS
USB Class: CDC
Core: M4
FW: 1.12.1
CMake generator selected

The generated file "mx-generated.cmake" in the CM4 folder only includes the USB Class source file, but not the USB Core source files.:

 

    ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pcd.c
    ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pcd_ex.c
    ../Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_usb.c
    ../Common/Src/system_stm32h7xx_dualcore_boot_cm4_cm7.c
    ../Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c
    ./Core/Src/sysmem.c
    ./Core/Src/syscalls.c
    ./Core/Startup/startup_stm32h747xx_CM4.s

 


IOC file is attached.

3 REPLIES 3
Ghofrane GSOURI
ST Employee

Hello @peterdonchev 

First let me thank you for posting.

I am currently verifying this internally and will keep you updated as soon as possible.

THX

Ghofrane

Hi,
The following files must be included by the cmake generator in the mx-generated.cmake, but they are not:

    ../Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c
    ../Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.c
    ../Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c

Regards,
Peter
p.s.: the same happens for the M7 core.
 

Hello @peterdonchev 

Your contribution is much appreciated.

A ticket  has been escalated to the development team in order to fix this issue . Internal ticket number 200674 

I'll keep you informed about any updates.

THX

Ghofrane