From 11e875b5c20981723dd40d6e9b117c47fbc2d7af Mon Sep 17 00:00:00 2001 From: pennam Date: Tue, 20 Dec 2022 15:00:32 +0100 Subject: [PATCH 1/2] Add support for giga board --- extras/tools/bin2ota.py | 4 +++- library.properties | 2 +- src/AIoTC_Config.h | 7 ++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/extras/tools/bin2ota.py b/extras/tools/bin2ota.py index 32c3bfe1d..651a51740 100755 --- a/extras/tools/bin2ota.py +++ b/extras/tools/bin2ota.py @@ -5,7 +5,7 @@ if len(sys.argv) != 4: print ("Usage: bin2ota.py BOARD sketch.bin sketch.ota") - print (" BOARD = [MKR_WIFI_1010 | NANO_33_IOT | PORTENTA_H7_M7 | NANO_RP2040_CONNECT | NICLA_VISION | OPTA ]") + print (" BOARD = [ MKR_WIFI_1010 | NANO_33_IOT | PORTENTA_H7_M7 | NANO_RP2040_CONNECT | NICLA_VISION | OPTA | GIGA ]") sys.exit() board = sys.argv[1] @@ -30,6 +30,8 @@ magic_number = 0x2341025F.to_bytes(4,byteorder='little') elif board == "OPTA": magic_number = 0x23410064.to_bytes(4,byteorder='little') +elif board == "GIGA": + magic_number = 0x23410266.to_bytes(4,byteorder='little') # Magic number for all ESP32 boards not related to (VID/PID) elif board == "ESP32": magic_number = 0x45535033.to_bytes(4,byteorder='little') diff --git a/library.properties b/library.properties index 128232682..26369e2d2 100644 --- a/library.properties +++ b/library.properties @@ -6,6 +6,6 @@ sentence=This library allows connecting to the Arduino IoT Cloud service. paragraph=It provides a ConnectionManager to handle connection/disconnection, property-change updates and events callbacks. The supported boards are MKR GSM, MKR1000 and WiFi101. category=Communication url=https://github.com/arduino-libraries/ArduinoIoTCloud -architectures=mbed,samd,esp8266,mbed_nano,mbed_portenta,mbed_nicla,esp32,mbed_opta +architectures=mbed,samd,esp8266,mbed_nano,mbed_portenta,mbed_nicla,esp32,mbed_opta,mbed_giga includes=ArduinoIoTCloud.h depends=Arduino_ConnectionHandler,Arduino_DebugUtils,ArduinoMqttClient,ArduinoECCX08,RTCZero,Adafruit SleepyDog Library,Arduino_ESP32_OTA,Arduino_Portenta_OTA diff --git a/src/AIoTC_Config.h b/src/AIoTC_Config.h index e734ecf2c..02194f5d3 100644 --- a/src/AIoTC_Config.h +++ b/src/AIoTC_Config.h @@ -102,7 +102,7 @@ #define OTA_STORAGE_SSU (0) #endif -#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_OPTA) +#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_OPTA) || defined(ARDUINO_GIGA) #define OTA_STORAGE_PORTENTA_QSPI (1) #else #define OTA_STORAGE_PORTENTA_QSPI (0) @@ -120,7 +120,8 @@ #if defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKR1000) || \ defined(ARDUINO_SAMD_MKRNB1500) || defined(ARDUINO_PORTENTA_H7_M7) || \ - defined (ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_OPTA) + defined (ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_OPTA) || \ + defined(ARDUINO_GIGA) #define BOARD_HAS_ECCX08 #define HAS_TCP #endif @@ -145,7 +146,7 @@ #define HAS_TCP #endif -#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_OPTA) +#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_OPTA) || defined(ARDUINO_GIGA) #define BOARD_STM32H7 #endif From 6d02b1939d0516e31d7ff2f34aaebb9c892aefbf Mon Sep 17 00:00:00 2001 From: pennam Date: Fri, 3 Mar 2023 10:19:45 +0100 Subject: [PATCH 2/2] Enable CI for GIGA --- .github/workflows/compile-examples.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 8a24fdce9..2477ab652 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -60,6 +60,9 @@ jobs: type: mbed_nicla - fqbn: arduino:mbed_opta:opta type: mbed_opta + - fqbn: arduino:mbed_giga:giga + type: mbed_giga + # make board type-specific customizations to the matrix jobs include: @@ -161,6 +164,17 @@ jobs: - name: Arduino_Portenta_OTA sketch-paths: | - examples/utility/Provisioning + # GIGA + - board: + type: mbed_giga + platforms: | + # Install mbed_giga platform via Boards Manager + - name: arduino:mbed_giga + libraries: | + - name: ArduinoECCX08 + - name: Arduino_Portenta_OTA + sketch-paths: | + - examples/utility/Provisioning # ESP8266 boards - board: type: esp8266