Skip to content

LEDs not blinking on nrf52840_dk #163

@pwilkowski

Description

@pwilkowski

Hello, i have a brand new nrf52840 development kit with jlink on board
When it arrived, LED was blinking (the one near actual NRF chip.

However, when i tried uploading simple code

#include <Arduino.h>

void setup()
{
	// put your setup code here, to run once:
	pinMode(PIN_LED1, OUTPUT);
	pinMode(PIN_LED2, OUTPUT);
	pinMode(PIN_LED3, OUTPUT);
	pinMode(PIN_LED4, OUTPUT);
	pinMode(LED_BUILTIN, OUTPUT);
}

void loop()
{
	digitalWrite(PIN_LED1, HIGH); // turn the LED on (HIGH is the voltage level)
	digitalWrite(PIN_LED2, HIGH); // turn the LED on (HIGH is the voltage level)
	digitalWrite(PIN_LED3, HIGH); // turn the LED on (HIGH is the voltage level)
	digitalWrite(PIN_LED4, HIGH); // turn the LED on (HIGH is the voltage level)
	digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
	delay(3000);				  // wait for a second
	digitalWrite(PIN_LED1, LOW);  // turn the LED off by making the voltage LOW
	digitalWrite(PIN_LED2, LOW);  // turn the LED on (HIGH is the voltage level)
	digitalWrite(PIN_LED3, LOW);  // turn the LED on (HIGH is the voltage level)
	digitalWrite(PIN_LED4, LOW);  // turn the LED on (HIGH is the voltage level)
	digitalWrite(LED_BUILTIN, LOW); // turn the LED on (HIGH is the voltage level)
	delay(3000);				  // wait for a second
}

No diode was blinking anymore. I also did try to upload arduino-blink example with same results.

This leads me to believe uploading firmware works however something in program is not correct? Or there is a bug?

my platformio.ini:

[env:nrf52840_dk]
platform = nordicnrf52
board = nrf52840_dk
framework = arduino

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions