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.

Including csl_timer.h in DM648 build causes compile error

Other Parts Discussed in Thread: CCSTUDIO

Hi

When I include csl_timer.h I get the error

"C:/CCStudio_v3.3/C6000/csl/include/csl_chiphal.h", line 267: fatal error: #error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is chip number, i.e. 6201)

When I looked at csl_chiphal.h, the DM648 is not present. I believe csl_timer.h must be a legacy CSL app. Could you tell me what replaces it?

I suppose I could replace TIMER_getCount() with CLK_gethtime and CLK_getltime.

Is there a document that maps the old DM642 csl modules to the DM648? I'm trying to migrate DM642 code the DM648 and I'm running into a lot of errors like the above with I include csl_XXXX.h files.

Thx

  • Eddie said:
    "C:/CCStudio_v3.3/C6000/csl/include/csl_chiphal.h", line 267: fatal error: #error NO CHIP DEFINED (use -dCHIP_XXXX where XXXX is chip number, i.e. 6201)

    This is coming from a CSL2.x header file which supported devices prior to the C6455 (e.g., C6416 and C6713, etc.). You are receiving this error because you have not specified the correct Include Search Path for the DM648's CSLr and it's pulling in the path to the legacy CSL by default. Go to Project->Build Options, select the Compiler tab and the Preprocessor category, then add the correct path to the DM648's CSLr (should be something like C:\dvsdk_1_11_00_00_DM648\pspdrivers_1_10_00\packages\ti\sdo\pspdrivers\soc\dm648\dsp).

  • Hi Tim

    Below is what I copied from the pre-processor include path. It appears to already have the path to the CSLr. Isn't the problem due to using csl_timer.h? (being that its not supported on the DM648 CSL). I should be using the CLK module instead?[*-)]

    Thnx

    ..\inc;

    ..\inc_tracker;

    C:\dvsdk_1_10_00_26_DM648\pspdrivers_1_10_00_09\packages;

    C:\dvsdk_1_10_00_26_DM648\pspdrivers_1_10_00_09\packages\ti\sdo\pspdrivers\soc\dm648\dsp;

    $(Install_dir)\c6400\dsplib\include;

    $(Install_dir)\c6400\imglib\include

  • Sorry, yes. I get the CSL file names confused these days!

    The csl_timer.h was part of the legacy CSL I mentioned before which does not support any of the newer C64x+-based devices (including the DM648). You will need to use the cslr_tmr.h from the DM648 cslr.

  • Thanks a bunch.