2021-03-10 03:58 AM
Deer electronicians,
I was following the video "STM32 – Creating a File System on a SD card" from the ST Youtube channel.
I done stricty the same things as in the video but an error occurs.
../Core/Src/main.c:22:10: fatal error: fatfs.h: No such file or directory
22 | #include "fatfs.h"
| ^~~~~~~~~
compilation terminated.
I tried to enter manually the include path for all the files concened but many new errors are rising.
My config :
I stay reachable for any questions or precisions.
Cordialement,
François
Solved! Go to Solution.
2021-03-10 04:46 AM
Issue solved !!!!
I just changed some parameters :
1 - change the repository path (mine was a problem because i was having a "ç" in the name via the firmware updater
2 - when creating a project : select the first option : add necessary library ....
Tadam !!
2021-03-10 04:02 AM
Should be able to add include paths to project for compiler to search on.
Show compiler command line, and configuration pane with paths.
2021-03-10 04:06 AM
the text is too lon to be pasted here.
is it what yous asked ? or do you want something particular in the properties tab ?
2021-03-10 04:08 AM
-mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F746xx -c -I../Core/Inc -I../Drivers/STM32F7xx_HAL_Driver/Inc -I../Drivers/STM32F7xx_HAL_Driver/Inc/Legacy -I../Drivers/CMSIS/Device/ST/STM32F7xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb
took on the project properties > C/C+ build > Settings
2021-03-10 04:46 AM
Issue solved !!!!
I just changed some parameters :
1 - change the repository path (mine was a problem because i was having a "ç" in the name via the firmware updater
2 - when creating a project : select the first option : add necessary library ....
Tadam !!
2021-03-10 04:55 AM
That doesn't look to have paths to the Middleware directories