How to add FatFs to example project
I would like to add FatFs to an example project of STM32Cube_FW_F4 (LCD_DSI_CmdMode_SingleBuffer). I don’t know how to add header file folder or source file into example project. Got many error messages. Here are some questions:
1. How to add the path of FatFs header files in the “Includes”? No response when right click..
2. How and where should I add the FatFs source files? For now, I copy source file and paste it under “User” folder.
3. I got the error “Please select first the Board used in your application (in boardname_eval.h file)” which is from “ffconf.h”. Where should I define “USE_STM32469I_DISCOVER”? I tried to define it in the ffconf.h or main.h, but I still got the same error message.
#ifdef USE_STM324x9I_EVAL
#include “stm324x9i_eval_sd.h”
#elif USE_STM324xG_EVAL
#include “stm324xg_eval_sd.h”
#elif USE_STM32446E_EVAL
#include “stm32446e_eval_sd.h”
#elif USE_STM32469I_EVAL
#include “stm32469i_eval_sd.h”
#elif USE_STM32469I_DISCOVERY
#include “stm32469i_discovery_sd.h”
#else
#error “Please select first the Board used in your application (in boardname_eval.h file)”
#endif
4. ‘SRAM_DEVICE_ADDR’ undeclared (first use in this function). I already add #include “stm32469i_discovery_sdram.h”, but I still got this message. How should I do?
I’ve done lots of try and error. Any suggestions would be appreciated.