Undefiend References to ff.h functions

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Undefiend References to ff.h functions

ソリューションへジャンプ
5,424件の閲覧回数
claudecdg66
Contributor II

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

タグ(1)
0 件の賞賛
返信
1 解決策
5,324件の閲覧回数
lpcxpresso_supp
NXP Employee
NXP Employee

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

元の投稿で解決策を見る

4 返答(返信)
5,324件の閲覧回数
Sabina_Bruce
NXP Employee
NXP Employee

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!

----------------------------------------------------------------------------------------------------------------------- 

0 件の賞賛
返信
5,324件の閲覧回数
claudecdg66
Contributor II

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.

0 件の賞賛
返信
5,325件の閲覧回数
lpcxpresso_supp
NXP Employee
NXP Employee

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

5,324件の閲覧回数
claudecdg66
Contributor II

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.

0 件の賞賛
返信