arduino-nRF5 icon indicating copy to clipboard operation
arduino-nRF5 copied to clipboard

The nRF52840DK not compatible with nRF52DK Variant

Open chappy1978 opened this issue 5 years ago • 3 comments

I have been working with a nRF52840DK for a project and when I use platformio.ini below [env:nrf52840_dk] platform = nordicnrf52 board = nrf52840_dk framework = arduino

I get the wrong pins outputs from the Dev board. With a simple blinky.cpp that runs through the pins causes the wrong pins to light up. Also many of the pins dont seem to be mapped to Arduino framework at all. Its seems like the nRF52840DK needs its own variant files not reusing the variants from a different board. I have included a pinout from Nordic for the nRF52840DK Screen Shot 2019-11-21 at 05 07 29

#include <Arduino.h> int led = 0;

void setup() { Serial.begin(115200); }

// the loop routine runs over and over again forever: void loop() { pinMode(led, OUTPUT); if(led >= 10){led = 0;} Serial.println(led);

digitalWrite(led, HIGH);
delay(500);
digitalWrite(led, LOW);
delay(500);
led++; }

chappy1978 avatar Nov 21 '19 13:11 chappy1978

This is a PlatformIO issue as this project doesn't include support for the nRF52840DK, please contact them for help.

dlabun avatar Nov 21 '19 13:11 dlabun

Why? I just wrote a new variant.h and .cpp for your project and its working. But not finished. Framework bug.zip

chappy1978 avatar Nov 21 '19 13:11 chappy1978

My apologies, I took this as you were asking us to fix PlatformIO. If you want to submit a variant for the nRF52840DK I'd gladly take it.

dlabun avatar Nov 21 '19 14:11 dlabun