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 V3.1 with cregister keyword getting compiler error?

Hi,

i have old projects running on CCSV3.1. i want to use TSCL , and i include C6x.h. i delcared as below and getting compile error.

#include <c6x.h>

extern volatile unsigned int cregister TSCL

compiler error: cregister is not defined. 

as i am using Code generation tools C5.1.0 and CCS V3.1. i understood the cregister keyword is not defined in  C5.1.0. which code generation tool i have to use to get the cregister key word. (in the mean time i try to install CGT 6.1.5 but it seems it is supporting from CCSV3.3 not for CCSV3.1).

Thanks,

Ram.

  • The TSCL register is not present on older C6000 devices.  When I build for a C6200 device with version 5.1.0 tools I see this ...

    % cl6x -mv6200 file.c
    "file.c", line 2: error: unrecognized cregister name 'TSCL'
    "file.c", line 2: error: the modifier "cregister" is not allowed on this declaration

    These diagnostics are similar to what you show, but not the same.  I don't recall which device introduces TSCL.  But if I build for C6400+, then I see this ...

    % cl6x -mv6400+ file.c

    That's a clean build. 

    Thus, please be sure your device has TSCL, and select the correct processor family with the -mv switch.

    Thanks and regards,

    -George

  • Hi,

    i got also the error "unrecognized cregister name 'TSCL' "at the beginning. then i removed the "extern volatile unsigned int cregister TSCL" under certain defined platforms and put into my main().

    i am using C6414 device. please tell me whether TSCL register is supported for my processor or not. if it is not supported, then how can i measure the timing (number of cycles to be measured) for some of my critical funtions?

    Thanks,
    Ram.
  • Ramana_Munich said:
    i am using C6414 device. please tell me whether TSCL register is supported for my processor or not.

    The C6414 does not have TSCL.

    Ramana_Munich said:
    if it is not supported, then how can i measure the timing

    I don't know.  I'll move this thread to the C6000 device forum.  Experts there should be able to help.

    Thanks and regards,

    -George

  • Ramana,

    For the C64xx and earlier devices without the TSC, we used the general purpose timers and multiply by the clock divider. DSP/BIOS includes time-measurement APIs that are convenient to use. It all depends on what you are using at a higher level in your system.

    The CCS may have a clock feature that you can use. It has been too long since I used CCS v3.x to recall how to do that.

    Regards,
    RandyP