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.

TMDSLCDK6748: How to add cache functions to a CCS project?

Part Number: TMDSLCDK6748
Other Parts Discussed in Thread: OMAPL138, SYSBIOS

Hi,

I am using the following software for the TMDSLCDK6748 development kit:

  • CCS Version: 7.2.0.00013
  • processor_sdk_rtos_omapl138_4_00_00_04

I have created a CCS project (not a RTSC project) and I want to add cache functions for invalidation, writeback and checking/changing cache sizes. Now I saw that these functions are present in ...\bios_6_46_05_55\packages\ti\sysbios\hal\Cache.h, but I did not manage to include these functions successfully into my project.

What do I have to do to use these functions:

  • include statements in the source code?
  • project properties in CCS: general?
  • project properties in CCS: compiler options?
  • project properties in CCS: linker options?

PS. I would like to keep the project light weight in terms of code size, code efficiency and project complexity.

Regards,

Ad

  • Hi,

    I've notified the RTOS team. Their feedback will be posted here.

    Best Regards,
    Yordan
  • Ad,

    You have 2 set of Cache function available. The APIs to use will depend on whether you want to use them with TI RTOS kernel or with bare-metal code.

    If you are doing bare-metal development, then the Cache APIs from CSL library can be used. Cache APIs from the CSL library are defined here:
    pdk_omapl138_1_0_1/packages/ti/csl/docs/doxygen/html/group___c_s_l___c_a_c_h_e___f_u_n_c_t_i_o_n.html

    Over all API reference guide is provided under pdk_omapl138_1_0_1/packages. YOu need to go to the CSL library APIs and locate the Cache module.

    If you are looking for examples, then I recommend that you look at CACHE_dspLib_fft examples that are provided here:
    processors.wiki.ti.com/.../QuickStartOMAPL1x_rCSL


    Don`t forget when including CSL Libraries SOC_OMAPL138 needs to be added to compiler defines as mentioned here:
    processors.wiki.ti.com/.../Processor_SDK_RTOS_CSL

    Hope this helps.

    Regards,
    Rahul
  • Rahul,

    It works now, the define SOC_OMAPL138 did the trick. Thanks a lot.
    I am not including any library so apparently the cache invalidation code only consists of inline/define code in header files. But what library files do I need to include in CCS if I want to use CSL functions with an implementation in .c files? I could only find two files ti.cslae674 and ti.csl.intc.ae674 in the folder pdk_omapl138_1_0_1\packages\ti/csl\lib\omapl138\c764\release. I could not find any Debug versions.

    Best Regards.