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.

how use FatFS with CodeComposerStudio5

Other Parts Discussed in Thread: OMAP-L138, SYSBIOS, CSD

Hallo Community,

i have the evm from LogicPD with OMAP-L138. After long searching i could't find any User Guide how to include FatFS module from SYS/BIOS to CCS and make it working.

in the config file i found fatfs under available products->bios_6_33_05_46->ti->sysbios->fatfs and add to the project, but the button is rad, all the over are blue!

now if i using f_open("1:file.txt"); nothing happens on the card, no file is created.

So who can help me!

  • Hi Eugen Frick,

    Are you able to run the FatFS example, located in the following directory?

    C:\ti\bios_6_33_05_46\packages\ti\sysbios\fatfs\examples

    You can also find documentation under the CCS help.  Please see the below screen shot.

    Steve

  • Hi Steve,

    i'm not able to run this example, if i try to add it over project -> import existing ccs eclipse project CCS can't find a project at this folder.

    i just need one running example for writing data to SD-Card in fat32 to understand how it works. Is it impossible to download such an example anywhere?

    Eugen

  • Hi Eugen,

    The FatFS support included with SYS/BIOS currently only supports a RAM disk.  You need to get the BIOS PSP  drivers.  This product has the SD card example + driver for FatFS with SYS/BIOS.  Please see this post for the link:

    http://e2e.ti.com/support/embedded/bios/f/355/p/157303/573234.aspx#573234

    Steve

  • Hallo Steve,

    thank you for your help, i found the BIOSPSP 03.00.01.00 and install all the needed modules, but i'm woundering why only the I2C example is avaible and the others hat to be build. by trying to build the examples i using the User Guide chapter 1.5. But i'm doing something wrong so by building i get an error:

    C:\ti\biospsp_03_00_01_00>gmake evm6748_mmcsd_fatfs_sample
    # Configuring XDC packages for evm6748_mmcsd_fatfs_sample:c6xdsp:debug
    gmake -C C:/ti/biospsp_03_00_01_00/drivers\examples\evm6748\mmcsd_fatfs xdc_conf
    iguro PLATFORM=c6748-evm CORE=c6xdsp PROFILE_c6xdsp=debug
    gmake[1]: Entering directory `C:/ti/biospsp_03_00_01_00/drivers/examples/evm6748
    /mmcsd_fatfs'
    # Invoking configuro...
    a+x maketemp_configuro_cmd_c6xdsp.bat
    maketemp_configuro_cmd_c6xdsp.bat

    C:\ti\biospsp_03_00_01_00\drivers\examples\evm6748\mmcsd_fatfs>C:/ti/xdctools_3_
    23_03_53/xs xdc.tools.configuro --generationOnly -o obj/c6748-evm/c6xdsp/debug/e
    vm6748_mmcsd_fatfs_sample_configuro -t ti.targets.elf.C674 -p ti.platforms.evm67
    48 -r whole_program -c C:/ti/C6000C~1.1 -b C:/ti/biospsp_03_00_01_00/config.bld
    mmcsdSample.cfg
    making package.mak (because of package.bld) ...
    js: "C:\ti\xdctools_3_23_03_53\packages\xdc\tools\configuro\template\compiler.op
    t.xdt", line 66: Error: template generation of 'compiler.opt' failed: Error: C:/
    ti/C6000C~1.1 cannot be found. Ensure that rootDir for the C674 target is set co
    rrectly in ./config.bld
        "./package.bld", line 60
    xdctools_3_23_03_53\gmake.exe: *** Deleting file `package.mak'
    xdctools_3_23_03_53\gmake.exe: *** No rule to make target `linker.cmd'.  Stop.
    js: "C:/ti/xdctools_3_23_03_53/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.
    tools.configuro: configuration failed due to earlier errors (status = 2); 'linke
    r.cmd' deleted.
    gmake[1]: *** [xdc_configuro] Error 1
    gmake[1]: Leaving directory `C:/ti/biospsp_03_00_01_00/drivers/examples/evm6748/
    mmcsd_fatfs'
    gmake: *** [evm6748_mmcsd_fatfs_sample] Error 2

    i install all the components in C:\ti\...

    looks like C600C~1.1 is not created, i cant find such a file on my computer



  • ones more:

    the userguide: http://software-dl.ti.com/dsps/dsps_public_sw/psp/BIOSPSP/03_00_01_00/index_FDS.html

    Chapter 1.5 on Page 17th.

    is it right that i just have to make changes in the <Install Path>\makerules\env.mk file? all my components are in the C:/ti folder and my changings are:

    INTERNAL_SW_ROOT = C:/ti/biospsp_03_00_01_00

    EXTERNAL_SW_ROOT = C:/ti

    UTILS_INSTALL_DIR = C:/ti/xdctools_3_23_03_52

    ROOTDIR = C:/ti/biospsp_03_00_01_00

    bios_PATH = $(EXTERNAL_SW_ROOT)/bios_6_33_05_46

    xdc_PATH = $(EXTERNAL_SW_ROOT)/xdctools_3_23_03_53

    ipc_PATH = $(EXTERNAL_SW_ROOT)/ipc_1_24_03_32

    edma_PATH = $(EXTERNAL_SW_ROOT)/edma3_lld_02_11_02_04

    CGTOOLS = C:/ti/C6000_Code_Generation_Tools_7_3_8

    EDMA3LLD_BIOS6_INSTALLDIR = C:/ti/edma3_lld_02_11_02_04

    BIOS6_INSTALL_DIR = C:/ti/bios_6_33_05_46

    or shood i do some of this settings in the command window? like set CGTOOLS = C:/ti/C6000_Code_Generation_Tools_7_3_8 ?

    after this settings i'm going in command window to the folder C:/ti/biospsp_03_00_01_00> and make the commands gmake cleanall, libs, examples... but i always get an error!

  • Eugen,
    what's the version of Windows you are using? It's possible that the 8.3 naming for long file names is disabled on your PC. You can quickly check if that's the cause by renaming your compiler directory to C:/ti/C6xTools, and use that name in your env.mak file for CGTOOLS.

  • I'm using Win7 Pro 64bit.

    i change the name to C:/ti/C6xTools but its still the same

  • There is a video/wmv file under the docs folder of BIOSPSP that explains about project creation. Did it help you?

  • Eugen,

    Can you please modify "CODEGEN_PATH_DSP" and "CODEGEN_PATH_DSPELF" variables in env.mk file, as per the tool chain being used?

    Note: In both cases, you need to use the windows short names.

    Regards,

    Sandeep K

  • Hallo, thank you for answers!

    @Shanmuga

    the video describes how to use the existed I2C example, i'm interested in the mmc_fat32 example...

    @Sandeep

    ok, i try to use the realy short names...

  • Hallo!

    @Sandeep: i change CODEGEN_PATH_DSP and CODEGEN_PATH_DSPELF and its moved forward! but now i get the next error:


    C:\ti\biospsp_03_00_01_00>gmake mmcsd_evm6748_fatfs_sample
    # Configuring XDC packages for evm6748_mmcsd_fatfs_sample:c6xdsp:debug
    gmake -C C:/ti/biospsp_03_00_01_00/drivers\examples\evm6748\mmcsd_fatfs xdc_conf
    iguro PLATFORM=c6748-evm CORE=c6xdsp PROFILE_c6xdsp=debug
    gmake[1]: Entering directory `C:/ti/biospsp_03_00_01_00/drivers/examples/evm6748
    /mmcsd_fatfs'
    # Invoking configuro...
    a+x maketemp_configuro_cmd_c6xdsp.bat
    maketemp_configuro_cmd_c6xdsp.bat

    C:\ti\biospsp_03_00_01_00\drivers\examples\evm6748\mmcsd_fatfs>C:/ti/xdctools_3/
    xs xdc.tools.configuro --generationOnly -o obj/c6748-evm/c6xdsp/debug/evm6748_mm
    csd_fatfs_sample_configuro -t ti.targets.elf.C674 -p ti.platforms.evm6748 -r who
    le_program -c C:/ti/C6000_Tools -b C:/ti/biospsp_03_00_01_00/config.bld mmcsdSam
    ple.cfg
    C:/ti/xdctools_3/bin/cp  obj/c6748-evm/c6xdsp/debug/evm6748_mmcsd_fatfs_sample_c
    onfiguro/package/cfg/mmcsdSample_pe674_x.xdl obj/c6748-evm/c6xdsp/debug/evm6748_
    mmcsd_fatfs_sample_configuro/linker_mod.cmd
    /cygdrive/c/ti/xdctools_3/bin/cp: cannot create regular file `obj/c6748-evm/c6xd
    sp/debug/evm6748_mmcsd_fatfs_sample_configuro/linker_mod.cmd': Permission denied

    gmake[1]: *** [xdc_configuro] Error 1
    gmake[1]: Leaving directory `C:/ti/biospsp_03_00_01_00/drivers/examples/evm6748/
    mmcsd_fatfs'
    gmake: *** [evm6748_mmcsd_fatfs_sample] Error 2

    C:\ti\biospsp_03_00_01_00>

    i remember to seen this problem allrady in the forums, try to fixe it now...

  • Eugen,

    Looking at the slides in the conversation, you are using the Windows 7 host machine. Am i right?

    If Yes, then, There could be issues in building the PSP on Windows 7, because of the permission. Please set the environment variable “set CYGWIN=nontsec” (restart the command prompt or the CCS), clean the libraries/binaries and then rebuild.

    For more info, please visit,

    http://e2e.ti.com/support/embedded/bios/f/355/t/168601.aspx#618698

    Regards,

    Sandeep K

  • Hallo Sandeep,

    i'm using win7(64Bit) and CCS5.2 but i dont understand there to set CYGWIN=nontsec !?

    i gave the file the rights but now i have an error looks loke the same!

    ...
    C:\ti\biospsp_03_00_01_00\drivers\examples\evm6748\mmcsd_fatfs>C:/ti/xdctools_3/
    xs xdc.tools.configuro --generationOnly -o obj/c6748-evm/c6xdsp/release/evm6748_
    mmcsd_fatfs_sample_configuro -t ti.targets.elf.C674 -p ti.platforms.evm6748 -r w
    hole_program -c C:/ti/C6000_Tools -b C:/ti/biospsp_03_00_01_00/config.bld mmcsdS
    ample.cfg
    C:/ti/xdctools_3/bin/cp  obj/c6748-evm/c6xdsp/release/evm6748_mmcsd_fatfs_sample
    _configuro/package/cfg/mmcsdSample_pe674_x.xdl obj/c6748-evm/c6xdsp/release/evm6
    748_mmcsd_fatfs_sample_configuro/linker_mod.cmd
    /cygdrive/c/ti/xdctools_3/bin/cp: cannot create regular file `obj/c6748-evm/c6xd
    sp/release/evm6748_mmcsd_fatfs_sample_configuro/linker_mod.cmd': Permission denied
    gmake[1]: *** [xdc_configuro] Error 1
    gmake[1]: Leaving directory `C:/ti/biospsp_03_00_01_00/drivers/examples/evm6748/
    mmcsd_fatfs'
    gmake: *** [evm6748_mmcsd_fatfs_sample] Error 2

  • Eugen,

    I am not sure about this perticular error mesage since i am working on Windows XP host. But one of us has resolved this issue and the link for it is as mentioned in the previous post (http://e2e.ti.com/support/embedded/bios/f/355/t/168601.aspx#618698). Please go through it and try out. 

    Regards,

    Sandeep K

  • Thank you all!

    now it is working, so i dont need CCS5.2 for making the project