Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rtek1000 opened this issue Mar 2, 2020 · 2 comments
Closed

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

rtek1000 opened this issue Mar 2, 2020 · 2 comments
Labels
conclusion: invalid Issue/PR not valid

Comments

@rtek1000
Copy link

rtek1000 commented Mar 2, 2020

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

@rtek1000
Copy link
Author

rtek1000 commented Mar 2, 2020

Other files are also unable to find the references:

#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\Class\MSC\Inc\usbh_msc.h"

usbh_msc.h:29:10: fatal error: usbh_core.h: No such file or directory

https://github.com/stm32duino/Arduino_Core_STM32/blob/master/system/Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc/usbh_msc.h

@rtek1000
Copy link
Author

rtek1000 commented Mar 2, 2020

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...

From: stm32duino/Arduino_Core_STM32#960

@rtek1000 rtek1000 closed this as completed Mar 2, 2020
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid
Projects
None yet
Development

No branches or pull requests

2 participants