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.

TMS320F28379D: Adding SD card unresolved symbol error

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Hi team,

I'm trying to add SDFATS support to the TINV_F28379D reference design code. I've included included the library in the linked resources:

And in the include options for the compiler.

and in the include path of the linker:

I've called the header files in the main.c:

however I still, get an unresolved symbol error:

I can see that CCS can link the function to the appropriate library file and I see that the library is one of the include paths in the compiler flags and in the linker flags. I'm not sure what other settings need to be modified to build this project.

Thanks!

  • Nishka, 

    You also have to include the compiled fatfs.lib in the project. 

    You can do that by adding the following lines in the projectspec for your particular project 

    //
    // Adding FatFs library to be compiled with the project
    //
    <configuration name="CPU1_RAM" compilerBuildOptions=  "--opt_level=off -I${C2000WARE_ROOT} -I${PROJECT_ROOT}/device -I${C2000WARE_DLIB_ROOT} -I${FAT_FS} -v28 -ml -mt --cla_support=cla2 --define=RAM --float_support=fpu64 --tmu_support=tmu1 --define=DEBUG --define=CPU1 --gen_func_subsections=on --diag_warning=225  --diag_suppress=10063" linkerBuildOptions="--entry_point code_start --stack_size=0x3F8 --heap_size=0x200 -i${C2000WARE_ROOT} -i${PROJECT_BUILD_DIR}/syscfg -lc2000ware_libraries.cmd.genlibs " />
      
    //
    // Including FatFS path
    //
    <pathVariable name="FAT_FS" path="../../../../../../libraries/fatfs" scope="project" />
    
    //
    // Linking compiled fatfs.lib
    //
    <file action="link" path="${FAT_FS}/ccs/f2838x/Debug/fatfs.lib" targetDirectory="" />

    Thanks. 

  • Thanks so much for the reply.

    Is there a way to do that through the project properties gui?

  • Sure Nishka. 

    The two steps that are required are as follows:

    1. Add the following path to the Include Options : "${C20000WARE_ROOT}\libraries\fatfs"

    2. You will have to add the compiled fatfs library from the following location (drag & drop / copy-paste): "C:\ti\c2000\C2000Ware_X_XX_00_00\libraries\fatfs\ccs\f28p65x\Release"

    You will get an option to Link the file for which you can use the above path. 

    The project should build successfully after that. 

    Thanks.