Carsten Posted March 4, 2017 Report Posted March 4, 2017 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 };
Joel Bodenmann Posted March 6, 2017 Report Posted March 6, 2017 Hello @Carsten and welcome to the µGFX community! The GFILE_NEED_USERFS feature has been added after the latest stable release. Just use the latest master branch of the git repository to get that feature (and many more).
Carsten Posted March 6, 2017 Author Report Posted March 6, 2017 Thanksfor the fast answer. I did a short test and can compile and run the application.
Joel Bodenmann Posted March 6, 2017 Report Posted March 6, 2017 Glad to hear that you got it up and running!
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