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.

halTimer1SetChannelDuty undefined error in SampleRemote project

Other Parts Discussed in Thread: Z-STACK

Hi , everybody.

I am using CC2531 USB Dongle , and use the SampleRemote project at Texas Instruments\Z-Stack Lighting 1.0.1\Projects\zstack\ZLL\SampleRemote\CC2530DB

I want to implement the PWM on CC2531 USB Dongle in SampleRemote project.

So I copy the hal_timer.c

from 

C:\Texas Instruments\Z-Stack Lighting 1.0.1\Components\hal\target\CC2530PMP4712 

to 

C:\Texas Instruments\Z-Stack Lighting 1.0.1\Components\hal\target\CC2530USB.


And than include the #include "hal_timer.h" in zll_sampleremote-CC2531EMK.c , and add the HalTimer1Init(0); in zllSampleLight_Init.


But it show the following error when I make.

Error[e46]: Undefined external "HalTimer1Init::?relay" referred in zll_sampleremote-CC2531EMK ( C:\Texas Instruments\Z-Stack Lighting 1.0.1\Projects\zstack\ZLL\


What should I do to solve this error ?


  • Can you check first that the correct file is being included by opening hel_timer.c in the project work space and checking HalTimer1Init is included

    Then do a clean to make sure the module is being rebuilt.

    Also check that HAL_TIMER=TRUE is being defined, you can put this in the project options (preprocessor defines) or change the hal_baord_config.h.

    /* Set to TRUE enable H/W TIMER usage, FALSE disable it */
    #ifndef HAL_TIMER
    #define HAL_TIMER TRUE
    #endif

    Regards, TC.


  • Hi , TopCat 

    Thanks for your help.

    I define the HAL_TIMER=TRUE in preprocessor , and the error is disappear .