cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Auto-Generated Files for Ethernet and USB Custom HID in STM32CubeIDE

Badrinathan
Associate II

Hello 

I am working on an STM32F765VGT6 microcontroller using STM32CubeIDE v1.17.0 on Windows 10 Pro. The project requires enabling both Ethernet (ETH) and USB Custom HID functionalities.  

Enabled Connectivity in STM32CubeIDE:

1. Ethernet (ETH) 

 Mode: RMII

2.USB Configuration

Custom Human Interface Device (HID) enabled 
USB_OTG_FS in Device Mode

Problem Faced:

  1. In Project Manager → Code Generator, there are two options: 
  2. For Ethernet: Requires selecting "Add necessary library files as reference in the toolchain project configuration file."
  3. For USB Custom HID: Requires selecting "Copy only necessary library files."
  4. However, both options cannot be selected simultaneously, forcing me to choose Add necessary library files as reference in the toolchain project configuration file. Please find the attachment for your reference.

    Issue with USB Middleware Files:
  • Due to the selected option, USB middleware files are not being generated properly
  • As a temporary solution, I manually add the missing USB middleware files.
  • However, every time the .ioc file is modified, all manually added files get deleted, so we have to add them again.

    Required Solution:

Could you please guide me on how to properly configure both Ethernet and USB Custom HID in STM32CubeIDE so that:

  • All required auto-generated files (including middleware) are generated correctly. Modifying the `.ioc` file does not cause loss of manually added files.
  • I would appreciate your support on this matter. Looking forward to your response.

Regards
Badrinathan J

0 REPLIES 0