Hi im using the fatfs library and i get those undefiend references to the ff.c functions in usb_msd_fatfs.c
I know its an easy fix but i just can't find out why it dosent work. im using mcuexpressoIDE 11.1.2_4120 and latest SDK
Solved! Go to Solution.
I'm not sure how moving files and folders would have fixed the same issue since the linking problem is actually triggered by conditional compilation. If you'll inspect closely ff.c, you'll notice that f_chmod and f_utime are guarded by: #if FF_USE_CHMOD && !FF_FS_READONLY
To fix the linking issue, you'll need to adjust configuration parameters for FatFS - see ffconf.h.
Greetings,
MCUXpresso IDE Support
Hello Claude,
Hope you are doing well.
I've checked your project and it seems that all your files have been added and linked properly, so it is strange that you are getting this error. Could you please try importing the host_msd_fatfs project and copy the extra files from your application to this folder. If possible build the project when you add and link a folder so you can identify if any other file is causing an issue.
Best Regards,
Sabina
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
most of the file come directly for the example msd project. I think i already had this problem and the quick fix was to put all fatfs file into the source folder but now i cant do that cause fatfs files are linked to the sdk.
I'm not sure how moving files and folders would have fixed the same issue since the linking problem is actually triggered by conditional compilation. If you'll inspect closely ff.c, you'll notice that f_chmod and f_utime are guarded by: #if FF_USE_CHMOD && !FF_FS_READONLY
To fix the linking issue, you'll need to adjust configuration parameters for FatFS - see ffconf.h.
Greetings,
MCUXpresso IDE Support
Got it
FF_FS_READONLY need to be 0 and
FF_USE_CHMOD need to be 1 witch he was to 0 then it complile. thx for your answer.