STM32 F401CCux "usb_device.h" No such file or directory

Post here first, or if you can't find a relevant section!
Post Reply
smudge_smiff
Posts: 2
Joined: Sun Jul 16, 2023 1:52 pm

STM32 F401CCux "usb_device.h" No such file or directory

Post by smudge_smiff »

Hi,

I followed this tutorial https://www.hackster.io/voske65/usb-hid ... t-1-d63550 to create a USB Joystick with STM32CubeIDE - worked straight away - Great!

However, I am trying to convert this for use in the Arduino environment. I copied over the usb_hid.c/.h files, However, when I go to import "usb_device.h", in the same way as shown in the above tutorial, I get a "No such file or directory" error. What's the best way of including this file?

Many Thanks in advance!
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: STM32 F401CCux "usb_device.h" No such file or directory

Post by fpiSTM »

This file is not part of the core. Probably it is a custom file from the cube_mx project.
The core already support HID(keyboard and mouse). You should simply start from this to add Joystick.
Post Reply

Return to “General discussion”