Title: LED Blinking on Custom nRF52840 Board but Not at Given Intervals

Body:

Hello,

I have designed a custom board using the nRF52840 and flashed a simple LED blinking code. The LED does blink, but not according to the specified time intervals in the code. Instead, it blinks at an unexpected rate.

Here are some details about my setup:

  • Microcontroller: nRF52840
  • SDK Version: [Specify your SDK version]
  • Power Source: USB
  • Firmware: A simple delay-based LED blinking code

Troubleshooting Steps I Have Tried:

  1. Verified the GPIO pin configuration in the firmware.
  2. Checked if the correct clock source is selected.
  3. Measured the actual delay using a logic analyzer.
  4. Confirmed that the LED circuit is correctly wired.

Despite these checks, the blinking does not follow the intended timing. Could this be related to the clock configuration or power settings? Any guidance on debugging this issue would be appreciated.

Thanks in advance!

Parents Reply Children
  • Hi Usha,

    SDK Version: [Specify your SDK version]

    Please specify the SDK version that you are using.

    Usha said:
    we can connect external crystal to custom board ?

    Yes of course. You can use an external crystal as the clock source.

    As Jakob mentioned in the previous comment, please go through the Clock control documentation. Also, please make sure you schematic is following the Nordic reference designs. 

    Moreover, as mentioned in the previous comment, please try to run your firmware on a nRF52840DK and see if the issue persists. If so, then it should be a firmware issue, else it's a problem with the clock configuration.

    -Priyanka

  • Priyanka said:
    Usha said:
    we can connect external crystal to custom board ?

    Yes of course. You can use an external crystal as the clock source.

    As Jakob mentioned in the previous comment, please go through the Clock control documentation. Also, please make sure you schematic is following the Nordic reference designs. 

    Moreover, as mentioned in the previous comment, please try to run your firmware on a nRF52840DK and see if the issue persists. If so, then it should be a firmware issue, else it's a problem with the clock configuration.

Related