Jul 16, 2019
02:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 16, 2019
02:51 AM
I would like to read a text file with the help of the FATFS APP and the command f_gets. But after using the command I got a compiler error that there is a “undefined reference to `f_gets'”. Problem is, that commands like f_gets are only available if FF_USE_STRFUNC in file “ffconf.h” is at least 1.
In advanced setting of FATFS-APP it is possible to select “Enable w/o LF -> CRLF conversation”. If I change this setting and generate code no change is done in file “ffconf.h” and I still get the error.
Manuell changing the value of FF_USE_STRFUNC to 1 or 2 enables the function f_gets and everything is fine until next time generating code in DAVE.
Generation code only changes “#define FATFS_STRFUNC” in file “fatfs_conf.h” but this define is nothing else uses in the hole project. Some other options that are available in APP configuration are also ignored.
Has anybody an idea how to enable this option permanent so that it is save also by generation new code?
Infineon please update code generation process for FATFS-APP.
Thanks
M.Schneiders
#define FF_USE_STRFUNC 0
/* This option switches string functions, f_gets(), f_putc(), f_puts() and f_printf().
/
/ 0: Disable string functions.
/ 1: Enable without LF-CRLF conversion.
/ 2: Enable with LF-CRLF conversion. */
In advanced setting of FATFS-APP it is possible to select “Enable w/o LF -> CRLF conversation”. If I change this setting and generate code no change is done in file “ffconf.h” and I still get the error.
Manuell changing the value of FF_USE_STRFUNC to 1 or 2 enables the function f_gets and everything is fine until next time generating code in DAVE.
Generation code only changes “#define FATFS_STRFUNC” in file “fatfs_conf.h” but this define is nothing else uses in the hole project. Some other options that are available in APP configuration are also ignored.
Has anybody an idea how to enable this option permanent so that it is save also by generation new code?
Infineon please update code generation process for FATFS-APP.
Thanks
M.Schneiders
- Tags:
- IFX
2 Replies
Jul 16, 2019
08:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 16, 2019
08:08 AM
Hi,
Which version of the FATFS APP are you using?
Regards,
Jesus
Which version of the FATFS APP are you using?
Regards,
Jesus
Jul 17, 2019
12:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 17, 2019
12:16 AM
Now I'm using 4.0.24...and it is workking now.
Thanks
Thanks