From a373b2cece2991554c492d3c5c5d32c0a240a0bc Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 13 Jul 2022 20:07:13 +0700 Subject: [PATCH] get most of the sketches compiled with 833 except though with external flash since 833 does not have qspi --- cores/nRF5/HardwarePWM.h | 6 +- cores/nRF5/HardwareSerial.h | 2 +- cores/nRF5/linker/gcc_startup_nrf52833.S | 2 +- cores/nRF5/nordic/nrfx/mdk/system_nrf52833.c | 159 ++++++++++++++++++ cores/nRF5/nordic/nrfx/mdk/system_nrf52833.h | 46 +++++ cores/nRF5/nordic/nrfx_config.h | 5 +- libraries/Adafruit_nRFCrypto | 2 +- .../image_eink_transfer.ino | 2 +- .../image_transfer/image_transfer.ino | 2 +- .../Bluefruit52Lib/src/BLEConnection.cpp | 2 +- libraries/Bluefruit52Lib/src/bluefruit.cpp | 2 +- libraries/Bluefruit52Lib/src/bluefruit.h | 2 +- .../src/InternalFileSystem.cpp | 4 +- libraries/SPI/SPI.cpp | 2 +- tools/build_all.py | 12 +- 15 files changed, 233 insertions(+), 17 deletions(-) create mode 100644 cores/nRF5/nordic/nrfx/mdk/system_nrf52833.c create mode 100644 cores/nRF5/nordic/nrfx/mdk/system_nrf52833.h diff --git a/cores/nRF5/HardwarePWM.h b/cores/nRF5/HardwarePWM.h index 2002c8a1..f2dc6cc9 100644 --- a/cores/nRF5/HardwarePWM.h +++ b/cores/nRF5/HardwarePWM.h @@ -41,10 +41,10 @@ #include #include -#ifdef NRF52840_XXAA -#define HWPWM_MODULE_NUM 4 +#ifdef NRF_PWM3 + #define HWPWM_MODULE_NUM 4 #else -#define HWPWM_MODULE_NUM 3 + #define HWPWM_MODULE_NUM 3 #endif class HardwarePWM diff --git a/cores/nRF5/HardwareSerial.h b/cores/nRF5/HardwareSerial.h index 50bb338a..6a3101c5 100644 --- a/cores/nRF5/HardwareSerial.h +++ b/cores/nRF5/HardwareSerial.h @@ -49,7 +49,7 @@ #ifdef NRF52832_XXAA #define SERIAL_8N1 (UARTE_CONFIG_PARITY_Excluded << UARTE_CONFIG_PARITY_Pos) #define SERIAL_8E1 (UARTE_CONFIG_PARITY_Included << UARTE_CONFIG_PARITY_Pos) -#elif defined(NRF52840_XXAA) +#elif defined(NRF52840_XXAA) || defined(NRF52833_XXAA) #define SERIAL_8N1 ((UARTE_CONFIG_STOP_One << UARTE_CONFIG_STOP_Pos) | (UARTE_CONFIG_PARITY_Excluded << UARTE_CONFIG_PARITY_Pos)) #define SERIAL_8N2 ((UARTE_CONFIG_STOP_Two << UARTE_CONFIG_STOP_Pos) | (UARTE_CONFIG_PARITY_Excluded << UARTE_CONFIG_PARITY_Pos)) #define SERIAL_8E1 ((UARTE_CONFIG_STOP_One << UARTE_CONFIG_STOP_Pos) | (UARTE_CONFIG_PARITY_Included << UARTE_CONFIG_PARITY_Pos)) diff --git a/cores/nRF5/linker/gcc_startup_nrf52833.S b/cores/nRF5/linker/gcc_startup_nrf52833.S index 0b82ce5c..3fee5d92 100644 --- a/cores/nRF5/linker/gcc_startup_nrf52833.S +++ b/cores/nRF5/linker/gcc_startup_nrf52833.S @@ -20,7 +20,7 @@ NOTICE: This file has been modified by Nordic Semiconductor ASA. */ -#ifdef NRF52840_XXAA +#ifdef NRF52833_XXAA .syntax unified .arch armv7e-m diff --git a/cores/nRF5/nordic/nrfx/mdk/system_nrf52833.c b/cores/nRF5/nordic/nrfx/mdk/system_nrf52833.c new file mode 100644 index 00000000..092951a4 --- /dev/null +++ b/cores/nRF5/nordic/nrfx/mdk/system_nrf52833.c @@ -0,0 +1,159 @@ +/* + +Copyright (c) 2009-2018 ARM Limited. All rights reserved. + + SPDX-License-Identifier: Apache-2.0 + +Licensed under the Apache License, Version 2.0 (the License); you may +not use this file except in compliance with the License. +You may obtain a copy of the License at + + www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an AS IS BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +NOTICE: This file has been modified by Nordic Semiconductor ASA. + +*/ + +/* NOTE: Template files (including this one) are application specific and therefore expected to + be copied into the application project folder prior to its use! */ + +#ifdef NRF52833_XXAA + +#include +#include +#include "nrf.h" +#include "nrf_erratas.h" +#include "system_nrf52833.h" + +/*lint ++flb "Enter library region" */ + +#define __SYSTEM_CLOCK_64M (64000000UL) + +#if defined ( __CC_ARM ) + uint32_t SystemCoreClock __attribute__((used)) = __SYSTEM_CLOCK_64M; +#elif defined ( __ICCARM__ ) + __root uint32_t SystemCoreClock = __SYSTEM_CLOCK_64M; +#elif defined ( __GNUC__ ) + uint32_t SystemCoreClock __attribute__((used)) = __SYSTEM_CLOCK_64M; +#endif + +void SystemCoreClockUpdate(void) +{ + SystemCoreClock = __SYSTEM_CLOCK_64M; +} + +void SystemInit(void) +{ + /* Enable SWO trace functionality. If ENABLE_SWO is not defined, SWO pin will be used as GPIO (see Product + Specification to see which one). */ + #if defined (ENABLE_SWO) + CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; + NRF_CLOCK->TRACECONFIG |= CLOCK_TRACECONFIG_TRACEMUX_Serial << CLOCK_TRACECONFIG_TRACEMUX_Pos; + NRF_P1->PIN_CNF[0] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos); + #endif + + /* Enable Trace functionality. If ENABLE_TRACE is not defined, TRACE pins will be used as GPIOs (see Product + Specification to see which ones). */ + #if defined (ENABLE_TRACE) + CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; + NRF_CLOCK->TRACECONFIG |= CLOCK_TRACECONFIG_TRACEMUX_Parallel << CLOCK_TRACECONFIG_TRACEMUX_Pos; + NRF_P0->PIN_CNF[7] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos); + NRF_P1->PIN_CNF[0] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos); + NRF_P0->PIN_CNF[12] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos); + NRF_P0->PIN_CNF[11] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos); + NRF_P1->PIN_CNF[9] = (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos) | (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos) | (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos); + #endif + + /* Workaround for Errata 36 "CLOCK: Some registers are not reset when expected" found at the Errata document + for your device located at https://infocenter.nordicsemi.com/index.jsp */ + if (nrf52_errata_36()){ + NRF_CLOCK->EVENTS_DONE = 0; + NRF_CLOCK->EVENTS_CTTO = 0; + NRF_CLOCK->CTIV = 0; + } + + /* Workaround for Errata 66 "TEMP: Linearity specification not met with default settings" found at the Errata document + for your device located at https://infocenter.nordicsemi.com/index.jsp */ + if (nrf52_errata_66()){ + NRF_TEMP->A0 = NRF_FICR->TEMP.A0; + NRF_TEMP->A1 = NRF_FICR->TEMP.A1; + NRF_TEMP->A2 = NRF_FICR->TEMP.A2; + NRF_TEMP->A3 = NRF_FICR->TEMP.A3; + NRF_TEMP->A4 = NRF_FICR->TEMP.A4; + NRF_TEMP->A5 = NRF_FICR->TEMP.A5; + NRF_TEMP->B0 = NRF_FICR->TEMP.B0; + NRF_TEMP->B1 = NRF_FICR->TEMP.B1; + NRF_TEMP->B2 = NRF_FICR->TEMP.B2; + NRF_TEMP->B3 = NRF_FICR->TEMP.B3; + NRF_TEMP->B4 = NRF_FICR->TEMP.B4; + NRF_TEMP->B5 = NRF_FICR->TEMP.B5; + NRF_TEMP->T0 = NRF_FICR->TEMP.T0; + NRF_TEMP->T1 = NRF_FICR->TEMP.T1; + NRF_TEMP->T2 = NRF_FICR->TEMP.T2; + NRF_TEMP->T3 = NRF_FICR->TEMP.T3; + NRF_TEMP->T4 = NRF_FICR->TEMP.T4; + } + + /* Workaround for Errata 136 "System: Bits in RESETREAS are set when they should not be" found at the Errata document + for your device located at https://infocenter.nordicsemi.com/index.jsp */ + if (nrf52_errata_136()){ + if (NRF_POWER->RESETREAS & POWER_RESETREAS_RESETPIN_Msk){ + NRF_POWER->RESETREAS = ~POWER_RESETREAS_RESETPIN_Msk; + } + } + + /* Enable the FPU if the compiler used floating point unit instructions. __FPU_USED is a MACRO defined by the + * compiler. Since the FPU consumes energy, remember to disable FPU use in the compiler if floating point unit + * operations are not used in your code. */ + #if (__FPU_USED == 1) + SCB->CPACR |= (3UL << 20) | (3UL << 22); + __DSB(); + __ISB(); + #endif + + /* Configure NFCT pins as GPIOs if NFCT is not to be used in your code. If CONFIG_NFCT_PINS_AS_GPIOS is not defined, + two GPIOs (see Product Specification to see which ones) will be reserved for NFC and will not be available as + normal GPIOs. */ + #if defined (CONFIG_NFCT_PINS_AS_GPIOS) + if ((NRF_UICR->NFCPINS & UICR_NFCPINS_PROTECT_Msk) == (UICR_NFCPINS_PROTECT_NFC << UICR_NFCPINS_PROTECT_Pos)){ + NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos; + while (NRF_NVMC->READY == NVMC_READY_READY_Busy){} + NRF_UICR->NFCPINS &= ~UICR_NFCPINS_PROTECT_Msk; + while (NRF_NVMC->READY == NVMC_READY_READY_Busy){} + NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos; + while (NRF_NVMC->READY == NVMC_READY_READY_Busy){} + NVIC_SystemReset(); + } + #endif + + /* Configure GPIO pads as pPin Reset pin if Pin Reset capabilities desired. If CONFIG_GPIO_AS_PINRESET is not + defined, pin reset will not be available. One GPIO (see Product Specification to see which one) will then be + reserved for PinReset and not available as normal GPIO. */ + #if defined (CONFIG_GPIO_AS_PINRESET) + if (((NRF_UICR->PSELRESET[0] & UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected << UICR_PSELRESET_CONNECT_Pos)) || + ((NRF_UICR->PSELRESET[1] & UICR_PSELRESET_CONNECT_Msk) != (UICR_PSELRESET_CONNECT_Connected << UICR_PSELRESET_CONNECT_Pos))){ + NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos; + while (NRF_NVMC->READY == NVMC_READY_READY_Busy){} + NRF_UICR->PSELRESET[0] = 18; + while (NRF_NVMC->READY == NVMC_READY_READY_Busy){} + NRF_UICR->PSELRESET[1] = 18; + while (NRF_NVMC->READY == NVMC_READY_READY_Busy){} + NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos; + while (NRF_NVMC->READY == NVMC_READY_READY_Busy){} + NVIC_SystemReset(); + } + #endif + + SystemCoreClockUpdate(); +} + +/*lint --flb "Leave library region" */ + +#endif + diff --git a/cores/nRF5/nordic/nrfx/mdk/system_nrf52833.h b/cores/nRF5/nordic/nrfx/mdk/system_nrf52833.h new file mode 100644 index 00000000..927a039f --- /dev/null +++ b/cores/nRF5/nordic/nrfx/mdk/system_nrf52833.h @@ -0,0 +1,46 @@ +/* + +Copyright (c) 2010 - 2018, Nordic Semiconductor ASA All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +3. Neither the name of Nordic Semiconductor ASA nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +*/ + +#ifndef SYSTEM_NRF52833_H +#define SYSTEM_NRF52833_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include "system_nrf.h" + +#ifdef __cplusplus +} +#endif + +#endif /* SYSTEM_NRF52833_H */ diff --git a/cores/nRF5/nordic/nrfx_config.h b/cores/nRF5/nordic/nrfx_config.h index 0c1a9a77..959f4233 100644 --- a/cores/nRF5/nordic/nrfx_config.h +++ b/cores/nRF5/nordic/nrfx_config.h @@ -26,9 +26,12 @@ #define NRFX_TIMER2_ENABLED 0 #define NRFX_TIMER3_ENABLED 0 -#ifdef NRF52840_XXAA +#if defined(NRF52840_XXAA) #define NRFX_QSPI_ENABLED 1 #define NRFX_SPIM3_ENABLED 1 +#elif defined(NRF52833_XXAA) + #define NRFX_QSPI_ENABLED 0 + #define NRFX_SPIM3_ENABLED 1 #else #define NRFX_QSPI_ENABLED 0 #define NRFX_SPIM3_ENABLED 0 diff --git a/libraries/Adafruit_nRFCrypto b/libraries/Adafruit_nRFCrypto index 7444c2e9..8499e741 160000 --- a/libraries/Adafruit_nRFCrypto +++ b/libraries/Adafruit_nRFCrypto @@ -1 +1 @@ -Subproject commit 7444c2e9472b8731cbcb76be5216df04680c5529 +Subproject commit 8499e741e2b7c11e71ac39824091966fbe9cf0d0 diff --git a/libraries/Bluefruit52Lib/examples/Peripheral/image_eink_transfer/image_eink_transfer.ino b/libraries/Bluefruit52Lib/examples/Peripheral/image_eink_transfer/image_eink_transfer.ino index 5f4f208e..adb2711a 100644 --- a/libraries/Bluefruit52Lib/examples/Peripheral/image_eink_transfer/image_eink_transfer.ino +++ b/libraries/Bluefruit52Lib/examples/Peripheral/image_eink_transfer/image_eink_transfer.ino @@ -99,7 +99,7 @@ void setup() // changing the default "deferred" option to false to invoke callback immediately. // However, the transfer speed will be affected since immediate callback will block BLE task // to process data especially when tft.drawRGBBitmap() is calling. -#ifdef NRF52840_XXAA +#if defined(NRF52840_XXAA) || defined(NRF52833_XXAA) // 2nd argument is true to deferred callbacks i.e queue it up in separated callback Task bleuart.setRxCallback(bleuart_rx_callback, true); #else diff --git a/libraries/Bluefruit52Lib/examples/Peripheral/image_transfer/image_transfer.ino b/libraries/Bluefruit52Lib/examples/Peripheral/image_transfer/image_transfer.ino index 7daeb815..1a79bc89 100644 --- a/libraries/Bluefruit52Lib/examples/Peripheral/image_transfer/image_transfer.ino +++ b/libraries/Bluefruit52Lib/examples/Peripheral/image_transfer/image_transfer.ino @@ -166,7 +166,7 @@ void setup() // changing the default "deferred" option to false to invoke callback immediately. // However, the transfer speed will be affected since immediate callback will block BLE task // to process data especially when tft.drawRGBBitmap() is calling. -#ifdef NRF52840_XXAA +#if defined(NRF52840_XXAA) || defined(NRF52833_XXAA) // 2nd argument is true to deferred callbacks i.e queue it up in separated callback Task bleuart.setRxCallback(bleuart_rx_callback, true); #else diff --git a/libraries/Bluefruit52Lib/src/BLEConnection.cpp b/libraries/Bluefruit52Lib/src/BLEConnection.cpp index 7764aa1d..0f6a4d1e 100644 --- a/libraries/Bluefruit52Lib/src/BLEConnection.cpp +++ b/libraries/Bluefruit52Lib/src/BLEConnection.cpp @@ -149,7 +149,7 @@ static inline bool is_tx_power_valid(int8_t power) { #if defined(NRF52832_XXAA) int8_t const accepted[] = { -40, -20, -16, -12, -8, -4, 0, 3, 4 }; -#elif defined( NRF52840_XXAA) +#elif defined(NRF52840_XXAA) || defined(NRF52833_XXAA) int8_t const accepted[] = { -40, -20, -16, -12, -8, -4, 0, 2, 3, 4, 5, 6, 7, 8 }; #endif diff --git a/libraries/Bluefruit52Lib/src/bluefruit.cpp b/libraries/Bluefruit52Lib/src/bluefruit.cpp index efe8b14c..9a91dc5b 100644 --- a/libraries/Bluefruit52Lib/src/bluefruit.cpp +++ b/libraries/Bluefruit52Lib/src/bluefruit.cpp @@ -537,7 +537,7 @@ static inline bool is_tx_power_valid(int8_t power) { #if defined(NRF52832_XXAA) int8_t const accepted[] = { -40, -20, -16, -12, -8, -4, 0, 3, 4 }; -#elif defined( NRF52840_XXAA) +#elif defined(NRF52840_XXAA) || defined(NRF52833_XXAA) int8_t const accepted[] = { -40, -20, -16, -12, -8, -4, 0, 2, 3, 4, 5, 6, 7, 8 }; #endif diff --git a/libraries/Bluefruit52Lib/src/bluefruit.h b/libraries/Bluefruit52Lib/src/bluefruit.h index 49afda36..89b874ca 100644 --- a/libraries/Bluefruit52Lib/src/bluefruit.h +++ b/libraries/Bluefruit52Lib/src/bluefruit.h @@ -37,7 +37,7 @@ #define BLE_MAX_CONNECTION 20 // SD support up to 20 connections // Allocate more memory for GATT table for 840 -#ifdef NRF52840_XXAA +#if defined(NRF52840_XXAA) || defined(NRF52833_XXAA) #define CFG_SD_ATTR_TABLE_SIZE 0x1000 #else #define CFG_SD_ATTR_TABLE_SIZE 0xC00 diff --git a/libraries/InternalFileSytem/src/InternalFileSystem.cpp b/libraries/InternalFileSytem/src/InternalFileSystem.cpp index 81ad95b9..923aede3 100644 --- a/libraries/InternalFileSytem/src/InternalFileSystem.cpp +++ b/libraries/InternalFileSytem/src/InternalFileSystem.cpp @@ -26,9 +26,9 @@ #include "flash/flash_nrf5x.h" #ifdef NRF52840_XXAA -#define LFS_FLASH_ADDR 0xED000 + #define LFS_FLASH_ADDR 0xED000 #else -#define LFS_FLASH_ADDR 0x6D000 + #define LFS_FLASH_ADDR 0x6D000 #endif #define LFS_FLASH_TOTAL_SIZE (7*FLASH_NRF52_PAGE_SIZE) diff --git a/libraries/SPI/SPI.cpp b/libraries/SPI/SPI.cpp index 916e8671..80bfefa8 100644 --- a/libraries/SPI/SPI.cpp +++ b/libraries/SPI/SPI.cpp @@ -21,7 +21,7 @@ // Due to nRF52832 Errata with SPIM, we will only use SPIM for 840 variant // https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_58.html -#ifdef NRF52840_XXAA +#if defined(NRF52840_XXAA) || defined(NRF52833_XXAA) #include "SPI.h" #include diff --git a/tools/build_all.py b/tools/build_all.py index fca8d9f7..f15ed1b6 100644 --- a/tools/build_all.py +++ b/tools/build_all.py @@ -23,10 +23,18 @@ default_boards = [ 'itsybitsy52840' ] +def get_sd(name): + if '52832' in name: + return 's132v6' + elif '52833' in name: + return 's140v7' + else: + # most of the board is 52840 + return 's140v6' + # return [succeeded, failed, skipped] def build_sketch(variant, sketch): - fqbn = "adafruit:nrf52:{}:softdevice={},debug=l0".format(variant, - 's140v6' if variant != 'feather52832' else 's132v6') + fqbn = "adafruit:nrf52:{}:softdevice={},debug=l0".format(variant, get_sd(variant)) ret = [0, 0, 0] # skip TinyUSB library examples for nRF52832