cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT*** PLEASE HELP**** FatFS.h no such file or directory when running from touchgfx designer, the files are included because they are generated with CUBEMX and the code complies without errors in CUBE IDE, STM32F746 Disco

BO Re.1
Associate II

when i try and flash the board through the designer it keeps failing. I have tried removing the files and creating a new folder and linking that one but no success, i am desperate my project is due to be presented on Friday, i have experimented with all parts separately and now i am combining the code, the last piece if the FatFS SDMMC, data logging, the code works perfectly as it is tried and tested, i simply dont understand why this is happening, it should be a simple process just to add code that has already worked on the 746 Disco board, although that was without the screen, but this part of the project is just data logging and has no interaction with the screen apart from sharing a task in main.c. the header is there as CubeIDE complies can someone please get back to me ASAP, it is important. here is the log from TouchGFX designer

Image is not available

Image is not available

0693W000000V7nMQAS.jpg0693W000000V7lBQAS.jpg

 0693W000000V7nMQAS.jpg

13 REPLIES 13
TDK
Guru

Make sure the file is in your include path.

Your images are not displaying.

If you feel a post has answered your question, please click "Accept as Solution".

0693W000000V7khQAC.jpgThanks For getting back to me TDK, i am sorry if i wasn't clear in ,my post but yes the file path IS included, the code complies without error in CUBEIDE by it wont flash to the board through TouchGFX designer.

a separate issue is that my ST link fails when i try and enter Debug mode in CUBEIBE, that is why i have to flash the board through ToughGFX. Everything has worked ok up until i added this FatFS part to my code.

i will go through the steps of linking the includes files again, i have attached the pictures again lets hope they upload properly this time .

0693W000000V7lBQAS.jpg

0693W000000V7nMQAS.jpg

Martin KJELDSEN
Chief III

If you have additional files you must modify the Makefile the designer uses, accordingly.

/Martin

thanks for getting back to me Martin,

what modification should i make to MakeFile and which one, there seems to be 4, 2 are Simulation related ,1 debug and 1GCC.

i have attached copy of section of MakeFile, should i create a path like the one highlighted

0693W000000V92wQAC.jpg

Barry

The Makefile has the following two variables you can add to.

include_paths := 
source_paths :=

/Martin

thanks Martin,

i know your probably busy, here is what i added but it hasnt worked , so its probably wrong any advice?

0693W000000V9gmQAC.jpg

Barry

ya that is the same, my issue now is how to format

do i put it in as complete file path i.e.

Application/User/FATFS

could you give an example , please

thanks

Barry

From that Post:

"Add your includepath to include_paths. It's relative to the application."

So if "Application" is in the root folder, then "Application/User/FATFS" is right.

/Martin