This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problems with leds on Beacon

We bought the Beacon Kit from Nordic. I'm trying to use the firmware code on a similiar beacon board based on same Nordic Nrf51822. The board has same button and led pins but no optional clock quartz. All is working as expected only LEDs for some reasons are always on. All 3 LEDS. And not blinking. The BLE features are working as expected so far. I put some break points in led_softblink_on_timeout It seems like that function is triggered only once. Don't know if this is a debugger issue. As the led_softblink_on_timeout function is triggered i can see only green led always on. If I don't put breakpoints all leds are on. Could this problem be related to the missing optional quartz. Or maybe the beacon from Nordic has only 1 led and my board has 3 leds. Maybe this is the problem ?

The original firmware of my board had some blinking led inside. So it should be achieved somehow even without the quartz. I'm not sure how to solve this issue.

EDITED The board is done by my friend. The LEDs are connected to P.12 P.15 and P.16 . The nordic firmware has included in main.c the pca20006.h header including this code. I can read LED_RGB_RED 16 , GREEN 12, BLUE 15. It seems all ok. Is there something else that i need to change here ?

// LEDs and buttons definition for PCA20006 board (beacon) 
#define LEDS_NUMBER    3

#define LED_RGB_RED    16
#define LED_RGB_GREEN  12
#define LED_RGB_BLUE   15

#define BSP_LED_0 LED_RGB_RED
#define BSP_LED_1 LED_RGB_GREEN
#define BSP_LED_2 LED_RGB_BLUE

#define BSP_LED_0_MASK    (1<<BSP_LED_0)
#define BSP_LED_1_MASK    (1<<BSP_LED_1)
#define BSP_LED_2_MASK    (1<<BSP_LED_2)
#define LEDS_MASK      (BSP_LED_0_MASK | BSP_LED_1_MASK | BSP_LED_2_MASK)
#define LEDS_INV_MASK  0x00000000
Related