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);

}

  • Nagaraj JP said:
    yes still the led is not working, i have also checked with the BLE examples also the results are same.

    Then it does sound like the LEDs might have been damaged or otherwise disabled.
    Does everything else on the board function as expected?

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

    It might be the case that the LEDs have been damaged indeed.
    Which service people were this, have you had the board worked on by a third-party?

    Best regards,
    Karl

  • Actually the board was given to the local service people in banglore. now i am trying to read a differentia adc and to display the voltage in the serial monitor without using the log function how can i do in can you please help me out in this differential adc

  • Nagaraj JP said:
    now i am trying to read a differentia adc and to display the voltage in the serial monitor without using the log function how can i do in can you please help me out in this differential adc

    If you would like to print something to the serial terminal without using the logger you may do so by using the app_uart library, or the UART driver directly. Alternatively, you could make sure to enable RETARGET_ENABLED in your sdk_config.h, and then use the printf function as normal to display your data in the serial logger, after you have initialized the UART peripheral.
    You could see how this can be done in the BLE NUS example.

    In general, if your new issues or questions diverge from the original topic of the ticket I will have to ask that you open another ticket for the new matter.

    Best regards,
    Karl

  • thankyou i will check it out.

    In general, if your new issues or questions diverge from the original topic of the ticket I will have to ask that you open another ticket for the new matter.

    yes sure i will make an seperate ticket for this thankyou

Related