Page 1 of 1

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

Posted: Sun Jul 16, 2023 2:04 pm
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!

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

Posted: Fri Jul 21, 2023 6:43 am
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.