Alex Brig Posted November 18, 2016 Report Posted November 18, 2016 Hello. I'm working on a project in the Keil and want to connect FatFS. In gfxconf.h file set the following settings: #define GFX_USE_GFILE TRUE #define GFILE_NEED_ROMFS TRUE #define GFILE_NEED_FATFS TRUE #define GFILE_ALLOW_DEVICESPECIFIC TRUE #define GFILE_MAX_GFILES 2 When you compile the project get the error: Error: L6218E: Undefined symbol disk_initialize (referred from gfx_mk.o). Error: L6218E: Undefined symbol disk_ioctl (referred from gfx_mk.o). Error: L6218E: Undefined symbol disk_read (referred from gfx_mk.o). Error: L6218E: Undefined symbol disk_status (referred from gfx_mk.o). Error: L6218E: Undefined symbol disk_write (referred from gfx_mk.o). Error: L6218E: Undefined symbol get_fattime (referred from gfx_mk.o). What should be done to resolve these errors? Thank you.
Joel Bodenmann Posted November 18, 2016 Report Posted November 18, 2016 Hello Alex and welcome to the community! FatFS requires you to implement the disk interface. That is a set of functions known to FatFS that it will use to communicate with the actual memory device. FatFS comes with the corresponding template files named diskio.h and diskio.c. You have to copy these files to your project and implement them accordingly to your system. µGFX itself only comes with built-in diskio implementations for ChibiOS/RT.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now