That’s the Arduino board definitions. PlatformIO needs JSON definitions of the boards to work with, as seen in the platform’s board list platform-nordicnrf52/boards at develop · platformio/platform-nordicnrf52 · GitHub. The available values for board =
are the file names in there (also cross-reference PlatformIO Registry).
You can open an issue or pull-request at Issues · platformio/platform-nordicnrf52 · GitHub to get the board added by the devs.
You can also directly try this board configruation. Create a new folder boards/
in your project and fill the file boards/adafruit_cluenrf52840.json
with this content
{
"build": {
"arduino":{
"ldscript": "nrf52840_s140_v6.ld"
},
"core": "nRF5",
"cpu": "cortex-m4",
"extra_flags": "-DARDUINO_NRF52840_CLUE -DNRF52840_XXAA -DNRF52840_CLUE",
"f_cpu": "64000000L",
"hwids": [
[
"0x239A",
"0x8072"
],
[
"0x239A",
"0x0072"
],
[
"0x239A",
"0x0071"
],
[
"0x239A",
"0x8071"
]
],
"usb_product": "CLUE",
"mcu": "nrf52840",
"variant": "clue_nrf52840",
"bsp": {
"name": "adafruit"
},
"softdevice": {
"sd_flags": "-DS140",
"sd_name": "s140",
"sd_version": "6.1.1",
"sd_fwid": "0x00B6"
},
"bootloader": {
"settings_addr": "0xFF000"
}
},
"connectivity": [
"bluetooth"
],
"debug": {
"jlink_device": "nRF52840_xxAA",
"svd_path": "nrf52840.svd"
},
"frameworks": [
"arduino"
],
"name": "Adafruit CLUE",
"upload": {
"maximum_ram_size": 248832,
"maximum_size": 815104,
"speed": 115200,
"protocol": "nrfutil",
"protocols": [
"jlink",
"nrfjprog",
"nrfutil",
"stlink"
],
"use_1200bps_touch": true,
"require_upload_port": true,
"wait_for_upload_port": true
},
"url": "https://www.adafruit.com/product/4500",
"vendor": "Adafruit"
}
which is pretty much the converted version from Adafruit_nRF52_Arduino/boards.txt at master · adafruit/Adafruit_nRF52_Arduino · GitHub.
Then refer to the board as you already do in the platformio.ini
as adafruit_cluenrf52840
. Try and get a simple blinky code working. Also, you need to add
framework = arduino
otherwise you won’t compile in Arduino.