diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index e99afec..943eb50 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -59,6 +59,14 @@ jobs: - examples/OTA_Qspi_Flash - examples/OTA_Qspi_Flash_Ethernet - examples/OTA_Usage_Portenta + - fqbn: arduino:mbed_giga:giga + platforms: | + - name: arduino:mbed_giga + libraries: | + - name: Arduino_DebugUtils + sketch-paths: | + - examples/OTA_Qspi_Flash + - examples/OTA_Usage_Portenta steps: - name: Checkout diff --git a/examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino b/examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino index 7853190..988bcea 100644 --- a/examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino +++ b/examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino @@ -39,6 +39,8 @@ static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usa static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.PORTENTA_H7_M7.ota"; #elif defined(ARDUINO_OPTA) static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.OPTA.ota"; +#elif defined(ARDUINO_GIGA) +static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.GIGA.ota"; #else #error "Board not supported" #endif diff --git a/library.properties b/library.properties index 2d97233..cad3f3d 100644 --- a/library.properties +++ b/library.properties @@ -6,5 +6,5 @@ sentence=Firmware update for the Portenta H7. 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. category=Communication url=https://github.com/arduino-libraries/Arduino_Portenta_OTA -architectures=mbed,mbed_portenta,mbed_nicla,mbed_opta +architectures=mbed,mbed_portenta,mbed_nicla,mbed_opta,mbed_giga includes=Arduino_Portenta_OTA.h diff --git a/src/Arduino_Portenta_OTA_Config.h b/src/Arduino_Portenta_OTA_Config.h index bdfab4b..7ccd23d 100644 --- a/src/Arduino_Portenta_OTA_Config.h +++ b/src/Arduino_Portenta_OTA_Config.h @@ -40,4 +40,9 @@ #define ARDUINO_PORTENTA_OTA_QSPI_SUPPORT #endif +#if defined(ARDUINO_GIGA) + #define ARDUINO_PORTENTA_OTA_MAGIC 0x23410266 + #define ARDUINO_PORTENTA_OTA_QSPI_SUPPORT +#endif + #endif /* ARDUINO_PORTENTA_OTA_CONFIG_H_ */