2019-07-21 07:28 AM
Hi ST Community,
as you see in the pic below I have a problem with bsp_driver_sd.h
I created a new folder called Fatfs and in this folder a new one its name Core , I put the source file as shown, I ceated the header file (bsp_driver_sd.h) but i still don't understand the problem.
Clive Two.Zero save me please! thanks
2019-07-21 09:16 AM
The compiler expects a list of "Include Paths" which I can use to search/file the files. Typically in the C/C++ Compiler options tab for the project, sorry not using CubeIDE
Whatever the path to bsp_driver_sd.c / bsp_driver_sd.h is, add that to the list
2019-07-21 09:25 AM
Which list do you talk about?
and if I created files wherever in the project, the compiler wont be able to see them?
if yes that’s hard to know in which folder I have to put the file!
i can’t understand the point with “include path�?
2019-07-21 09:34 AM
>>i can’t understand the point with “include path�?
Standard compiler stuff from 40+ years, so you don't have to replicate all the library includes in your singular project directory. You tell the compiler where to find them, and it goes and looks.
Surely this stuff is discussed in training/texts these days?
2019-07-21 09:42 AM
I did same when I wanted to create a new project and use the BSP_LCD, I’ve done just like the example in the repository but it didn’t work, that’s really not cool :(
but i noticed something, when I create a new project and use the middleware of SD-card(FatFs) it generates a bsp driver like I showed you in the first message, I wonder if there’s not a driver for lcd in the middleware (CubeMX) or somewhere, have you an idea about that?