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.

CC2541: hal timer api usage

Part Number: CC2541


Hi,

I am doing an led illuminator circuit, which can be controlled by a ble remote. I need to toggle the LED in different duty cycle, according to the key actions on Bt remote( ie, for short press on the key will toggle LED @ 75% duty cycle,and for long press, need the duty cycle 25%. I modified the project SimpleBLEPeripheral for the remote side, and SimpleBLECentral for the other end. For the purpose of toggling I used the hal timer API's. But when compiled the code showing the error: Error[e46]: Undefined external "HalTimerInit::?relay" referred in simpleBLECentral ( C:\Texas Instruments\. The same kind of error is indicated on all the places where I used the hal API's. I verified that hal_timer.h is present on the BLE stack installation path.

Can anyone tell me why this occurs?