From 09fb6c8a73b20da8e42c19400c4a9c8a09ff7a92 Mon Sep 17 00:00:00 2001 From: pennam Date: Tue, 28 Feb 2023 09:11:49 +0100 Subject: [PATCH 1/2] Add Nicla Vison and Opta binary download url --- examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino b/examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino index c09091d..7853190 100644 --- a/examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino +++ b/examples/OTA_Qspi_Flash/OTA_Qspi_Flash.ino @@ -33,7 +33,15 @@ static char const SSID[] = SECRET_SSID; /* your network SSID (name) */ static char const PASS[] = SECRET_PASS; /* your network password (use for WPA, or use as key for WEP) */ +#if defined(ARDUINO_NICLA_VISION) +static char const OTA_FILE_LOCATION[] = "http://downloads.arduino.cc/ota/OTA_Usage_Portenta.ino.NICLA_VISION.ota"; +#elif defined(ARDUINO_PORTENTA_H7_M7) 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"; +#else +#error "Board not supported" +#endif /****************************************************************************** * SETUP/LOOP From 34a76445bed57ac2f384d700d8961ba883214522 Mon Sep 17 00:00:00 2001 From: pennam Date: Tue, 28 Feb 2023 09:25:19 +0100 Subject: [PATCH 2/2] Include Ethernet example in Portenta CI --- .github/workflows/compile-examples.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index c9f4b39..e99afec 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -39,6 +39,7 @@ jobs: - name: Arduino_DebugUtils sketch-paths: | - examples/OTA_Qspi_Flash + - examples/OTA_Qspi_Flash_Ethernet - examples/OTA_SD_Portenta - examples/OTA_Usage_Portenta - fqbn: arduino:mbed_nicla:nicla_vision