This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] RTOS/MSP432P401R:重建三十个方驱动程序 fat ->f_findfirst

Guru**** 2589035 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/623939/rtos-msp432p401r-rebuild-thirty-party-drivers-fat---f_findfirst

器件型号:MSP432P401R

工具/软件:TI-RTOS

您好!

我想使用此函数:  

f_findfirst 

用于读取 SD 卡。

  1. 我已修改文件 ffconf.h
    #define _use_find 1
    //此选项切换过滤目录读取功能和相关函数
    ,/f_findfirst()和 f_findln()。 (0:禁用或1:启用)*/ 

  2. 在目录中  
    ti/simplelink_msp432_sdk_1_40_01_00/ source/third_party/fatfs 

    我已运行:

    /../../../../xdctools_3_50_02_20_core/gmake -f makefile clean
    ./../../../../xdctools_3_50_02_20_core/gmake -f makefile all 

    一切都构建良好。

但是、在运行程序后、我仍然会遇到此错误:

未定义的第一个引用
符号 文件中
------ --------
f_findfirst ./sim.obj
f_findnext ./sim.obj

错误#10234-D:未解析的符号仍存在
错误#10010:链接期间遇到错误;未生成"xxx.out" 

我还应该做什么来重建驱动程序吗?

我使用 simplelink 1.4。

谢谢你

Miha.




  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Miha、

     我只是在我的身边尝试过这种方法、我无法重现问题。

    请确保您的项目正在链接更新的库。 在本例中、它位于以下位置:C:/ti/simplelink_msp432_sdk_1_40_00_28/source/third_party/fatfs/lib/fatfs.aem4f

    l"C:/DLara-wa/ccs_msp432_ccsv7_1_msp432p401r/tirtos_builds_MSP_EXP432P401R_release_ccs/Debug/configPkg/linker.cmd "-l"C:/ti/simplelink_msp432_sdk_1_40_00_28/source/ti/display/lib/display.aem4f -l"C:/ti/simplelink_msp432_sdk_1_40_00_28/source/ti/drivers/lib/drivers_msp432p401x.aem4f -l"C:/ti/simplelink_msp432_sdk_1_40_00_28/source/third_party/fatfs/lib/fatfs.aem4f -l"C:/ti/simplelink_msp432_sdk_1_40_00_28/kernel/tirtos/packages/ti/dpl/lib/dpl_msp432p401x.aem4f -l"C:/ti/simplelink_msp432_sdk_1_40_00_28/source/ti/devices/msp432p4xx/driverlib/ccs/msp432p4xx_driverlib.lib -llibc.a

    '完成的构建目标:fatsDraw MSP_EXP432P401R_tirtos_ccs.out'

    另外、我要附加我刚刚构建 的 fatfs.aem4f 库、请尝试一下、如果您看到相同的行为、请告诉我。

     谢谢、

       David

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 David:

    我发现我正在编译路径上的 makefile 文件:

    /Users/miha/ti/simplelink_msp432_sdk_1_40_01_00/source/third_party/fatfs 


    以下内容中的实例:

    /Applications/ti/simplelink_msp432_sdk_1_40_01_00/source/third_party/fatfs 


    你又拯救了我的生命:D

    感谢您的支持

    Miha.