MCUExpresso cannot find files

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCUExpresso cannot find files

939 Views
Davidino
Contributor IV

Goodmorning,

I write you since I recently move from MCUExpresso version 11.5.1 from version 11.3.0. A new problem arises: in some cases, I had to provide the "full-path" for including a file, otherwise the compiler cannot find it, even if given it's an auto-generated file. In the image below you can see in the Project Explorer window the position of disk.h and ff.h respect to peripheral.h. I had to modify peripherals.h (which is a file generated with ConfigTools) providing the full path for files, ff.h and diskio.h.

Davidino_0-1655276742403.png

I changed it from:

#include "ff.h"
#include "diskio.h"

to:

#include "../fatfs/source/ff.h"
#include "../fatfs/source/diskio.h"

Below you can see that the include paths are correct.

Nuova immagine bitmap (3).bmp

How can I solve it?

Thank you

0 Kudos
2 Replies

929 Views
ErichStyger
Senior Contributor V

what if you add

"../fatfs"

"../fatfs/source"

to your include directory list (-I option)?

Additionally: keep in mind that your dialog shows the release build, but maybe things are different for the debug build?

0 Kudos

926 Views
Davidino
Contributor IV

Hello @ErichStyger,

As my project is very big, I only use Release Mode for having the maximum optimization, in Debug mode the project is too slow.

I try to include the relative paths to the include path list as you suggested but I get the same error.

However, thank you for your answer.

0 Kudos