Skip to content

Commit e45459e

Browse files
authored
Merge pull request #356 from arduino-libraries/giga
Add support for GIGA
2 parents 2b00404 + 6d02b19 commit e45459e

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

.github/workflows/compile-examples.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ jobs:
6060
type: mbed_nicla
6161
- fqbn: arduino:mbed_opta:opta
6262
type: mbed_opta
63+
- fqbn: arduino:mbed_giga:giga
64+
type: mbed_giga
65+
6366

6467
# make board type-specific customizations to the matrix jobs
6568
include:
@@ -161,6 +164,17 @@ jobs:
161164
- name: Arduino_Portenta_OTA
162165
sketch-paths: |
163166
- examples/utility/Provisioning
167+
# GIGA
168+
- board:
169+
type: mbed_giga
170+
platforms: |
171+
# Install mbed_giga platform via Boards Manager
172+
- name: arduino:mbed_giga
173+
libraries: |
174+
- name: ArduinoECCX08
175+
- name: Arduino_Portenta_OTA
176+
sketch-paths: |
177+
- examples/utility/Provisioning
164178
# ESP8266 boards
165179
- board:
166180
type: esp8266

extras/tools/bin2ota.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
if len(sys.argv) != 4:
77
print ("Usage: bin2ota.py BOARD sketch.bin sketch.ota")
8-
print (" BOARD = [MKR_WIFI_1010 | NANO_33_IOT | PORTENTA_H7_M7 | NANO_RP2040_CONNECT | NICLA_VISION | OPTA ]")
8+
print (" BOARD = [ MKR_WIFI_1010 | NANO_33_IOT | PORTENTA_H7_M7 | NANO_RP2040_CONNECT | NICLA_VISION | OPTA | GIGA ]")
99
sys.exit()
1010

1111
board = sys.argv[1]
@@ -30,6 +30,8 @@
3030
magic_number = 0x2341025F.to_bytes(4,byteorder='little')
3131
elif board == "OPTA":
3232
magic_number = 0x23410064.to_bytes(4,byteorder='little')
33+
elif board == "GIGA":
34+
magic_number = 0x23410266.to_bytes(4,byteorder='little')
3335
# Magic number for all ESP32 boards not related to (VID/PID)
3436
elif board == "ESP32":
3537
magic_number = 0x45535033.to_bytes(4,byteorder='little')

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ sentence=This library allows connecting to the Arduino IoT Cloud service.
66
paragraph=It provides a ConnectionManager to handle connection/disconnection, property-change updates and events callbacks. The supported boards are MKR GSM, MKR1000 and WiFi101.
77
category=Communication
88
url=https://github.com/arduino-libraries/ArduinoIoTCloud
9-
architectures=mbed,samd,esp8266,mbed_nano,mbed_portenta,mbed_nicla,esp32,mbed_opta
9+
architectures=mbed,samd,esp8266,mbed_nano,mbed_portenta,mbed_nicla,esp32,mbed_opta,mbed_giga
1010
includes=ArduinoIoTCloud.h
1111
depends=Arduino_ConnectionHandler,Arduino_DebugUtils,ArduinoMqttClient,ArduinoECCX08,RTCZero,Adafruit SleepyDog Library,Arduino_ESP32_OTA,Arduino_Portenta_OTA

src/AIoTC_Config.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
#define OTA_STORAGE_SSU (0)
103103
#endif
104104

105-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_OPTA)
105+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_OPTA) || defined(ARDUINO_GIGA)
106106
#define OTA_STORAGE_PORTENTA_QSPI (1)
107107
#else
108108
#define OTA_STORAGE_PORTENTA_QSPI (0)
@@ -120,7 +120,8 @@
120120

121121
#if defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKR1000) || \
122122
defined(ARDUINO_SAMD_MKRNB1500) || defined(ARDUINO_PORTENTA_H7_M7) || \
123-
defined (ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_OPTA)
123+
defined (ARDUINO_NANO_RP2040_CONNECT) || defined(ARDUINO_OPTA) || \
124+
defined(ARDUINO_GIGA)
124125
#define BOARD_HAS_ECCX08
125126
#define HAS_TCP
126127
#endif
@@ -145,7 +146,7 @@
145146
#define HAS_TCP
146147
#endif
147148

148-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_OPTA)
149+
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_OPTA) || defined(ARDUINO_GIGA)
149150
#define BOARD_STM32H7
150151
#endif
151152

0 commit comments

Comments
 (0)