From b3ecb6398956af2eb55fa8c8e173477ab1d35b73 Mon Sep 17 00:00:00 2001 From: pennam Date: Mon, 7 Mar 2022 16:59:27 +0100 Subject: [PATCH 1/3] Add build configuration for NICLA_VISION --- src/Arduino_Portenta_OTA_Config.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Arduino_Portenta_OTA_Config.h b/src/Arduino_Portenta_OTA_Config.h index 0397e71..1d7b214 100644 --- a/src/Arduino_Portenta_OTA_Config.h +++ b/src/Arduino_Portenta_OTA_Config.h @@ -30,4 +30,9 @@ #define ARDUINO_PORTENTA_OTA_QSPI_SUPPORT #endif +#if defined(ARDUINO_NICLA_VISION) + #define ARDUINO_PORTENTA_OTA_MAGIC 0x2341025f + #define ARDUINO_PORTENTA_OTA_QSPI_SUPPORT +#endif + #endif /* ARDUINO_PORTENTA_OTA_CONFIG_H_ */ From 8b9d7b6ed885f73f6c618362c233c3fe6a2f83c9 Mon Sep 17 00:00:00 2001 From: pennam Date: Mon, 7 Mar 2022 17:00:08 +0100 Subject: [PATCH 2/3] Add mbed_nicla to supported platforms --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index 9dc2dc8..a4e005e 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 +architectures=mbed,mbed_portenta,mbed_nicla includes=Arduino_Portenta_OTA.h From 26eb5db07ef0b6af6f3c868aa2fa5d1ddd29d81f Mon Sep 17 00:00:00 2001 From: pennam Date: Tue, 8 Mar 2022 13:43:58 +0100 Subject: [PATCH 3/3] Customize compile examples for mbed_nicla --- .github/workflows/compile-examples.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 457cf45..adfaa56 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -35,6 +35,16 @@ jobs: - fqbn: arduino:mbed:envie_m7 platforms: | - name: arduino:mbed + sketch-paths: | + - examples/OTA_Qspi_Flash + - examples/OTA_SD_Portenta + - examples/OTA_Usage_Portenta + - fqbn: arduino:mbed_nicla:nicla_vision + platforms: | + - name: arduino:mbed_nicla + sketch-paths: | + - examples/OTA_Qspi_Flash + - examples/OTA_Usage_Portenta steps: - name: Checkout @@ -52,7 +62,7 @@ jobs: # Additional library dependencies can be listed here. # See: https://github.com/arduino/compile-sketches#libraries sketch-paths: | - - ./examples/ + ${{ matrix.board.sketch-paths }} enable-deltas-report: true sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}