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] Weird LED shining

Other Parts Discussed in Thread: CC2541

Hi,


I'm using SensorTag project from BLE Stack 1.4. When I push S2 button I call:

HalLedSet(HAL_LED_2,HAL_LED_MODE_ON);

Then the LED is not steady, it's blinking very fast... And if I put this code in button:

HalLedSet(HAL_LED_2,HAL_LED_MODE_ON);
while(1);

Then the LED is steady. So something else interacts with the LED but I cannot find what. Maybe some power management but I'm a beginner with CC2541 so I'm kind of lost in the project :s


Thanks for your help,

regards