PlatformIO Community

How get nrf52840_dk active in code

Hi,

I know it is a stupid question, but here I go.
I have VScode with platformio installed on current OpenSuse Linux.

I want to test blinky with mbed on my nRF-52840-DK board.

When I go to Platforms -> Embedded -> Install
I don’t know where to click to get nrf52840_dk installed.
I click on “mbed”:

grafik

and always end up installing nrf52_dk 3.8.0, which seems to be an older board (other LED pin numbers).

Another strange thing is that I can’t enter any text into the search fields, it gets a blue focus border, but no typing appears.

thanks
Marcel

Ok, I think the problem was that the blink example is based on an older board.

Here I can choose the correct board, but I can’t enter any text into the “Project name” field:

grafik

strange
Marcel

After rebooting the laptop I can enter text and the first blinky runs fine.

No stupid questions… except for the ones you don’t ask :wink:

For your “can’t enter text into the project name field issue”:

Re: installing your board - you don’t need to install the board, just the platform. Installing the platform (Nordic nRF52 v3.8.0) installs support for all the boards listed. You can then pick Nordic nRF52-DK from the new projects wizard as you’ve found, or use board = nrf52_dk in the platformio.ini as shown in the PIO documentation for that board.

As I think platformio is for guys like me wanting to get a quick entry into embedded programming, this hint:

It would have been nice to install one of the examples and it runs out of the box.

But, as with installing it “raw” without platformio, I ended up Googling.

The examples provided seems to be for an older board which I didn’t recognize easily so I had to

  1. Extend platformio.ini (after wondering why the examples do not compile)

  2. Exchange LED1 to BUTTON1 (after wondering why the LED did not blink)

I was always thinking it is my fault (my Linux, wrong installation, wrong setup of VCode, mbed, wrong bootloader on Dev kit, broken cable, wrong switch position of Dev Board, or what ever)
as I trusted the examples (thats what they are for) …

So it would probably be nice to have running examples provided, or to have a comment in main.cpp to not trust it (only tested for chip xxxx on dev board xyz on os yyyy with mbed version zzzz),

thank you for all
Marcel

1 Like