PlatformIO Community

Can't make Nordic nRF52840-DK (Adafruit BSP) work at all


Ok I’m at my wit’s end with this which means it’s time to ask for help :sweat_smile:

I’m trying to program a Nordic nrf52840 bluetooth MCU which I have on my own custom board. The actual chip is on a Rigado BMD-340 module and my PCB is a custom mechanical keyboard.

I’d like to use the work Adafruit has done on the nRF52840 so I don’t have to re-write a ton of bluetooth BS myself.

It seemsPlatformIO has integrated Adafruit’s board support package (BSP) for this chip and it should work with a standard nRF52840-DK! Great!

Unfortunately, I have completely failed to get ANY code (including a blinking LED) to run properly on my nrf52840 using this configuration. I can’t figure out where the problem is either. Is it platformIO? Is it AdafruitBSP? Is it because I’m using a custom board?

I SUCCESSFULLY have my custom board blinking an LED using nearly the same PlatformIO setup but switching the Adafruit/Arduino stuff for MBED. So the hardware is fine. How is MBED successful with this but the Arduino/AdafruitBSP failing? I don’t want to develop with MBED for this because they only support certain peripherals (no USB support yet) and their Bluetooth API is a nightmare of complexity.

Here’s the NON-WORKING Arduino INI file, Arduino Program, and Arduino Upload Output:


And here’s the WORKING MBED INI file, program, and programming output:


Any help is appreciated! It would be great to be able to use Adafruit’s work on this chip within PlatformIO. If this can’t be fixed, maybe a generic nrf52840 board target could be added for people making their own custom PCB’s?


@jeremypoulter could you help here?