How to add FatFs to example project
Hi Jimmy,
Usually you should define this kind of symbol in the project properties (C/C++ General >> Includes and Symbols) but it should be defined in the example project provided in the firmware package.
The FATfs source files should be included either, as you’ve done, by copying them in your project or, what is more in line with how demo projects are created, by creating a linked directory to the source directory; you should also add the include files in your include search path in the same dialog you used to define USE_STM32469I_DISCOVERY anove.
Another solution, probably cleaner, is to create a new project using SW4STM32, selecting the various firmwares you need (FATfs here) and load the firmware “As sources in the project”; then you can copy the application source code from the demo project in your new project and add initialization code to include FATfs.
Bernard (Ac6)