From fec19bae2e0ec8bfd017ec8a86584451c5feccc5 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 22 Jun 2022 19:45:28 +0200 Subject: [PATCH 01/10] Add xiable board support --- .gitmodules | 2 +- boards/xiaoble.json | 60 ++++++++++++++++++++++++++++++++++++++ boards/xiaoblesense.json | 60 ++++++++++++++++++++++++++++++++++++++ builder/frameworks/arduino | 2 +- platform.json | 5 ++++ platform.py | 8 +++-- 6 files changed, 133 insertions(+), 4 deletions(-) create mode 100644 boards/xiaoble.json create mode 100644 boards/xiaoblesense.json diff --git a/.gitmodules b/.gitmodules index b1d534f8..6aad40ba 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "builder/frameworks/arduino"] path = builder/frameworks/arduino - url = https://github.com/platformio/builder-framework-arduino-nrf5.git + url = https://github.com/maxgerhardt/builder-framework-arduino-nrf5.git diff --git a/boards/xiaoble.json b/boards/xiaoble.json new file mode 100644 index 00000000..02fea6ce --- /dev/null +++ b/boards/xiaoble.json @@ -0,0 +1,60 @@ +{ + "build": { + "arduino":{ + "ldscript": "linker_script.ld" + }, + "core": "arduino", + "cpu": "cortex-m4", + "extra_flags": "-DSEEED_XIAO_NRF52840 -DARDUINO_ARCH_NRF52840", + "f_cpu": "64000000L", + "hwids": [ + [ + "0x2886", + "0x0045" + ], + [ + "0x2886", + "0x8045" + ] + ], + "mcu": "nrf52840", + "variant": "SEEED_XIAO_NRF52840", + "softdevice": { + "sd_flags": "-DS140", + "sd_name": "s140", + "sd_version": "7.3.0", + "sd_fwid": "0x0123" + } + }, + "connectivity": [ + "bluetooth" + ], + "debug": { + "jlink_device": "nRF52840_xxAA", + "openocd_target": "nrf52.cfg", + "svd_path": "nrf52840.svd" + }, + "frameworks": [ + "arduino" + ], + "name": "Seeed XIAO BLE nRF52840", + "upload": { + "maximum_ram_size": 237568, + "maximum_size": 811008, + "protocol": "nrfutil", + "speed": 115200, + "protocols": [ + "jlink", + "nrfjprog", + "nrfutil", + "cmsis-dap", + "sam-ba", + "blackmagic" + ], + "use_1200bps_touch": true, + "require_upload_port": true, + "wait_for_upload_port": true + }, + "url": "https://wiki.seeedstudio.com/XIAO_BLE", + "vendor": "Seeed Studio" + } \ No newline at end of file diff --git a/boards/xiaoblesense.json b/boards/xiaoblesense.json new file mode 100644 index 00000000..79ece3ea --- /dev/null +++ b/boards/xiaoblesense.json @@ -0,0 +1,60 @@ +{ + "build": { + "arduino":{ + "ldscript": "linker_script.ld" + }, + "core": "arduino", + "cpu": "cortex-m4", + "extra_flags": "-DSEEED_XIAO_NRF52840_SENSE -DARDUINO_ARCH_NRF52840", + "f_cpu": "64000000L", + "hwids": [ + [ + "0x2886", + "0x0045" + ], + [ + "0x2886", + "0x8045" + ] + ], + "mcu": "nrf52840", + "variant": "SEEED_XIAO_NRF52840_SENSE", + "softdevice": { + "sd_flags": "-DS140", + "sd_name": "s140", + "sd_version": "7.3.0", + "sd_fwid": "0x0123" + } + }, + "connectivity": [ + "bluetooth" + ], + "debug": { + "jlink_device": "nRF52840_xxAA", + "openocd_target": "nrf52.cfg", + "svd_path": "nrf52840.svd" + }, + "frameworks": [ + "arduino" + ], + "name": "Seeed XIAO BLE Sense", + "upload": { + "maximum_ram_size": 237568, + "maximum_size": 811008, + "protocol": "nrfutil", + "speed": 115200, + "protocols": [ + "jlink", + "nrfjprog", + "nrfutil", + "cmsis-dap", + "sam-ba", + "blackmagic" + ], + "use_1200bps_touch": true, + "require_upload_port": true, + "wait_for_upload_port": true + }, + "url": "https://wiki.seeedstudio.com/XIAO_BLE", + "vendor": "Seeed Studio" + } \ No newline at end of file diff --git a/builder/frameworks/arduino b/builder/frameworks/arduino index 8521ae7e..42c4321d 160000 --- a/builder/frameworks/arduino +++ b/builder/frameworks/arduino @@ -1 +1 @@ -Subproject commit 8521ae7e008ef66bebfc9e813630f89e3fb894a0 +Subproject commit 42c4321d3f0da44a20452cca6a6e6665d3035315 diff --git a/platform.json b/platform.json index f876449a..fd761a6f 100644 --- a/platform.json +++ b/platform.json @@ -70,6 +70,11 @@ "owner": "platformio", "version": "~3.1.1" }, + "framework-arduino-mbed-seeed": { + "type": "framework", + "optional": true, + "version": "https://github.com/maxgerhardt/framework-mbed-seeed.git" + }, "framework-cmsis": { "type": "framework", "optional": true, diff --git a/platform.py b/platform.py index 6763fb1c..f89d78a5 100644 --- a/platform.py +++ b/platform.py @@ -59,9 +59,13 @@ def configure_default_packages(self, variables, targets): if not IS_WINDOWS: self.packages["tool-gperf"]["optional"] = False - if board in ("nano33ble", "nicla_sense_me"): + if board in ("nano33ble", "nicla_sense_me", "xiaoblesense", "xiaoble"): self.packages["toolchain-gccarmnoneeabi"]["version"] = "~1.80201.0" - self.frameworks["arduino"]["package"] = "framework-arduino-mbed" + self.packages["tool-adafruit-nrfutil"]["optional"] = False + if board in ("xiaoblesense", "xiaoble"): + self.frameworks["arduino"]["package"] = "framework-arduino-mbed-seeed" + else: + self.frameworks["arduino"]["package"] = "framework-arduino-mbed" self.frameworks["arduino"][ "script" ] = "builder/frameworks/arduino/mbed-core/arduino-core-mbed.py" From 46b97263b91c7ad8af07d038a0ad79902e25b618 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 22 Jun 2022 19:46:19 +0200 Subject: [PATCH 02/10] Add boards to CI --- examples/arduino-blink/platformio.ini | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/examples/arduino-blink/platformio.ini b/examples/arduino-blink/platformio.ini index aeceba41..1371ae63 100644 --- a/examples/arduino-blink/platformio.ini +++ b/examples/arduino-blink/platformio.ini @@ -43,3 +43,13 @@ platform = nordicnrf52 framework = arduino board = stct_nrf52_minidev build_flags = -DNRF52_S132 + +[env:xiaoblesense] +platform = nordicnrf52 +framework = arduino +board = xiaoblesense + +[env:xiaoble] +platform = nordicnrf52 +framework = arduino +board = xiaoble \ No newline at end of file From dc6122840b524a348d39112d1757c1a90605dc35 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 22 Jun 2022 19:47:00 +0200 Subject: [PATCH 03/10] Add newline to end of file --- examples/arduino-blink/platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/arduino-blink/platformio.ini b/examples/arduino-blink/platformio.ini index 1371ae63..c695a055 100644 --- a/examples/arduino-blink/platformio.ini +++ b/examples/arduino-blink/platformio.ini @@ -52,4 +52,4 @@ board = xiaoblesense [env:xiaoble] platform = nordicnrf52 framework = arduino -board = xiaoble \ No newline at end of file +board = xiaoble From deb0ac8569e7c347056b987eaaf1fe8692a7a7b7 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 22 Jun 2022 19:54:39 +0200 Subject: [PATCH 04/10] Fixup git reference --- .gitmodules | 3 +++ builder/frameworks/arduino | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index 6aad40ba..f4817f35 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "builder/frameworks/arduino"] path = builder/frameworks/arduino url = https://github.com/maxgerhardt/builder-framework-arduino-nrf5.git +[submodule "builder\\frameworks\\arduino"] + path = builder\\frameworks\\arduino + url = https://github.com/maxgerhardt/builder-framework-arduino-nrf5.git diff --git a/builder/frameworks/arduino b/builder/frameworks/arduino index 42c4321d..38c0d441 160000 --- a/builder/frameworks/arduino +++ b/builder/frameworks/arduino @@ -1 +1 @@ -Subproject commit 42c4321d3f0da44a20452cca6a6e6665d3035315 +Subproject commit 38c0d44116718135840142640639e0c1190b67bd From 5781be392511a7e0d022accf56f8e57099c81ad0 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 22 Jun 2022 19:55:04 +0200 Subject: [PATCH 05/10] Fixup git reference (2) && git push --- .gitmodules | 3 --- 1 file changed, 3 deletions(-) diff --git a/.gitmodules b/.gitmodules index f4817f35..6aad40ba 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ [submodule "builder/frameworks/arduino"] path = builder/frameworks/arduino url = https://github.com/maxgerhardt/builder-framework-arduino-nrf5.git -[submodule "builder\\frameworks\\arduino"] - path = builder\\frameworks\\arduino - url = https://github.com/maxgerhardt/builder-framework-arduino-nrf5.git From 3f76698583c45f9a37e42158bd0d76930c733d93 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 22 Jun 2022 20:47:01 +0200 Subject: [PATCH 06/10] Format board JSON files --- boards/xiaoble.json | 112 +++++++++++++++++++-------------------- boards/xiaoblesense.json | 112 +++++++++++++++++++-------------------- 2 files changed, 112 insertions(+), 112 deletions(-) diff --git a/boards/xiaoble.json b/boards/xiaoble.json index 02fea6ce..67d716ea 100644 --- a/boards/xiaoble.json +++ b/boards/xiaoble.json @@ -1,60 +1,60 @@ { - "build": { - "arduino":{ - "ldscript": "linker_script.ld" - }, - "core": "arduino", - "cpu": "cortex-m4", - "extra_flags": "-DSEEED_XIAO_NRF52840 -DARDUINO_ARCH_NRF52840", - "f_cpu": "64000000L", - "hwids": [ - [ - "0x2886", - "0x0045" - ], - [ - "0x2886", - "0x8045" - ] - ], - "mcu": "nrf52840", - "variant": "SEEED_XIAO_NRF52840", - "softdevice": { - "sd_flags": "-DS140", - "sd_name": "s140", - "sd_version": "7.3.0", - "sd_fwid": "0x0123" - } + "build": { + "arduino": { + "ldscript": "linker_script.ld" }, - "connectivity": [ - "bluetooth" + "core": "arduino", + "cpu": "cortex-m4", + "extra_flags": "-DSEEED_XIAO_NRF52840 -DARDUINO_ARCH_NRF52840", + "f_cpu": "64000000L", + "hwids": [ + [ + "0x2886", + "0x0045" + ], + [ + "0x2886", + "0x8045" + ] ], - "debug": { - "jlink_device": "nRF52840_xxAA", - "openocd_target": "nrf52.cfg", - "svd_path": "nrf52840.svd" - }, - "frameworks": [ - "arduino" + "mcu": "nrf52840", + "variant": "SEEED_XIAO_NRF52840", + "softdevice": { + "sd_flags": "-DS140", + "sd_name": "s140", + "sd_version": "7.3.0", + "sd_fwid": "0x0123" + } + }, + "connectivity": [ + "bluetooth" + ], + "debug": { + "jlink_device": "nRF52840_xxAA", + "openocd_target": "nrf52.cfg", + "svd_path": "nrf52840.svd" + }, + "frameworks": [ + "arduino" + ], + "name": "Seeed XIAO BLE nRF52840", + "upload": { + "maximum_ram_size": 237568, + "maximum_size": 811008, + "protocol": "nrfutil", + "speed": 115200, + "protocols": [ + "jlink", + "nrfjprog", + "nrfutil", + "cmsis-dap", + "sam-ba", + "blackmagic" ], - "name": "Seeed XIAO BLE nRF52840", - "upload": { - "maximum_ram_size": 237568, - "maximum_size": 811008, - "protocol": "nrfutil", - "speed": 115200, - "protocols": [ - "jlink", - "nrfjprog", - "nrfutil", - "cmsis-dap", - "sam-ba", - "blackmagic" - ], - "use_1200bps_touch": true, - "require_upload_port": true, - "wait_for_upload_port": true - }, - "url": "https://wiki.seeedstudio.com/XIAO_BLE", - "vendor": "Seeed Studio" - } \ No newline at end of file + "use_1200bps_touch": true, + "require_upload_port": true, + "wait_for_upload_port": true + }, + "url": "https://wiki.seeedstudio.com/XIAO_BLE", + "vendor": "Seeed Studio" +} \ No newline at end of file diff --git a/boards/xiaoblesense.json b/boards/xiaoblesense.json index 79ece3ea..8652c452 100644 --- a/boards/xiaoblesense.json +++ b/boards/xiaoblesense.json @@ -1,60 +1,60 @@ { - "build": { - "arduino":{ - "ldscript": "linker_script.ld" - }, - "core": "arduino", - "cpu": "cortex-m4", - "extra_flags": "-DSEEED_XIAO_NRF52840_SENSE -DARDUINO_ARCH_NRF52840", - "f_cpu": "64000000L", - "hwids": [ - [ - "0x2886", - "0x0045" - ], - [ - "0x2886", - "0x8045" - ] - ], - "mcu": "nrf52840", - "variant": "SEEED_XIAO_NRF52840_SENSE", - "softdevice": { - "sd_flags": "-DS140", - "sd_name": "s140", - "sd_version": "7.3.0", - "sd_fwid": "0x0123" - } + "build": { + "arduino": { + "ldscript": "linker_script.ld" }, - "connectivity": [ - "bluetooth" + "core": "arduino", + "cpu": "cortex-m4", + "extra_flags": "-DSEEED_XIAO_NRF52840_SENSE -DARDUINO_ARCH_NRF52840", + "f_cpu": "64000000L", + "hwids": [ + [ + "0x2886", + "0x0045" + ], + [ + "0x2886", + "0x8045" + ] ], - "debug": { - "jlink_device": "nRF52840_xxAA", - "openocd_target": "nrf52.cfg", - "svd_path": "nrf52840.svd" - }, - "frameworks": [ - "arduino" + "mcu": "nrf52840", + "variant": "SEEED_XIAO_NRF52840_SENSE", + "softdevice": { + "sd_flags": "-DS140", + "sd_name": "s140", + "sd_version": "7.3.0", + "sd_fwid": "0x0123" + } + }, + "connectivity": [ + "bluetooth" + ], + "debug": { + "jlink_device": "nRF52840_xxAA", + "openocd_target": "nrf52.cfg", + "svd_path": "nrf52840.svd" + }, + "frameworks": [ + "arduino" + ], + "name": "Seeed XIAO BLE Sense", + "upload": { + "maximum_ram_size": 237568, + "maximum_size": 811008, + "protocol": "nrfutil", + "speed": 115200, + "protocols": [ + "jlink", + "nrfjprog", + "nrfutil", + "cmsis-dap", + "sam-ba", + "blackmagic" ], - "name": "Seeed XIAO BLE Sense", - "upload": { - "maximum_ram_size": 237568, - "maximum_size": 811008, - "protocol": "nrfutil", - "speed": 115200, - "protocols": [ - "jlink", - "nrfjprog", - "nrfutil", - "cmsis-dap", - "sam-ba", - "blackmagic" - ], - "use_1200bps_touch": true, - "require_upload_port": true, - "wait_for_upload_port": true - }, - "url": "https://wiki.seeedstudio.com/XIAO_BLE", - "vendor": "Seeed Studio" - } \ No newline at end of file + "use_1200bps_touch": true, + "require_upload_port": true, + "wait_for_upload_port": true + }, + "url": "https://wiki.seeedstudio.com/XIAO_BLE", + "vendor": "Seeed Studio" +} From e7622af8c91e4f1ceff340d159efec3d3cc074e5 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 22 Jun 2022 20:48:02 +0200 Subject: [PATCH 07/10] Add linebreak --- boards/xiaoble.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/xiaoble.json b/boards/xiaoble.json index 67d716ea..3957da47 100644 --- a/boards/xiaoble.json +++ b/boards/xiaoble.json @@ -57,4 +57,4 @@ }, "url": "https://wiki.seeedstudio.com/XIAO_BLE", "vendor": "Seeed Studio" -} \ No newline at end of file +} From 909bc5f86c9690bfda91a8bb1a92b6b56e6158d1 Mon Sep 17 00:00:00 2001 From: maxgerhardt Date: Wed, 4 Jan 2023 23:02:53 +0100 Subject: [PATCH 08/10] Create Xiao BLE (Sense) boards for 1.0.0 Adafruit core version --- boards/xiaoble_adafruit.json | 64 +++++++++++++++++++++++++++++++ boards/xiaoblesense_adafruit.json | 64 +++++++++++++++++++++++++++++++ builder/frameworks/arduino | 2 +- platform.json | 6 +++ platform.py | 9 +++-- 5 files changed, 141 insertions(+), 4 deletions(-) create mode 100644 boards/xiaoble_adafruit.json create mode 100644 boards/xiaoblesense_adafruit.json diff --git a/boards/xiaoble_adafruit.json b/boards/xiaoble_adafruit.json new file mode 100644 index 00000000..5bdbc1eb --- /dev/null +++ b/boards/xiaoble_adafruit.json @@ -0,0 +1,64 @@ +{ + "build": { + "arduino": { + "ldscript": "nrf52840_s140_v7.ld" + }, + "core": "nRF5", + "cpu": "cortex-m4", + "extra_flags": "-DARDUINO_Seeed_XIAO_nRF52840 -DNRF52840_XXAA", + "f_cpu": "64000000L", + "hwids": [ + [ + "0x2886", + "0x8044" + ], + [ + "0x2886", + "0x0044" + ] + ], + "mcu": "nrf52840", + "variant": "Seeed_XIAO_nRF52840", + "softdevice": { + "sd_flags": "-DS140", + "sd_name": "s140", + "sd_version": "7.3.0", + "sd_fwid": "0x0123" + }, + "bsp": { + "name": "adafruit" + }, + "usb_product": "XIAO nRF52840" + }, + "connectivity": [ + "bluetooth" + ], + "debug": { + "jlink_device": "nRF52840_xxAA", + "openocd_target": "nrf52.cfg", + "svd_path": "nrf52840.svd" + }, + "frameworks": [ + "arduino" + ], + "name": "Seeed XIAO BLE nRF52840", + "upload": { + "maximum_ram_size": 237568, + "maximum_size": 811008, + "protocol": "nrfutil", + "speed": 115200, + "protocols": [ + "jlink", + "nrfjprog", + "nrfutil", + "cmsis-dap", + "sam-ba", + "blackmagic" + ], + "use_1200bps_touch": true, + "require_upload_port": true, + "wait_for_upload_port": true + }, + "url": "https://wiki.seeedstudio.com/XIAO_BLE", + "vendor": "Seeed" +} diff --git a/boards/xiaoblesense_adafruit.json b/boards/xiaoblesense_adafruit.json new file mode 100644 index 00000000..1f68b1cb --- /dev/null +++ b/boards/xiaoblesense_adafruit.json @@ -0,0 +1,64 @@ +{ + "build": { + "arduino": { + "ldscript": "nrf52840_s140_v7.ld" + }, + "core": "nRF5", + "cpu": "cortex-m4", + "extra_flags": "-DARDUINO_Seeed_XIAO_nRF52840_Sense -DNRF52840_XXAA", + "f_cpu": "64000000L", + "hwids": [ + [ + "0x2886", + "0x8045" + ], + [ + "0x2886", + "0x0045" + ] + ], + "mcu": "nrf52840", + "variant": "Seeed_XIAO_nRF52840_Sense", + "softdevice": { + "sd_flags": "-DS140", + "sd_name": "s140", + "sd_version": "7.3.0", + "sd_fwid": "0x0123" + }, + "bsp": { + "name": "adafruit" + }, + "usb_product": "XIAO nRF52840 Sense" + }, + "connectivity": [ + "bluetooth" + ], + "debug": { + "jlink_device": "nRF52840_xxAA", + "openocd_target": "nrf52.cfg", + "svd_path": "nrf52840.svd" + }, + "frameworks": [ + "arduino" + ], + "name": "Seeed XIAO BLE Sense", + "upload": { + "maximum_ram_size": 237568, + "maximum_size": 811008, + "protocol": "nrfutil", + "speed": 115200, + "protocols": [ + "jlink", + "nrfjprog", + "nrfutil", + "cmsis-dap", + "sam-ba", + "blackmagic" + ], + "use_1200bps_touch": true, + "require_upload_port": true, + "wait_for_upload_port": true + }, + "url": "https://wiki.seeedstudio.com/XIAO_BLE", + "vendor": "Seeed" +} diff --git a/builder/frameworks/arduino b/builder/frameworks/arduino index 38c0d441..cc60b356 160000 --- a/builder/frameworks/arduino +++ b/builder/frameworks/arduino @@ -1 +1 @@ -Subproject commit 38c0d44116718135840142640639e0c1190b67bd +Subproject commit cc60b35642984f2244491086664463784f90da06 diff --git a/platform.json b/platform.json index fd761a6f..618636c6 100644 --- a/platform.json +++ b/platform.json @@ -58,6 +58,12 @@ "owner": "platformio", "version": "~1.10300.0" }, + "framework-arduinoadafruitnrf52-seeed": { + "type": "framework", + "optional": true, + "owner": "platformio", + "version": "https://github.com/maxgerhardt/framework-arduinoadafruitnrf52-seeed.git" + }, "framework-arduinonordicnrf5": { "type": "framework", "optional": true, diff --git a/platform.py b/platform.py index f89d78a5..25b7b719 100644 --- a/platform.py +++ b/platform.py @@ -37,8 +37,12 @@ def configure_default_packages(self, variables, targets): if self.board_config(board).get("build.bsp.name", "nrf5") == "adafruit": - self.frameworks["arduino"][ - "package"] = "framework-arduinoadafruitnrf52" + if board in ("xiaoblesense_adafruit", "xiaoble_adafruit"): + self.frameworks["arduino"][ + "package"] = "framework-arduinoadafruitnrf52-seeed" + else: + self.frameworks["arduino"][ + "package"] = "framework-arduinoadafruitnrf52" self.packages["framework-cmsis"]["optional"] = False self.packages["tool-adafruit-nrfutil"]["optional"] = False @@ -61,7 +65,6 @@ def configure_default_packages(self, variables, targets): if board in ("nano33ble", "nicla_sense_me", "xiaoblesense", "xiaoble"): self.packages["toolchain-gccarmnoneeabi"]["version"] = "~1.80201.0" - self.packages["tool-adafruit-nrfutil"]["optional"] = False if board in ("xiaoblesense", "xiaoble"): self.frameworks["arduino"]["package"] = "framework-arduino-mbed-seeed" else: From 7c254ae37b1004cc616a0017948c9a4882e959b4 Mon Sep 17 00:00:00 2001 From: maxgerhardt Date: Wed, 4 Jan 2023 23:30:42 +0100 Subject: [PATCH 09/10] Add Xiao (adafruit) boards to blinky and BLE example --- examples/arduino-blink/platformio.ini | 10 ++++++++++ examples/arduino-bluefruit-bleuart/platformio.ini | 12 ++++++++++++ 2 files changed, 22 insertions(+) diff --git a/examples/arduino-blink/platformio.ini b/examples/arduino-blink/platformio.ini index c695a055..3d30cedb 100644 --- a/examples/arduino-blink/platformio.ini +++ b/examples/arduino-blink/platformio.ini @@ -53,3 +53,13 @@ board = xiaoblesense platform = nordicnrf52 framework = arduino board = xiaoble + +[env:xiaoblesense_adafruit] +platform = nordicnrf52 +framework = arduino +board = xiaoblesense_adafruit + +[env:xiaoble_adafruit] +platform = nordicnrf52 +framework = arduino +board = xiaoble_adafruit \ No newline at end of file diff --git a/examples/arduino-bluefruit-bleuart/platformio.ini b/examples/arduino-bluefruit-bleuart/platformio.ini index 955918b7..5c80bde6 100644 --- a/examples/arduino-bluefruit-bleuart/platformio.ini +++ b/examples/arduino-bluefruit-bleuart/platformio.ini @@ -48,3 +48,15 @@ platform = nordicnrf52 framework = arduino board = adafruit_ledglasses_nrf52840 monitor_speed = 115200 + +[env:xiaoblesense_adafruit] +platform = nordicnrf52 +framework = arduino +board = xiaoblesense_adafruit +monitor_speed = 115200 + +[env:xiaoble_adafruit] +platform = nordicnrf52 +framework = arduino +board = xiaoble_adafruit +monitor_speed = 115200 From 4ea33c57545488824289cf5c31553baeab0376fe Mon Sep 17 00:00:00 2001 From: maxgerhardt Date: Wed, 4 Jan 2023 23:34:41 +0100 Subject: [PATCH 10/10] Fix compilation of example --- platform.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform.py b/platform.py index 25b7b719..c2e60991 100644 --- a/platform.py +++ b/platform.py @@ -67,6 +67,8 @@ def configure_default_packages(self, variables, targets): self.packages["toolchain-gccarmnoneeabi"]["version"] = "~1.80201.0" if board in ("xiaoblesense", "xiaoble"): self.frameworks["arduino"]["package"] = "framework-arduino-mbed-seeed" + # needed to build the ZIP file + self.packages["tool-adafruit-nrfutil"]["optional"] = False else: self.frameworks["arduino"]["package"] = "framework-arduino-mbed" self.frameworks["arduino"][