LED doesn't blink on nRF54L10 custom board connected to nRF54L15-DK

I created software and flashed successfully to the nRF54L15-DK. It is to toggle an LED on and off on P2.09.

#include <zephyr/kernel.h>
#include <hal/nrf_gpio.h>

int main(void)
{
    nrf_gpio_cfg_output(73); // P2.09

    while (1) {
        nrf_gpio_pin_toggle(73); // P2.09
        k_sleep(K_MSEC(100));
    }
}

I selected nrf54L15dk/nrf54l15/cpuapp for board target under build configuration in VS Code. The LED blinks on and off. Good. 

I then connected a custom board with an nRF54L10 to the nRF54L15-DK via P19 connector SWD lines. The software again is the same, toggling an LED on and off, but on P0.00. It is flashed successfully to the nRF54L10. 

P19 Signal                nRF54L10 custom board
-------------------------------------------------------------
1 SWD0_VTG          3.0 V VDD
2 SWD0_SWDIO     SWDIO
3 SWD0_SELECT   GND
4 SWD0_SWDCLK  SWDCLK
5 GND                      GND
6 SWD0_SW0          Leave unconnected
7–9 NC                     Leave unconnected
10 SWD0_RESET    nRESET

#include <zephyr/kernel.h>
#include <hal/nrf_gpio.h>

int main(void)
{
    nrf_gpio_cfg_output(0); // P0.00

    while (1) {
        nrf_gpio_pin_toggle(0); // P0.00
        k_sleep(K_MSEC(100));
    }
}

I selected nrf54L15dk/nrf54l10/cpuapp for board target under build configuration in VS Code.

I have checked:

- P0.00 is not shorted to ground (6MOhm).
- SWD wiring is correct.
- The custom nRF54L10 is powered at VDD = 3V.
- NRESET is high (3V) i.e. nRF54L10 is not in reset mode.
- Flash contains a valid application.
- The CPU is running.
- Programmed the custom board, not the DK.
I tried a second nRF54L10 custom board and again the LED doesn't blink. 

I use nRF Connect SDK and toolchain 3.4.1 LTS

Why the LED does not blink on P0.00?

  • Hi Thomas,

    If you are building with the DK board files, there may be a mismatch between your custom board and the configuration. The DK files assume an external 32.768 kHz crystal (LFXO) is present. Does your board have one? If not, please try adding CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y to your prj.conf. This uses the internal RC oscillator instead. Let me know if the LED blinks after that.

    Best regards,
    Benjamin


  • Hi Benjamin,

    Thank you so much for your suggestion.

    Yes, I came across a post on this forum with the same suggestion, and it solved the problem. I was about to mention it here, but you beat me to it.
    Yes, the LED now blinks happily! 
    Best regards,
    Thomas
Related