Hi All,
I hoped this would be simple, but for some reason my plaformIO core will not recognize my custom board file. I created a boards folder in my core_dir (assumed it is %HOMEPATH%.platformio) in which I placed a myboard.json file. This is what I placed in it (I used the Adafruit feather nrf52832 as a template):
{
"build": {
"arduino":{
"ldscript": "nrf52832_s132_v6.ld"
},
"core": "nRF5",
"cpu": "cortex-m4",
"extra_flags": "-DNRF52832_XXAA -DNRF52",
"f_cpu": "64000000L",
"hwids": [
[
"0x239A",
"0x8029"
],
[
"0x239A",
"0x0029"
],
[
"0x239A",
"0x002A"
],
[
"0x239A",
"0x802A"
]
],
"usb_product": "Feather nRF52832 Express",
"mcu": "nrf52832",
"variant": "feather_nrf52832",
"bsp": {
"name": "adafruit"
},
"softdevice": {
"sd_flags": "-DS132",
"sd_name": "s132",
"sd_version": "6.1.1",
"sd_fwid": "0x00B7"
},
"zephyr": {
"variant": "nrf52_adafruit_feather"
}
},
"connectivity": [
"bluetooth"
],
"debug": {
"jlink_device": "nRF52832_xxAA",
"svd_path": "nrf52.svd"
},
"frameworks": [
"arduino",
"zephyr"
],
"platforms": ["%LIST_WITH_COMPATIBLE_PLATFORMS%"],
"name": "rak4600",
"upload": {
"maximum_ram_size": 65536,
"maximum_size": 524288,
"require_upload_port": true,
"speed": 115200,
"protocol": "nrfutil",
"protocols": [
"jlink",
"nrfjprog",
"nrfutil",
"stlink",
"cmsis-dap",
"blackmagic"
]
},
"url": "https://www.adafruit.com/product/3406",
"vendor": "RAK Wireless"
}
Using myboard as board
parameter in my .ini results in an error: ID unkown. Neither can I find myboard after running pio boards
.
What am I doing wrong?