infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 3 of 3

Thread: FATFS problem that APP configuration parameters are ignored

  1. #1
    Beginner Beginner M.Schneiders is on a distinguished road
    Join Date
    Sep 2014
    Posts
    12
    Points
    104.53125

    FATFS problem that APP configuration parameters are ignored

    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.

    Code:
    #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

  2. #2

    Infineon Employee
    Infineon Employee
    jferreira will become famous soon enough
    Join Date
    Oct 2012
    Posts
    586
    Hi,

    Which version of the FATFS APP are you using?

    Regards,
    Jesus
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    Beginner Beginner M.Schneiders is on a distinguished road
    Join Date
    Sep 2014
    Posts
    12
    Points
    104.53125
    Now I'm using 4.0.24...and it is workking now.

    Thanks

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.