Skip to content

{build.source.path} No such file or directory #600

Closed
@rtek1000

Description

@rtek1000

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?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions