Skip to main content
PBobo.1
Associate II
December 16, 2020
Solved

"No such file or directory" error

  • December 16, 2020
  • 1 reply
  • 1807 views

I created a new project in STM32CubeIde (STM32F401, USB Host MSC). I haven't added a single line of my code yet. When I try to compile the project, the error appears:

../Middlewares/Third_Party/FatFs/src/option/../ff.h:29:10: fatal error: ffconf.h: No such file or directory

Such errors appear for almost every line of source code starting with "#include".

I've seen similar threads on this forum before, but it's been a few months since then. STM32CubeIde menu structure has changed and the old advice no longer applies. I am asking for help in dealing with this error.

This topic has been closed for replies.
Best answer by PBobo.1

After I deleted the project two or three times and created it again, it suddenly started compiling successfully. I don't know why this happened.

1 reply

PBobo.1
PBobo.1AuthorBest answer
Associate II
December 16, 2020

After I deleted the project two or three times and created it again, it suddenly started compiling successfully. I don't know why this happened.