From 9091f615129a0c5fda83252df97298e3f1945f70 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Thu, 11 Jul 2024 13:37:23 -0400 Subject: [PATCH 01/25] test --- .github/workflows/compile.yml | 1 + boards.txt | 40 ++++++++ variants/BLYST_NANO_DK/pins_arduino.h | 17 ++++ variants/BLYST_NANO_DK/variant.cpp | 74 ++++++++++++++ variants/BLYST_NANO_DK/variant.h | 135 ++++++++++++++++++++++++++ 5 files changed, 267 insertions(+) create mode 100644 variants/BLYST_NANO_DK/pins_arduino.h create mode 100644 variants/BLYST_NANO_DK/variant.cpp create mode 100644 variants/BLYST_NANO_DK/variant.h diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 9efea657..c2d34852 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -14,6 +14,7 @@ jobs: variant: - nRF52DK - BluzDK + - BLYST_NANO_DK - RedBearLab_nRF51822:version=1_0 - BBCmicrobit - BBCmicrobitV2 diff --git a/boards.txt b/boards.txt index dbd04419..5df2c6c1 100644 --- a/boards.txt +++ b/boards.txt @@ -390,6 +390,46 @@ STCT_nRF52_minidev.menu.softdevice.s132.upload.maximum_size=409600 STCT_nRF52_minidev.menu.softdevice.s132.build.extra_flags=-DNRF52 -DS132 -DNRF51_S132 STCT_nRF52_minidev.menu.softdevice.s132.build.ldscript=armgcc_s132_nrf52832_xxaa.ld +BLYST_NANO_DK.name=DevKit board for BLYST-NANO (IMM-NRF52832-NANO) + +############################### +BLYST_NANO_DK.vid.0=0x1366 +#BLYST_NANO_DK.pid.0=0x1015 +############################### + +BLYST_NANO_DK.upload.tool=sandeepmistry:openocd +BLYST_NANO_DK.upload.protocol=jlink +BLYST_NANO_DK.upload.target=nrf52 +BLYST_NANO_DK.upload.maximum_size=524288 +BLYST_NANO_DK.upload.setup_command=transport select swd; +BLYST_NANO_DK.upload.use_1200bps_touch=false +BLYST_NANO_DK.upload.wait_for_upload_port=false +BLYST_NANO_DK.upload.native_usb=false + +BLYST_NANO_DK.bootloader.tool=sandeepmistry:openocd + +BLYST_NANO_DK.build.mcu=cortex-m4 +BLYST_NANO_DK.build.f_cpu=16000000 +BLYST_NANO_DK.build.board=IDK_BLYST_NANO +BLYST_NANO_DK.build.core=nRF5 +BLYST_NANO_DK.build.variant=BLYST_NANO_DK +BLYST_NANO_DK.build.variant_system_lib= +BLYST_NANO_DK.build.extra_flags=-DNRF52 +BLYST_NANO_DK.build.float_flags=-mfloat-abi=hard -mfpu=fpv4-sp-d16 +BLYST_NANO_DK.build.ldscript=nrf52_xxaa.ld + +BLYST_NANO_DK.build.lfclk_flags=-DUSE_LFXO + +BLYST_NANO_DK.menu.softdevice.none=None +BLYST_NANO_DK.menu.softdevice.none.softdevice=none +BLYST_NANO_DK.menu.softdevice.none.softdeviceversion= + +BLYST_NANO_DK.menu.softdevice.s132=S132 +BLYST_NANO_DK.menu.softdevice.s132.softdevice=s132 +BLYST_NANO_DK.menu.softdevice.s132.softdeviceversion=2.0.1 +BLYST_NANO_DK.menu.softdevice.s132.upload.maximum_size=409600 +BLYST_NANO_DK.menu.softdevice.s132.build.extra_flags=-DNRF52 -DS132 -DNRF51_S132 +BLYST_NANO_DK.menu.softdevice.s132.build.ldscript=armgcc_s132_nrf52832_xxaa.ld # nRF51 variants ################### diff --git a/variants/BLYST_NANO_DK/pins_arduino.h b/variants/BLYST_NANO_DK/pins_arduino.h new file mode 100644 index 00000000..3ef4d4a9 --- /dev/null +++ b/variants/BLYST_NANO_DK/pins_arduino.h @@ -0,0 +1,17 @@ +/* + Copyright (c) 2014-2015 Arduino LLC. All right reserved. + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +// API compatibility +#include "variant.h" diff --git a/variants/BLYST_NANO_DK/variant.cpp b/variants/BLYST_NANO_DK/variant.cpp new file mode 100644 index 00000000..535f2594 --- /dev/null +++ b/variants/BLYST_NANO_DK/variant.cpp @@ -0,0 +1,74 @@ +/* + Copyright (c) 2014-2015 Arduino LLC. All right reserved. + Copyright (c) 2016 Sandeep Mistry All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include "variant.h" + +const uint32_t g_ADigitalPinMap[] = { + // ANALOG + 3, // AIN1 + 4, // AIN2 + 5, // AIN3 + 28, // AIN4 + 29, // AIN5 + 31, // AIN7 + + // DIGITAL (D0 - D1) + 2, // S1 //6 + 13, // S2 //7 + + // DIGITAL (D2 - D5) + 30, // LED1 //8 + 28, // LED2_Red //9 + 29, // LED2_Green //10 + 27, // LED2_ Blue /11 + + // DIGITAL (D6 - D9) + 7, // UART TX //12 + 8, // UART RX //13 + 11, // UART CTS //14 + 12, // UART RTS //15 + + // DIGITAL (D10 - D11)) + 9, // NFC1 //16 + 10, // NFC2 //17 + + // DIGITAL (D12 - D13) + 14, // I2C SDA //18 + 15, // I2C SCL //19 + + // DIGITAL (D14 - D19) + 16, // GPIO //20 + 17, // GPIO //21 + 18, // GPIO //22 + 19, // GPIO //23 + 20, // GPIO //24 + 22, // GPIO //25 + + // DIGITAL (D20 - D23) + 23, // SPI CS/SS //26 + 24, // SPI SCK //27 + 25, // SPI MISO //28 + 26, // SPI MOSI //29 + + // DIGITAL (D23) + 27, // GPIO //30 + + // RESET + 21, //31 +}; diff --git a/variants/BLYST_NANO_DK/variant.h b/variants/BLYST_NANO_DK/variant.h new file mode 100644 index 00000000..27e0a48f --- /dev/null +++ b/variants/BLYST_NANO_DK/variant.h @@ -0,0 +1,135 @@ +/* + Copyright (c) 2014-2015 Arduino LLC. All right reserved. + Copyright (c) 2016 Sandeep Mistry All right reserved. + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef _VARIANT_NRF52_DK_ +#define _VARIANT_NRF52_DK_ + +/** Master clock frequency */ +#define VARIANT_MCK (64000000ul) + +/*---------------------------------------------------------------------------- + * Headers + *----------------------------------------------------------------------------*/ + +#include "WVariant.h" + +#ifdef __cplusplus +extern "C" +{ +#endif // __cplusplus + +// Number of pins defined in PinDescription array +#define PINS_COUNT (31u) +#define NUM_DIGITAL_PINS (24u) +#define NUM_ANALOG_INPUTS (7u) +#define NUM_ANALOG_OUTPUTS (0u) + +/* + * Analog pins + */ +#define PIN_A0 (0) // AIN1 (P0.03) +#define PIN_A1 (1u) // AIN2 (P0.04) +#define PIN_A2 (2u) // AIN3 (P0.05) +#define PIN_A3 (3u) // AIN4 (P0.28) +#define PIN_A4 (4u) // AIN5 (P0.29) +#define PIN_A5 (5u) // AIN7 (P0.31) + +static const uint8_t A0 = PIN_A0 ; // AIN1 +static const uint8_t A1 = PIN_A1 ; // AIN2 +static const uint8_t A2 = PIN_A2 ; // AIN4 +static const uint8_t A3 = PIN_A3 ; // AIN5 +static const uint8_t A4 = PIN_A4 ; // AIN6 +static const uint8_t A5 = PIN_A5 ; // AIN7 +#define ADC_RESOLUTION 14 + + +// Buttons +#define PIN_BUTTON1 (6u) +#define PIN_BUTTON2 (7u) + +#define PIN_S1 PIN_BUTTON1 +#define PIN_S2 PIN_BUTTON2 + + +// LEDs +#define PIN_LED1 (8u) +#define PIN_LED2 (9u) +#define PIN_LED3 (10u) +#define PIN_LED4 (11u) + +#define LED1 PIN_LED1 +#define LED2_R PIN_LED2 +#define LED2_G PIN_LED3 +#define LED2_B PIN_LED4 + + +/* + * Serial interfaces + */ +// Serial +#define PIN_SERIAL_TX (12u) +#define PIN_SERIAL_RX (13u) +#define PIN_SERIAL_CTS (14u) +#define PIN_SERIAL_RTS (15u) + + +/* + * Two Wire (I2C) Interfaces + */ +#define WIRE_INTERFACES_COUNT 1 + +#define PIN_WIRE_SDA (18u) +#define PIN_WIRE_SCL (19u) + +static const uint8_t SDA = PIN_WIRE_SDA; +static const uint8_t SCL = PIN_WIRE_SCL; + + +/* + * SPI Interfaces + */ +#define SPI_INTERFACES_COUNT 1 + +#define PIN_SPI_SS (26u) +#define PIN_SPI_SCK (27u) +#define PIN_SPI_MISO (28u) +#define PIN_SPI_MOSI (29u) + +static const uint8_t SS = PIN_SPI_SS; // was cs before ?? +static const uint8_t MOSI = PIN_SPI_MOSI; +static const uint8_t MISO = PIN_SPI_MISO; +static const uint8_t SCK = PIN_SPI_SCK; + + +// NFC antenna pins +#define PIN_NFC1 (16u) +#define PIN_NFC2 (17u) + + +/* + * Reset Button at P0.21 + */ +#define RESET_PIN (31u) + +#ifdef __cplusplus +} +#endif + +/*---------------------------------------------------------------------------- + * Arduino objects - C++ only + *----------------------------------------------------------------------------*/ + +#endif From 2795e2a4d0d3998c60f51c1a75b799384942457b Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Thu, 11 Jul 2024 14:16:48 -0400 Subject: [PATCH 02/25] add BLYST_NANO_DK --- README.md | 1 + docs/package_nRF5_boards_index.json | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0595d25f..45b285e4 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,7 @@ Become a sponsor and get your logo on our README on Github with a link to your s * [hackaBLE](https://github.com/electronut/ElectronutLabs-hackaBLE) * [hackaBLE_v2](https://github.com/electronut/ElectronutLabs-hackaBLE) * [DWM1001-DEV](https://www.decawave.com/product/dwm1001-development-board/) + * [BLYST_NANO_DK](https://www.crowdsupply.com/i-syst/blyst-nano) ### nRF51 * [Plain nRF51 MCU](https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF51822) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index dc400b62..15da79ce 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -359,13 +359,14 @@ "version": "0.8.0", "category": "Contributed", "help": { - "online": "https://github.com/sandeepmistry/arduino-nRF5/issues" + "online": "https://github.com/DINDIN2007/arduino-nRF5/issues" }, - "url": "https://github.com/sandeepmistry/arduino-nRF5/archive/0.8.0.tar.gz", + "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.8.0.tar.gz", "archiveFileName": "arduino-nRF52-0.8.0.tar.gz", "checksum": "MD5:84da4097f5518bcaa0752ff31927504f", "size": "1488561", "boards": [ + {"name": "BLYST_NANO_DK"}, {"name": "BBC micro:bit"}, {"name": "BBC micro:bit v2"}, {"name": "Bluz DK"}, From 78dd5c43b08a436ffdecb363a5b8def64eae75db Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Thu, 11 Jul 2024 14:51:14 -0400 Subject: [PATCH 03/25] added 0.9.0 --- docs/package_nRF5_boards_index.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index 15da79ce..d753485c 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -356,13 +356,13 @@ { "name": "Nordic Semiconductor nRF5 Boards", "architecture": "nRF5", - "version": "0.8.0", + "version": "0.9.0", "category": "Contributed", "help": { "online": "https://github.com/DINDIN2007/arduino-nRF5/issues" }, - "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.8.0.tar.gz", - "archiveFileName": "arduino-nRF52-0.8.0.tar.gz", + "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.9.0.tar.gz", + "archiveFileName": "arduino-nRF52-0.9.0.tar.gz", "checksum": "MD5:84da4097f5518bcaa0752ff31927504f", "size": "1488561", "boards": [ From 344581aa24b14658aac2a8788134c8e8abacea95 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Thu, 11 Jul 2024 14:57:26 -0400 Subject: [PATCH 04/25] file size error --- docs/package_nRF5_boards_index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index d753485c..921a3db0 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -364,7 +364,7 @@ "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.9.0.tar.gz", "archiveFileName": "arduino-nRF52-0.9.0.tar.gz", "checksum": "MD5:84da4097f5518bcaa0752ff31927504f", - "size": "1488561", + "size": "1490649", "boards": [ {"name": "BLYST_NANO_DK"}, {"name": "BBC micro:bit"}, From 916eac4f9950932349d88d1ca61b377a152f97a9 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Thu, 11 Jul 2024 15:10:28 -0400 Subject: [PATCH 05/25] test --- docs/package_nRF5_boards_index.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index 921a3db0..0c0d5954 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -356,13 +356,13 @@ { "name": "Nordic Semiconductor nRF5 Boards", "architecture": "nRF5", - "version": "0.9.0", + "version": "0.8.0", "category": "Contributed", "help": { "online": "https://github.com/DINDIN2007/arduino-nRF5/issues" }, - "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.9.0.tar.gz", - "archiveFileName": "arduino-nRF52-0.9.0.tar.gz", + "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.8.0.tar.gz", + "archiveFileName": "arduino-nRF52-0.8.0.tar.gz", "checksum": "MD5:84da4097f5518bcaa0752ff31927504f", "size": "1490649", "boards": [ From 42f6156733a2e652b53f92bcf96aa46a38530b60 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Thu, 11 Jul 2024 15:11:59 -0400 Subject: [PATCH 06/25] test --- docs/package_nRF5_boards_index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index 0c0d5954..7c9a7e86 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -364,7 +364,7 @@ "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.8.0.tar.gz", "archiveFileName": "arduino-nRF52-0.8.0.tar.gz", "checksum": "MD5:84da4097f5518bcaa0752ff31927504f", - "size": "1490649", + "size": "1490648", "boards": [ {"name": "BLYST_NANO_DK"}, {"name": "BBC micro:bit"}, From d91df00cdd6ea930b0e12df4cca607432b1fa823 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Thu, 11 Jul 2024 15:18:51 -0400 Subject: [PATCH 07/25] test --- docs/package_nRF5_boards_index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index 7c9a7e86..67fcb49c 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -363,7 +363,7 @@ }, "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.8.0.tar.gz", "archiveFileName": "arduino-nRF52-0.8.0.tar.gz", - "checksum": "MD5:84da4097f5518bcaa0752ff31927504f", + "checksum": "MD5:d41d8cd98f00b204e9800998ecf8427e", "size": "1490648", "boards": [ {"name": "BLYST_NANO_DK"}, From f516e4c2a2bd7f6a76bb4e2ad66faf6c48b346b2 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Thu, 11 Jul 2024 15:34:21 -0400 Subject: [PATCH 08/25] test123 --- docs/package_nRF5_boards_index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index 67fcb49c..c977cc3a 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -363,7 +363,7 @@ }, "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.8.0.tar.gz", "archiveFileName": "arduino-nRF52-0.8.0.tar.gz", - "checksum": "MD5:d41d8cd98f00b204e9800998ecf8427e", + "checksum": "MD5:d41d8cd98f00b204e9800998ecf8427e", "size": "1490648", "boards": [ {"name": "BLYST_NANO_DK"}, From 9da614045c8876995b686eb52169de201ca37ad4 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 10:14:15 -0400 Subject: [PATCH 09/25] test --- docs/package_nRF5_boards_index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index c977cc3a..9a09767c 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -310,7 +310,7 @@ }, "url": "https://github.com/sandeepmistry/arduino-nRF5/archive/0.7.0.tar.gz", "archiveFileName": "arduino-nRF52-0.7.0.tar.gz", - "checksum": "MD5:7316605161783e2b944e08fc44c7b6f8", + "checksum": "MD5:0b111df79f1f7a01c8421e8813d86c05", "size": "1487463", "boards": [ {"name": "BBC micro:bit"}, From 1c8a974d6479225ed34bf042bb8bb4ac42bf6741 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 10:17:08 -0400 Subject: [PATCH 10/25] test --- docs/package_nRF5_boards_index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index 9a09767c..2476b2b7 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -310,7 +310,7 @@ }, "url": "https://github.com/sandeepmistry/arduino-nRF5/archive/0.7.0.tar.gz", "archiveFileName": "arduino-nRF52-0.7.0.tar.gz", - "checksum": "MD5:0b111df79f1f7a01c8421e8813d86c05", + "checksum": "MD5:004cc94689af048eaa85eacab99c2b5e", "size": "1487463", "boards": [ {"name": "BBC micro:bit"}, From 792c39dfe8cea10f62c0967149e5b5d7be9fad66 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 10:21:32 -0400 Subject: [PATCH 11/25] test123 --- docs/package_nRF5_boards_index.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index 2476b2b7..b81a413f 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -361,10 +361,10 @@ "help": { "online": "https://github.com/DINDIN2007/arduino-nRF5/issues" }, - "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.8.0.tar.gz", - "archiveFileName": "arduino-nRF52-0.8.0.tar.gz", - "checksum": "MD5:d41d8cd98f00b204e9800998ecf8427e", - "size": "1490648", + "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.10.0.tar.gz", + "archiveFileName": "arduino-nRF52-0.10.0.tar.gz", + "checksum": "MD5:004cc94689af048eaa85eacab99c2b5e", + "size": "1490705", "boards": [ {"name": "BLYST_NANO_DK"}, {"name": "BBC micro:bit"}, From df62721f77cbbb76b08a03f002b83a791b8f0d3e Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 10:26:36 -0400 Subject: [PATCH 12/25] changed checksum for version 0.10.0 --- docs/package_nRF5_boards_index.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index b81a413f..c25166ef 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -356,14 +356,14 @@ { "name": "Nordic Semiconductor nRF5 Boards", "architecture": "nRF5", - "version": "0.8.0", + "version": "0.10.0", "category": "Contributed", "help": { "online": "https://github.com/DINDIN2007/arduino-nRF5/issues" }, "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.10.0.tar.gz", "archiveFileName": "arduino-nRF52-0.10.0.tar.gz", - "checksum": "MD5:004cc94689af048eaa85eacab99c2b5e", + "checksum": "MD5:dc751d1872ca053db1143c0348c58d88", "size": "1490705", "boards": [ {"name": "BLYST_NANO_DK"}, From 4511ae2b39c0bb07b4599328ece526c29c007543 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 10:36:08 -0400 Subject: [PATCH 13/25] changed checksum using linux --- docs/package_nRF5_boards_index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index c25166ef..8fef2022 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -363,7 +363,7 @@ }, "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.10.0.tar.gz", "archiveFileName": "arduino-nRF52-0.10.0.tar.gz", - "checksum": "MD5:dc751d1872ca053db1143c0348c58d88", + "checksum": "MD5:462503cc42e498f3392ccb1d71456bfb", "size": "1490705", "boards": [ {"name": "BLYST_NANO_DK"}, From 977fa83beccbbfabcfc9512067b262718eee7068 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 11:52:24 -0400 Subject: [PATCH 14/25] changed upload protocol and f_cpu --- boards.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards.txt b/boards.txt index 5df2c6c1..4b0c43d4 100644 --- a/boards.txt +++ b/boards.txt @@ -398,7 +398,7 @@ BLYST_NANO_DK.vid.0=0x1366 ############################### BLYST_NANO_DK.upload.tool=sandeepmistry:openocd -BLYST_NANO_DK.upload.protocol=jlink +BLYST_NANO_DK.upload.protocol=cmsis-dap BLYST_NANO_DK.upload.target=nrf52 BLYST_NANO_DK.upload.maximum_size=524288 BLYST_NANO_DK.upload.setup_command=transport select swd; @@ -409,7 +409,7 @@ BLYST_NANO_DK.upload.native_usb=false BLYST_NANO_DK.bootloader.tool=sandeepmistry:openocd BLYST_NANO_DK.build.mcu=cortex-m4 -BLYST_NANO_DK.build.f_cpu=16000000 +BLYST_NANO_DK.build.f_cpu=64000000 BLYST_NANO_DK.build.board=IDK_BLYST_NANO BLYST_NANO_DK.build.core=nRF5 BLYST_NANO_DK.build.variant=BLYST_NANO_DK From cd7b4191b9139ead09e277e69d0b4dc9a4726e6b Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 11:58:33 -0400 Subject: [PATCH 15/25] version 0.11.0 --- docs/package_nRF5_boards_index.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index 8fef2022..92995494 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -363,8 +363,8 @@ }, "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.10.0.tar.gz", "archiveFileName": "arduino-nRF52-0.10.0.tar.gz", - "checksum": "MD5:462503cc42e498f3392ccb1d71456bfb", - "size": "1490705", + "checksum": "MD5:edcd6b4fc791b6103244d0f5f2e89750", + "size": "1490693", "boards": [ {"name": "BLYST_NANO_DK"}, {"name": "BBC micro:bit"}, From 7b750ce83cc7a5004cfa2909f731180c2742907f Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 12:03:05 -0400 Subject: [PATCH 16/25] test --- docs/package_nRF5_boards_index.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index 92995494..f8201bc2 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -356,13 +356,13 @@ { "name": "Nordic Semiconductor nRF5 Boards", "architecture": "nRF5", - "version": "0.10.0", + "version": "0.11.0", "category": "Contributed", "help": { "online": "https://github.com/DINDIN2007/arduino-nRF5/issues" }, - "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.10.0.tar.gz", - "archiveFileName": "arduino-nRF52-0.10.0.tar.gz", + "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.11.0.tar.gz", + "archiveFileName": "arduino-nRF52-0.11.0.tar.gz", "checksum": "MD5:edcd6b4fc791b6103244d0f5f2e89750", "size": "1490693", "boards": [ From 00bb82108472629cdc7955f2ee09bcc0f1f7e0a3 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 12:04:35 -0400 Subject: [PATCH 17/25] test123 --- docs/package_nRF5_boards_index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index f8201bc2..85008a47 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -363,7 +363,7 @@ }, "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.11.0.tar.gz", "archiveFileName": "arduino-nRF52-0.11.0.tar.gz", - "checksum": "MD5:edcd6b4fc791b6103244d0f5f2e89750", + "checksum": "MD5:edcd6b4fc791b6103244d0f5f2e89750", "size": "1490693", "boards": [ {"name": "BLYST_NANO_DK"}, From 978dd165d602230a52e9645f8bf70c0b05786631 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 13:02:26 -0400 Subject: [PATCH 18/25] removed vid and pid --- boards.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/boards.txt b/boards.txt index 4b0c43d4..abd81d01 100644 --- a/boards.txt +++ b/boards.txt @@ -392,11 +392,6 @@ STCT_nRF52_minidev.menu.softdevice.s132.build.ldscript=armgcc_s132_nrf52832_xxaa BLYST_NANO_DK.name=DevKit board for BLYST-NANO (IMM-NRF52832-NANO) -############################### -BLYST_NANO_DK.vid.0=0x1366 -#BLYST_NANO_DK.pid.0=0x1015 -############################### - BLYST_NANO_DK.upload.tool=sandeepmistry:openocd BLYST_NANO_DK.upload.protocol=cmsis-dap BLYST_NANO_DK.upload.target=nrf52 From 5dafb6994d80343072aa524f6af72c7c214ac692 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 13:25:56 -0400 Subject: [PATCH 19/25] changed vid and pid --- boards.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/boards.txt b/boards.txt index abd81d01..75139763 100644 --- a/boards.txt +++ b/boards.txt @@ -392,6 +392,11 @@ STCT_nRF52_minidev.menu.softdevice.s132.build.ldscript=armgcc_s132_nrf52832_xxaa BLYST_NANO_DK.name=DevKit board for BLYST-NANO (IMM-NRF52832-NANO) +############################### +BLYST_NANO_DK.vid.0=0x0204 +#BLYST_NANO_DK.pid.0=0x0d28 +############################### + BLYST_NANO_DK.upload.tool=sandeepmistry:openocd BLYST_NANO_DK.upload.protocol=cmsis-dap BLYST_NANO_DK.upload.target=nrf52 From b0ece255cf8bd751f067b11c21a3669f5ca02f98 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 13:43:06 -0400 Subject: [PATCH 20/25] test1234 --- boards.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards.txt b/boards.txt index 75139763..6e8ebd98 100644 --- a/boards.txt +++ b/boards.txt @@ -393,8 +393,8 @@ STCT_nRF52_minidev.menu.softdevice.s132.build.ldscript=armgcc_s132_nrf52832_xxaa BLYST_NANO_DK.name=DevKit board for BLYST-NANO (IMM-NRF52832-NANO) ############################### -BLYST_NANO_DK.vid.0=0x0204 -#BLYST_NANO_DK.pid.0=0x0d28 +BLYST_NANO_DK.vid.0=0x1fc9 +#BLYST_NANO_DK.pid.0=0x80d1 ############################### BLYST_NANO_DK.upload.tool=sandeepmistry:openocd From 9504bee0829dabdc757803854e33fff92759db1f Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 13:47:00 -0400 Subject: [PATCH 21/25] changed checksum and size --- docs/package_nRF5_boards_index.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index 85008a47..0c575daa 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -363,8 +363,8 @@ }, "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.11.0.tar.gz", "archiveFileName": "arduino-nRF52-0.11.0.tar.gz", - "checksum": "MD5:edcd6b4fc791b6103244d0f5f2e89750", - "size": "1490693", + "checksum": "MD5:190f30376abe81c0b82a009a4ce7eb63", + "size": "1490685", "boards": [ {"name": "BLYST_NANO_DK"}, {"name": "BBC micro:bit"}, From 39fb891b8d469022c19410363e8d5c1f3a0dfb69 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 13:48:20 -0400 Subject: [PATCH 22/25] test --- docs/package_nRF5_boards_index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index 0c575daa..35bbb2f1 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -363,7 +363,7 @@ }, "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.11.0.tar.gz", "archiveFileName": "arduino-nRF52-0.11.0.tar.gz", - "checksum": "MD5:190f30376abe81c0b82a009a4ce7eb63", + "checksum": "MD5:190f30376abe81c0b82a009a4ce7eb63", "size": "1490685", "boards": [ {"name": "BLYST_NANO_DK"}, From ac1eb8d92104be7ac84fc51220e712ab328d4974 Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 14:04:32 -0400 Subject: [PATCH 23/25] programmers.txt file --- programmers.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/programmers.txt b/programmers.txt index 9d48bdc9..a924d9d4 100644 --- a/programmers.txt +++ b/programmers.txt @@ -14,9 +14,10 @@ stlink.program.setup_command=transport select hla_swd; set WORKAREASIZE 0x4000; cmsisdap.name=CMSIS-DAP cmsisdap.communication=USB -cmsisdap.protocol=cmsis-dap -cmsisdap.program.protocol=cmsis-dap +cmsisdap.protocol= +cmsisdap.program.protocol= cmsisdap.program.tool=openocd +cmsisdap.program.interface=cmsis-dap cmsisdap.program.setup_command=; blackmagicprobe.name=Black Magic Probe (GDB) From 9781561e35e8f719073ce76e74580ba66ea248fb Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 14:06:50 -0400 Subject: [PATCH 24/25] changed checksum and sizee --- docs/package_nRF5_boards_index.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index 35bbb2f1..c23af179 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -363,8 +363,8 @@ }, "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.11.0.tar.gz", "archiveFileName": "arduino-nRF52-0.11.0.tar.gz", - "checksum": "MD5:190f30376abe81c0b82a009a4ce7eb63", - "size": "1490685", + "checksum": "MD5:14713e60a793a8cc82b601ae94421daf", + "size": "1490629", "boards": [ {"name": "BLYST_NANO_DK"}, {"name": "BBC micro:bit"}, From 7c1726326cc28a1c317eaacaf6f236c1a69e5dbf Mon Sep 17 00:00:00 2001 From: Dinh Viet Luong Date: Fri, 12 Jul 2024 14:07:48 -0400 Subject: [PATCH 25/25] ... --- docs/package_nRF5_boards_index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/package_nRF5_boards_index.json b/docs/package_nRF5_boards_index.json index c23af179..864ac867 100644 --- a/docs/package_nRF5_boards_index.json +++ b/docs/package_nRF5_boards_index.json @@ -363,7 +363,7 @@ }, "url": "https://github.com/DINDIN2007/arduino-nRF5/archive/0.11.0.tar.gz", "archiveFileName": "arduino-nRF52-0.11.0.tar.gz", - "checksum": "MD5:14713e60a793a8cc82b601ae94421daf", + "checksum": "MD5:14713e60a793a8cc82b601ae94421daf", "size": "1490629", "boards": [ {"name": "BLYST_NANO_DK"},