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.

CCS/LAUNCHXL-CC2640R2: Configuration File

Part Number: LAUNCHXL-CC2640R2

Tool/software: Code Composer Studio

Hello,

I would like to add the following variable to the configuration file "app_ble.cfg": "var FatFS = xdc.useModule('ti.mw.fatfs.FatFS');"

When I do it in the SimpleBLEPeripheral of the new SDK 1.4 for the CC2640R2, I get the following error:

"C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Swi.c", line 483: error: identifier "Error_IGNORE" is undefined
1 error detected in the compilation of "C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/kernel/tirtos/packages/ti/sysbios/knl/Swi.c".
gmake[1]: *** [rom_sysbios.obj] Error 1
gmake: *** [C:/Users/emocs/workspace_v7/simple7314/simple_peripheral_cc2640r2lp_app/TOOLS/src/sysbios/rom_sysbios.aem3] Error 2
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_30_06_67_core/packages/xdc/cfg/SourceDir.xs", line 184: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:

js: "C:/ti/xdctools_3_30_06_67_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
xdctools_3_30_06_67_core\gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Error 1
xdctools_3_30_06_67_core\gmake.exe: *** Deleting file `package/cfg/app_ble_pem3.xdl'
xdctools_3_30_06_67_core\gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file `package/cfg/app_ble_pem3.h'
xdctools_3_30_06_67_core\gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file `package/cfg/app_ble_pem3.c'
js: "C:/ti/xdctools_3_30_06_67_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-1287780815-inproc] Error 1
gmake: *** [build-1287780815] Error 2
gmake[1]: Leaving directory 'C:/Users/emocs/workspace_v7/simple7314/simple_peripheral_cc2640r2lp_app/FlashROM_StackLibrary'
TOOLS/subdir_rules.mk:9: recipe for target 'build-1287780815' failed
gmake: Target 'all' not remade because of errors.

Could you please help me of  how I can solve this problem?

Thank you in advance,

  • Hi,

    We changed the way FatFS is brought in with the SimpleLink SDKs.  We no longer support pulling it in via the .cfg file. Please remove that line and refer to the FatFS section in the User Guide for the new method.

  • Thank you very much for your prompt response!

    I already include the following paths:

    C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/third_party/fatfs/lib/fatfs.aem3

    C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/third_party/fatfs

    BUT I receive the error of the attached photo :

    Do you have any idea of which is the problem?

    Many thanks in advance,

  • You need to supply that function now. Previously it was managed by the line in the .cfg file.

    For example:

    /*
    * ======== fatfs_getFatTime ========
    */
    int32_t fatfs_getFatTime(void)
    {
    time_t seconds;
    uint32_t fatTime;
    struct tm *pTime;

    /*
    * TI time() returns seconds elapsed since 1900, while other tools
    * return seconds from 1970. However, both TI and GNU localtime()
    * sets tm tm_year to number of years since 1900.
    */
    seconds = time(NULL);

    pTime = localtime(&seconds);

    /*
    * localtime() sets pTime->tm_year to number of years
    * since 1900, so subtract 80 from tm_year to get FAT time
    * offset from 1980.
    */
    fatTime = ((uint32_t)(pTime->tm_year - 80) << 25) |
    ((uint32_t)(pTime->tm_mon) << 21) |
    ((uint32_t)(pTime->tm_mday) << 16) |
    ((uint32_t)(pTime->tm_hour) << 11) |
    ((uint32_t)(pTime->tm_min) << 5) |
    ((uint32_t)(pTime->tm_sec) >> 1);

    return ((int32_t)fatTime);
    }
  • Dear ToddMullanix, 

    Thank you very much for your help. It worked!!!!