You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to compile with IDE 1.8.12, but it is giving error:
fatal error: usbh_core.h: No such file or directory
Sketch (tried instructions):
// OK:
#include "C:\Arduino IDE\arduino-1.8.12-windows\arduino-1.8.12\portable\packages\STM32\hardware\stm32\1.8.0\system\Middlewares\ST\STM32_USB_Host_Library\Core\Inc\usbh_core.h"
// Not OK:
#include <usbh_core.h>
The files are present in the Arduino subfolders, and the platform.txt file has the following instruction: compiler.stm.extra_include="-I{build.source.path}" "-I{build.core.path}/avr" "-I{build.core.path}/stm32" "-I{build.core.path}/stm32/LL" "-I{build.core.path}/stm32/usb" "-I{build.core.path}/stm32/usb/hid" "-I{build.core.path}/stm32/usb/cdc" "-I{build.system.path}/Drivers/{build.series}_HAL_Driver/Inc" "-I{build.system.path}/Drivers/{build.series}_HAL_Driver/Src" "-I{build.system.path}/{build.series}" "-I{build.system.path}/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I{build.system.path}/Middlewares/ST/STM32_USB_Device_Library/Core/Src"
Even so, an error is occurring.
Is there a way to debug in more detail why the IDE is not finding the file?
For the issue open in the arduino-cli, I guess your config is not correct.
Before opened an issue try to understand why it's not work.
You didn't add the path to the
system/Middlewares/ST/STM32_USB_Host_Library/
Only to the Device...
I am trying to compile with IDE 1.8.12, but it is giving error:
Sketch (tried instructions):
The files are present in the Arduino subfolders, and the platform.txt file has the following instruction:
compiler.stm.extra_include="-I{build.source.path}" "-I{build.core.path}/avr" "-I{build.core.path}/stm32" "-I{build.core.path}/stm32/LL" "-I{build.core.path}/stm32/usb" "-I{build.core.path}/stm32/usb/hid" "-I{build.core.path}/stm32/usb/cdc" "-I{build.system.path}/Drivers/{build.series}_HAL_Driver/Inc" "-I{build.system.path}/Drivers/{build.series}_HAL_Driver/Src" "-I{build.system.path}/{build.series}" "-I{build.system.path}/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-I{build.system.path}/Middlewares/ST/STM32_USB_Device_Library/Core/Src"
Even so, an error is occurring.
Is there a way to debug in more detail why the IDE is not finding the file?
https://github.com/stm32duino/Arduino_Core_STM32/blob/master/platform.txt
https://github.com/stm32duino/Arduino_Core_STM32/blob/master/system/Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_core.h
The text was updated successfully, but these errors were encountered: