nrf5340 blinky not working

Hi,
I have tried to get the zephyr blinky example working for some days without succes. 

This is my custom board that i believe is working (because it shows up using nrf connect)

However when i flash the blinky example from the sample projects it does not blink. 

The current consumption of the board is odd, 1mA at 3V3 (4mA when programming) this seems normal when looking at other boards.

I am using the build configuration from "nrf5340dk_nrf5340_cpuapp". with a overlay to delete all pin definitions and redifine led0.

Did i make any obvious mistake? 
Thanks

Regards,

Jonas

Board schematic. used reference design from datasheet (design 3)
https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Fchapters%2Fref_circuitry.html 

my device overlay.

/*
 * Copyright (c) 2016 Intel Corporation
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>

/* 1000 msec = 1 sec */
#define SLEEP_TIME_MS   1000

/* The devicetree node identifier for the "led0" alias. */
#define LED0_NODE DT_ALIAS(led0)

/*
 * A build error on this line means your board is unsupported.
 * See the sample documentation for information on how to fix this.
 */
static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED0_NODE, gpios);

int main(void)
{
	int ret;

	if (!gpio_is_ready_dt(&led)) {
		return 0;
	}

	ret = gpio_pin_configure_dt(&led, GPIO_OUTPUT_ACTIVE);
	if (ret < 0) {
		return 0;
	}

	while (1) {
		ret = gpio_pin_toggle_dt(&led);
		if (ret < 0) {
			return 0;
		}
		k_msleep(SLEEP_TIME_MS);
	}
	return 0;
}

default blinky sample

Parents
  • Hello,

    Thank you for your patience.

    We need to find out if this is a hardware issue or not.

    Could you try to reproduce this on the nRF5340 DK?

    1. Build the project with the same overlay file for the DK as you use for your custom board.

    2. Flash the nRF5340 DK.

    3. Connect a logic analyzer or oscilloscope to the P1.09 pin to see if you get any output.

    4. Report back with your findings.

    Best regards,

    Maria

Reply
  • Hello,

    Thank you for your patience.

    We need to find out if this is a hardware issue or not.

    Could you try to reproduce this on the nRF5340 DK?

    1. Build the project with the same overlay file for the DK as you use for your custom board.

    2. Flash the nRF5340 DK.

    3. Connect a logic analyzer or oscilloscope to the P1.09 pin to see if you get any output.

    4. Report back with your findings.

    Best regards,

    Maria

Children
Related