Skip to content

Commit d3698d2

Browse files
authored
Merge pull request #38 from arduino-libraries/giga
Add support for GIGA
2 parents e065d7b + baa548f commit d3698d2

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

.github/workflows/compile-examples.yml

+8
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ jobs:
5959
- examples/OTA_Qspi_Flash
6060
- examples/OTA_Qspi_Flash_Ethernet
6161
- examples/OTA_Usage_Portenta
62+
- fqbn: arduino:mbed_giga:giga
63+
platforms: |
64+
- name: arduino:mbed_giga
65+
libraries: |
66+
- name: Arduino_DebugUtils
67+
sketch-paths: |
68+
- examples/OTA_Qspi_Flash
69+
- examples/OTA_Usage_Portenta
6270
6371
steps:
6472
- name: Checkout

examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usa
3939
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota";
4040
#elif defined(ARDUINO_OPTA)
4141
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.OPTA.ota";
42+
#elif defined(ARDUINO_GIGA)
43+
static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.GIGA.ota";
4244
#else
4345
#error "Board not supported"
4446
#endif

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ sentence=Firmware update for the Portenta H7.
66
paragraph=This library allows performing a firmware update on the Arduino Portenta H7. The firmware can be stored in various different locations such as within the microcontroller's flash, on an external SD card or on the QSPI flash chip.
77
category=Communication
88
url=https://github.com/arduino-libraries/Arduino_Portenta_OTA
9-
architectures=mbed,mbed_portenta,mbed_nicla,mbed_opta
9+
architectures=mbed,mbed_portenta,mbed_nicla,mbed_opta,mbed_giga
1010
includes=Arduino_Portenta_OTA.h

src/Arduino_Portenta_OTA_Config.h

+5
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,9 @@
4040
#define ARDUINO_PORTENTA_OTA_QSPI_SUPPORT
4141
#endif
4242

43+
#if defined(ARDUINO_GIGA)
44+
#define ARDUINO_PORTENTA_OTA_MAGIC 0x23410266
45+
#define ARDUINO_PORTENTA_OTA_QSPI_SUPPORT
46+
#endif
47+
4348
#endif /* ARDUINO_PORTENTA_OTA_CONFIG_H_ */

0 commit comments

Comments
 (0)