MCUExpresso cannot find files

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MCUExpresso cannot find files

1,906 次查看
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 项奖励
回复
2 回复数

1,896 次查看
ErichStyger
Specialist I

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 项奖励
回复

1,893 次查看
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 项奖励
回复