arpruss / USBComposite_stm32f1

USB Composite library for STM32F1 (HID, Serial, MIDI and XBox360 controller)
Other
381 stars 76 forks source link

boards.h: No such file or directory #75

Closed mentaluproar closed 3 years ago

mentaluproar commented 4 years ago

When attempting to use this library on an SKR E3-DIP 3d printer control board, set as a genericSTM32F103RC board, I get the missing file error in the title. No boards.h file. I figured I would have to configure this board somewhere but there's no boards.h file to modify.

arpruss commented 4 years ago

I remember such a report. I think the person wasn't using the official Arduino IDE.

mentaluproar commented 4 years ago

Oh sorry, I am using platformIO. I wasn't able to get the Arduino IDE to do anything with this control board.

arpruss commented 4 years ago

See: https://www.instructables.com/id/Gamecube-Controller-USB-Adapter-and-Getting-Starte/

BrianHarper commented 3 years ago

I have a ST-link v2 and "bluepill), trying to program with Arduino 1.8.11 and the latest STM32 cores board config. But when trying to compile the MidiPotentiometer.ino I'm getting the following:-
Arduino: 1.8.11 (Windows 7), TD: 1.51, Board: "Generic STM32F1 series, BluePill F103C8, STM32CubeProgrammer (SWD), Enabled (generic 'Serial'), HID (keyboard and mouse), Low/Full Speed, Smallest (-Os default), Newlib Nano (default)"

In file included from C:\Users\user\Desktop\arduino-1.8.11\portable\sketchbook\libraries\USBComposite_stm32f1-master\examples\MidiPotentiometer\MidiPotentiometer.ino:1: C:\Users\user\Desktop\arduino-1.8.11\portable\sketchbook\libraries\USBComposite_stm32f1-master/USBComposite.h:4:10: fatal error: boards.h: No such file or directory 4 | #include | ^~~~~~ compilation terminated.

exit status 1 Error compiling for board Generic STM32F1 series.

Could some one plese point me in the right direction as to what I am missing. Thanks....

arpruss commented 3 years ago

Are you using platformIO?

BrianHarper commented 3 years ago

Are you using platformIO?

No, using the Arduino 1.8.11 IDE

arpruss commented 3 years ago

Looking at your error message, I think you're not using Roger's libmaple based core.

BrianHarper commented 3 years ago

No I don't have that installed, just the standard "stm32 cores". do I need Roger's libmaple based core as well, or instead of what I already have installed

arpruss commented 3 years ago

This library is not compatible with the stm supplied core. You need the libmaple core instead.

BrianHarper commented 3 years ago

Yes just installed a seperate portable IDE and installed the libmaple core and managed to get it working, Thanks for your help. Now to build a USB Midi CC controller.....