Jump to content

Recommended Posts

Posted

Hello,

I'm developping an Application for my Carrera. Therfore I added a Filesystem from SD-Card to my System.

Because I'm devolpping with CubeMX I use FatFs in Version 0.11b, modified from ST. Because im Using this, I wanted to use 

GFILE_NEED_USERFS

After I compiled and tested the source code, I found the Problem GFILE_NEED_USERFS is not supported from the UGFX Source Code like provided in the API description (https://wiki.ugfx.io/index.php/USERFS)

So I modified my Source code with the following lines:

#if GFILE_NEED_USERFS
  extern const GFILEVMT FsUSERVMT;
#endif

/**
 * The order of the file-systems below determines the order
 * that they are searched to find a file.
 */
static const GFILEVMT const * FsArray[] = {
	#if GFILE_NEED_ROMFS
		&FsROMVMT,
	#endif
	#if GFILE_NEED_NATIVEFS
		&FsNativeVMT,
	#endif
	#if GFILE_NEED_FATFS
		&FsFatFSVMT,
	#endif
	#if GFILE_NEED_RAMFS
		&FsRAMVMT,
	#endif
  #if GFILE_NEED_USERFS
		&FsUSERVMT
  #endif
};

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...