The led is not blinking or turning on in nrf52840 dk board

Hi I am trying to do the led blinking in nrf52840 but the led is not even turning on i have given the code below can any body help me out.

nrf_gpio_cfg_output(14);

nrf_gpio_cfg_output(15);

nrf_gpio_cfg_output(16);
nrf_gpio_cfg_output(13);
while (true)
{

nrf_gpio_pin_clear(13);
nrf_gpio_pin_set(14);
nrf_gpio_pin_set(15);
nrf_gpio_pin_set(16);
printf("Ae\r\n");
nrf_delay_ms(100);

}

  • Where did you get your DK - was it a new kit,

    no this is an 6 months old board went for soldering service for the usb port and just now i recieved it.

    In case of the latter, could you verify whether SolderBridge 5 - 8 is cut or not?

    sorry i could not understand this.

  • Nagaraj JP said:
    no this is an 6 months old board went for soldering service for the usb port and just now i recieved it.

    Thank you for clarifying. Did somebody else use the board for a different project prior to this?

    Nagaraj JP said:
    sorry i could not understand this.

    Could you do a close visual inspection of the Solder Bridges 5, 6, 7, and 8 on the PCB, to see if they may be cut?
    They are marked SB5, SB6, SB7, and SB8 respectively. If they are cut then the LEDs will be disconnected from use.

    Best regards,
    Karl

  • Did somebody else use the board for a different project prior to this?

    yes it was used by our another person before that.

    They are marked SB5, SB6, SB7, and SB8 respectively. If they are cut then the LEDs will be disconnected from use.

    yes had a close look at the SB5 SB6 SB7 SB8 all the bridge are connected only, i have also checked with the multimeter it is showing connection. and now i checked with the p0.27 i can see the port pin working as per my commands as for now i am thinking to use this pin as the output. I think the u4 ic must have been damaged in my hardware. thankyou for the support..

  • Nagaraj JP said:
    yes had a close look at the SB5 SB6 SB7 SB8 all the bridge are connected only, i have also checked with the multimeter it is showing connection. and now i checked with the p0.27 i can see the port pin working as per my commands as for now i am thinking to use this pin as the output. I think the u4 ic must have been damaged in my hardware. thankyou for the support..

    I am not sure I understand what you mean here - the Solder bridges are intact, but the leds still does not work? Does the leds light up in any of the other examples, such as one of the BLE peripheral examples? The LED1 will be blinking when the device is advertising, and solid if it enters into a connection.

    Nagaraj JP said:
    I think the u4 ic must have been damaged in my hardware. thankyou for the support..

    No problem at all, I am happy to help!
    This is the part I do not understand from your comment. Do you suspect that the 4 LED pins have been damaged by the previous user of the board?

    Best regards,
    Karl

  • I am not sure I understand what you mean here - the Solder bridges are intact, but the leds still does not work? Does the leds light up in any of the other examples, such as one of the BLE peripheral examples? The LED1 will be blinking when the device is advertising, and solid if it enters into a connection.

    yes still the led is not working, i have also checked with the BLE examples also the results are same.

    Do you suspect that the 4 LED pins have been damaged by the previous user of the board?

    not exactly, we gave the board to the service people there they might have damaged the led section.

Related