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/TMS320VC5501: C5501 csl_timer support

Part Number: TMS320VC5501

Tool/software: Code Composer Studio

Please can you assist.

I am having trouble with the following error:     #error TIMER Hal Module Not Supported on Specified Target.

I see from the other posts that the issue has been resolved by defining "_TIMER_MOD_".

Please could you provide further details:

1) Where is  this defined?

2) How is it defined?

3) What are the limitations of this definition?

4) Is there also documentation that can referred to as it does not appear to be in SPRU433J, SPRU371F, SPRS206K

3) Are any other configuration settings required when compiling to the final application and flashing the hex55 utility processed file?

Many thanks for your support in advance.

  • Hi Dev1,

    Could you give more details about the application which you are trying to build? What SW release you are using?

    BR
    Tsvetolin Shulev
  • Hi Thank you for your reply.

    I am using Code Composer Studio Version: 7.3.0.00019.

    I discovered last night that I can use the CSL for both the WDTMR and GPT

    #include <csl_wdtim.h>
    #include <csl_gpt.h>

    being able to configure both timers and successfully test.

    - however when I tried to using the CSL library

    #include <csl_timer.h>

    Using the macros that are defined in the CSL API I was presented with

    _TIMER_MOD_ not defined - reading through other posts - it appears this needs to be defined, and when I look at the CSL macro files

    #undef IDEF

    #ifdef _TIMER_MOD_
    #define IDECL CSLAPI
    #define IDEF
    #else
    #ifdef _INLINE
    #define IDECL static inline
    #define USEDEFS
    #define IDEF static inline
    #else
    #define IDECL CSLAPI
    #endif
    #endif

    and not having _TIMER_MOD_ defined results in the following in the csl_timerhal.h

    #elif (!(_TIMER_MOD_))
    #error TIMER Hal Module Not Supported on Specified Target
    #endif

    There's no documentation to suggest this mode is not supported on the 5501.

    Please advise - many thanks in advance.

    Kind regards